Commit | Line | Data |
---|---|---|
ef7f180d AM |
1 | /******************************************************************************* |
2 | * Copyright (c) 2015 EfficiOS Inc., Alexandre Montplaisir | |
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 | ||
10 | package org.eclipse.tracecompass.internal.lttng2.ust.core.trace.layout; | |
11 | ||
12 | /** | |
13 | * Updated event definitions for LTTng-UST 2.8. | |
14 | * | |
15 | * @author Alexandre Montplaisir | |
16 | */ | |
17 | @SuppressWarnings({"javadoc", "nls"}) | |
18 | public class LttngUst28EventLayout extends LttngUst27EventLayout { | |
19 | ||
20 | /** | |
21 | * Constructor | |
22 | */ | |
23 | protected LttngUst28EventLayout() {} | |
24 | ||
25 | private static final LttngUst28EventLayout INSTANCE = new LttngUst28EventLayout(); | |
26 | ||
27 | /** | |
28 | * Get a singleton instance. | |
29 | * | |
30 | * @return The instance | |
31 | */ | |
32 | public static LttngUst28EventLayout getInstance() { | |
33 | return INSTANCE; | |
34 | } | |
35 | ||
36 | // ------------------------------------------------------------------------ | |
37 | // UST Statedump events | |
38 | // ------------------------------------------------------------------------ | |
39 | ||
40 | public String eventStatedumpStart() { | |
41 | return "lttng_ust_statedump:start"; | |
42 | } | |
43 | ||
44 | public String eventStatedumpEnd() { | |
45 | return "lttng_ust_statedump:end"; | |
46 | } | |
47 | ||
0b49411f AM |
48 | public String eventStatedumpBinInfo() { |
49 | return "lttng_ust_statedump:bin_info"; | |
ef7f180d AM |
50 | } |
51 | ||
52 | public String eventStateDumpBuildId() { | |
53 | return "lttng_ust_statedump:build_id"; | |
54 | } | |
55 | ||
56 | public String eventStateDumpDebugLink() { | |
57 | return "lttng_ust_statedump:debug_link"; | |
58 | } | |
59 | ||
60 | // ------------------------------------------------------------------------ | |
61 | // Additional liblttng-ust-dl events | |
62 | // ------------------------------------------------------------------------ | |
63 | ||
64 | public String eventDlBuildId() { | |
65 | return "lttng_ust_dl:build_id"; | |
66 | } | |
67 | ||
68 | public String eventDlDebugLink() { | |
69 | return "lttng_ust_dl:debug_link"; | |
70 | } | |
71 | ||
72 | // ------------------------------------------------------------------------ | |
73 | // Field names used by statedump and liblttng-ust-dl events | |
74 | // (only supported for 2.8+ traces) | |
75 | // ------------------------------------------------------------------------ | |
76 | ||
77 | public String fieldBaddr() { | |
78 | return "baddr"; | |
79 | } | |
80 | ||
81 | public String fieldMemsz() { | |
82 | return "memsz"; | |
83 | } | |
84 | ||
0b49411f AM |
85 | public String fieldPath() { |
86 | return "path"; | |
ef7f180d AM |
87 | } |
88 | ||
89 | public String fieldBuildId() { | |
90 | return "build_id"; | |
91 | } | |
d89151ba AM |
92 | |
93 | public String fieldIsPic() { | |
94 | return "is_pic"; | |
95 | } | |
ef7f180d | 96 | } |