Commit | Line | Data |
---|---|---|
eb1bab5b | 1 | /********************************************************************** |
1f07c96c | 2 | * Copyright (c) 2012, 2013 Ericsson |
b0318660 | 3 | * |
eb1bab5b BH |
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 | |
b0318660 AM |
8 | * |
9 | * Contributors: | |
eb1bab5b BH |
10 | * Bernd Hufmann - Initial API and implementation |
11 | **********************************************************************/ | |
9315aeee | 12 | package org.eclipse.linuxtools.internal.lttng2.core.control.model; |
eb1bab5b BH |
13 | |
14 | /** | |
eb1bab5b BH |
15 | * <p> |
16 | * Trace event type enumeration. | |
17 | * </p> | |
b0318660 | 18 | * |
dbd4432d | 19 | * @author Bernd Hufmann |
eb1bab5b | 20 | */ |
b0318660 AM |
21 | public enum TraceEventType { |
22 | /** Event type: tracepoint */ | |
eb1bab5b | 23 | TRACEPOINT("tracepoint"), //$NON-NLS-1$ |
b0318660 | 24 | /** Event type: syscall */ |
3e91c9c0 | 25 | SYSCALL("syscall"), //$NON-NLS-1$ |
b0318660 | 26 | /** Event type: probe */ |
ccc66d01 | 27 | PROBE("probe"), //$NON-NLS-1$ |
1f07c96c BH |
28 | /** Event type: function */ |
29 | FUNCTION("function"), //$NON-NLS-1$ | |
b0318660 | 30 | /** Event type unknown */ |
eb1bab5b BH |
31 | UNKNOWN("unknown"); //$NON-NLS-1$ |
32 | ||
33 | private final String fInName; | |
34 | ||
35 | private TraceEventType(String name) { | |
36 | fInName = name; | |
37 | } | |
38 | ||
b0318660 AM |
39 | /** |
40 | * Get the type's name | |
41 | * | |
42 | * @return The type's name | |
43 | */ | |
eb1bab5b BH |
44 | public String getInName() { |
45 | return fInName; | |
46 | } | |
b0318660 | 47 | } |
eb1bab5b | 48 |