Commit | Line | Data |
---|---|---|
ff5e31e0 SL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2015 Ericsson, École Polytechnique de Montréal | |
3 | * | |
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 | |
8 | * | |
9 | * Contributors: | |
10 | * Sebastien Lorrain - Initial API and implementation | |
11 | ******************************************************************************/ | |
12 | ||
13 | package org.eclipse.tracecompass.internal.lttng2.kernel.core.trace.layout; | |
14 | ||
15 | /** | |
16 | * This file defines all the known event and field names for LTTng kernel | |
17 | * traces, for versions of lttng-modules 2.7 and above. | |
18 | * | |
19 | * @author Sebastien Lorrain | |
20 | */ | |
21 | @SuppressWarnings("javadoc") | |
22 | public class Lttng27EventLayout extends Lttng26EventLayout { | |
23 | ||
24 | /** | |
25 | * Constructor | |
26 | */ | |
27 | protected Lttng27EventLayout() {} | |
28 | ||
29 | public static final Lttng27EventLayout INSTANCE = new Lttng27EventLayout(); | |
30 | ||
31 | // ------------------------------------------------------------------------ | |
a8b8de05 BH |
32 | // New event definition in LTTng 2.7 |
33 | // ------------------------------------------------------------------------ | |
34 | ||
35 | @Override | |
36 | public String eventHRTimerStart() { | |
37 | return "timer_hrtimer_start"; | |
38 | } | |
39 | ||
40 | @Override | |
41 | public String eventHRTimerCancel() { | |
42 | return "timer_hrtimer_cancel"; | |
43 | } | |
44 | ||
45 | @Override | |
46 | public String eventHRTimerExpireEntry() { | |
47 | return "timer_hrtimer_expire_entry"; | |
48 | } | |
49 | ||
50 | @Override | |
51 | public String eventHRTimerExpireExit() { | |
52 | return "timer_hrtimer_expire_exit"; | |
53 | } | |
54 | ||
55 | // ------------------------------------------------------------------------ | |
56 | // New field definitions in LTTng 2.7 | |
ff5e31e0 SL |
57 | // ------------------------------------------------------------------------ |
58 | ||
59 | public String fieldParentNSInum() { | |
60 | return "parent_ns_inum"; //$NON-NLS-1$ | |
61 | } | |
62 | ||
63 | public String fieldChildNSInum() { | |
64 | return "child_ns_inum"; //$NON-NLS-1$ | |
65 | } | |
66 | ||
67 | public String fieldChildVTids() { | |
68 | return "vtids"; //$NON-NLS-1$ | |
69 | } | |
70 | ||
71 | public String fieldNSInum() { | |
72 | return "ns_inum"; //$NON-NLS-1$ | |
73 | } | |
74 | ||
75 | public String fieldVTid() { | |
76 | return "vtid"; //$NON-NLS-1$ | |
77 | } | |
78 | ||
79 | public String fieldPPid() { | |
80 | return "ppid"; //$NON-NLS-1$ | |
81 | } | |
82 | ||
83 | public String fieldNSLevel() { | |
84 | return "ns_level"; //$NON-NLS-1$ | |
85 | } | |
86 | ||
ff5e31e0 | 87 | } |