1 /*******************************************************************************
2 * Copyright (c) 2015 EfficiOS Inc., Alexandre Montplaisir
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 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.internal
.lttng2
.ust
.core
.trace
.layout
;
12 import org
.eclipse
.tracecompass
.lttng2
.ust
.core
.trace
.layout
.ILttngUstEventLayout
;
15 * Definitions used in LTTng-UST for versions 2.0 up to 2.6.
17 * @author Alexandre Montplaisir
19 @SuppressWarnings("nls")
20 public class LttngUst20EventLayout
implements ILttngUstEventLayout
{
25 protected LttngUst20EventLayout() {}
27 private static final LttngUst20EventLayout INSTANCE
= new LttngUst20EventLayout();
30 * Get a singleton instance.
32 * @return The instance
34 public static LttngUst20EventLayout
getInstance() {
38 // ------------------------------------------------------------------------
39 // Event names used in liblttng-ust-libc-wrapper
40 // ------------------------------------------------------------------------
43 public String
eventLibcMalloc() {
44 return "ust_libc:malloc";
48 public String
eventLibcCalloc() {
49 return "ust_libc:calloc";
53 public String
eventLibcRealloc() {
54 return "ust_libc:realloc";
58 public String
eventLibcFree() {
59 return "ust_libc:free";
63 public String
eventLibcMemalign() {
64 return "ust_libc:memalign";
68 public String
eventLibcPosixMemalign() {
69 return "ust_libc:posix_memalign";
72 // ------------------------------------------------------------------------
73 // Event names used in liblttng-cyg-profile
74 // ------------------------------------------------------------------------
77 public String
eventCygProfileFuncEntry() {
78 return "lttng_ust_cyg_profile:func_entry";
82 public String
eventCygProfileFastFuncEntry() {
83 return "lttng_ust_cyg_profile_fast:func_entry";
87 public String
eventCygProfileFuncExit() {
88 return "lttng_ust_cyg_profile:func_exit";
92 public String
eventCygProfileFastFuncExit() {
93 return "lttng_ust_cyg_profile_fast:func_exit";
96 // ------------------------------------------------------------------------
98 // ------------------------------------------------------------------------
101 public String
fieldPtr() {
106 public String
fieldNmemb() {
111 public String
fieldSize() {
116 public String
fieldOutPtr() {
121 public String
fieldInPtr() {
126 public String
fieldAddr() {
130 // ------------------------------------------------------------------------
131 // Context field names
132 // Note: The CTF parser exposes contexts as fields called "context._<name>"
133 // ------------------------------------------------------------------------
136 public String
contextVtid() {
137 return "context._vtid";
141 public String
contextProcname() {
142 return "context._procname";