lttng: Add a ILttngUstEventLayout
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.ust.core / src / org / eclipse / tracecompass / internal / lttng2 / ust / core / trace / layout / LttngUst27EventLayout.java
1 /*******************************************************************************
2 * Copyright (c) 2015 EfficiOS Inc., Alexandre Montplaisir
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.eclipse.tracecompass.internal.lttng2.ust.core.trace.layout;
11
12 /**
13 * Updated event definitions for LTTng-UST 2.7.
14 *
15 * @author Alexandre Montplaisir
16 */
17 @SuppressWarnings("nls")
18 public class LttngUst27EventLayout extends LttngUst20EventLayout {
19
20 /**
21 * Constructor
22 */
23 protected LttngUst27EventLayout() {}
24
25 private static final LttngUst27EventLayout INSTANCE = new LttngUst27EventLayout();
26
27 /**
28 * Get a singleton instance.
29 *
30 * @return The instance
31 */
32 public static LttngUst27EventLayout getInstance() {
33 return INSTANCE;
34 }
35
36 // ------------------------------------------------------------------------
37 // Event names used in liblttng-ust-libc-wrapper
38 // They are now prefixed with "lttng_*"
39 // ------------------------------------------------------------------------
40
41 @Override
42 public String eventLibcMalloc() {
43 return "lttng_ust_libc:malloc";
44 }
45
46 @Override
47 public String eventLibcCalloc() {
48 return "lttng_ust_libc:calloc";
49 }
50
51 @Override
52 public String eventLibcRealloc() {
53 return "lttng_ust_libc:realloc";
54 }
55
56 @Override
57 public String eventLibcFree() {
58 return "lttng_ust_libc:free";
59 }
60
61 @Override
62 public String eventLibcMemalign() {
63 return "lttng_ust_libc:memalign";
64 }
65
66 @Override
67 public String eventLibcPosixMemalign() {
68 return "lttng_ust_libc:posix_memalign";
69 }
70 }
This page took 0.032467 seconds and 5 git commands to generate.