Extract the linux-kernel-specific things into their own plugin
[deliverable/tracecompass.git] / org.eclipse.tracecompass.lttng2.kernel.core / src / org / eclipse / tracecompass / internal / lttng2 / kernel / core / trace / layout / Lttng26EventLayout.java
CommitLineData
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
13package 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 */
21public 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}
This page took 0.028405 seconds and 5 git commands to generate.