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 | ||
23 | private Lttng26EventLayout() {} | |
24 | ||
25 | private static final Lttng26EventLayout INSTANCE = new Lttng26EventLayout(); | |
26 | ||
27 | public static Lttng26EventLayout getInstance() { | |
28 | return INSTANCE; | |
29 | } | |
30 | ||
31 | // ------------------------------------------------------------------------ | |
32 | // New event names in these versions | |
33 | // ------------------------------------------------------------------------ | |
34 | ||
35 | @Override | |
36 | public String eventSyscallEntryPrefix() { | |
37 | return "syscall_entry_"; //$NON-NLS-1$ | |
38 | } | |
39 | ||
40 | @Override | |
41 | public String eventCompatSyscallEntryPrefix() { | |
42 | return "compat_syscall_entry_"; //$NON-NLS-1$ | |
43 | } | |
44 | ||
45 | @Override | |
46 | public String eventSyscallExitPrefix() { | |
47 | return "syscall_exit_"; //$NON-NLS-1$ | |
48 | } | |
49 | } |