Commit | Line | Data |
---|---|---|
acba092b AM |
1 | /******************************************************************************* |
2 | * Copyright (c) 2014 Ericsson | |
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 | * Alexandre Montplaisir - 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.6 and above. | |
18 | * | |
19 | * @author Alexandre Montplaisir | |
20 | */ | |
21 | public class Lttng26EventLayout extends LttngEventLayout { | |
22 | ||
ff5e31e0 SL |
23 | /** |
24 | * Constructor | |
25 | */ | |
26 | protected Lttng26EventLayout() {} | |
acba092b AM |
27 | |
28 | private static final Lttng26EventLayout INSTANCE = new Lttng26EventLayout(); | |
29 | ||
30 | public static Lttng26EventLayout getInstance() { | |
31 | return INSTANCE; | |
32 | } | |
33 | ||
34 | // ------------------------------------------------------------------------ | |
35 | // New event names in these versions | |
36 | // ------------------------------------------------------------------------ | |
37 | ||
38 | @Override | |
39 | public String eventSyscallEntryPrefix() { | |
40 | return "syscall_entry_"; //$NON-NLS-1$ | |
41 | } | |
42 | ||
43 | @Override | |
44 | public String eventCompatSyscallEntryPrefix() { | |
45 | return "compat_syscall_entry_"; //$NON-NLS-1$ | |
46 | } | |
47 | ||
48 | @Override | |
49 | public String eventSyscallExitPrefix() { | |
50 | return "syscall_exit_"; //$NON-NLS-1$ | |
51 | } | |
01f2a507 AM |
52 | |
53 | @Override | |
54 | public String eventCompatSyscallExitPrefix() { | |
55 | return "compat_syscall_exit_"; //$NON-NLS-1$ | |
56 | } | |
acba092b | 57 | } |