1 /**********************************************************************
2 * Copyright (c) 2012, 2014 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.lttng2
.control
.core
.model
;
16 * Trace event type enumeration.
18 * @author Bernd Hufmann
20 public enum TraceEventType
{
21 /** Event type: tracepoint */
22 TRACEPOINT("tracepoint"), //$NON-NLS-1$
23 /** Event type: syscall */
24 SYSCALL("syscall"), //$NON-NLS-1$
25 /** Event type: probe */
26 PROBE("probe"), //$NON-NLS-1$
27 /** Event type: function */
28 FUNCTION("function"), //$NON-NLS-1$
29 /** Event type unknown */
30 UNKNOWN("unknown"); //$NON-NLS-1$
32 private final String fInName
;
34 private TraceEventType(String name
) {
41 * @return The type's name
43 public String
getInName() {
48 * Return the corresponding {@link TraceEventType} of string miName
51 * name of the {@link TraceEventType} to look for
52 * @return the corresponding {@link TraceEventType}
54 public static TraceEventType
valueOfString(String name
) {
56 throw new IllegalArgumentException();
58 for (TraceEventType teType
: TraceEventType
.values()) {
59 if (teType
.getInName().equalsIgnoreCase(name
)) {
This page took 0.03389 seconds and 5 git commands to generate.