Import lttng.kernel.core plugins from Scope
[deliverable/tracecompass.git] / lttng / org.lttng.scope.lttng.kernel.core / src / org / lttng / scope / lttng / kernel / core / trace / layout / internal / Lttng29EventLayout.java
1 /*******************************************************************************
2 * Copyright (c) 2016 É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
10 package org.lttng.scope.lttng.kernel.core.trace.layout.internal;
11
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.eclipse.tracecompass.ctf.tmf.core.event.CtfTmfEventField;
14
15 /**
16 * This file defines all the known event and field names for LTTng kernel
17 * traces, for versions of lttng-modules 2.9 and above.
18 *
19 * @author Geneviève Bastien
20 */
21 public class Lttng29EventLayout extends Lttng28EventLayout {
22
23 private static final String[] TCP_SEQ_FIELD = { "network_header", CtfTmfEventField.FIELD_VARIANT_SELECTED, "transport_header", "tcp", "seq" }; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
24 private static final String[] TCP_ACK_FIELD = { "network_header", CtfTmfEventField.FIELD_VARIANT_SELECTED, "transport_header", "tcp", "ack_seq" }; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
25 private static final String[] TCP_FLAGS_FIELD = { "network_header", CtfTmfEventField.FIELD_VARIANT_SELECTED, "transport_header", "tcp", "flags" }; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
26
27 /**
28 * Constructor
29 */
30 protected Lttng29EventLayout() {
31 }
32
33 private static final Lttng29EventLayout INSTANCE = new Lttng29EventLayout();
34
35 public static Lttng29EventLayout getInstance() {
36 return INSTANCE;
37 }
38
39 @Override
40 public String @NonNull [] fieldPathTcpSeq() {
41 return TCP_SEQ_FIELD;
42 }
43
44 @Override
45 public String @NonNull [] fieldPathTcpAckSeq() {
46 return TCP_ACK_FIELD;
47 }
48
49 @Override
50 public String @NonNull [] fieldPathTcpFlags() {
51 return TCP_FLAGS_FIELD;
52 }
53
54 }
This page took 0.031366 seconds and 5 git commands to generate.