1 /*******************************************************************************
2 * Copyright (c) 2015 EfficiOS Inc., Alexandre Montplaisir
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.lttng2
.ust
.core
.trace
;
12 import org
.eclipse
.jdt
.annotation
.NonNullByDefault
;
13 import org
.eclipse
.jdt
.annotation
.Nullable
;
14 import org
.eclipse
.tracecompass
.ctf
.core
.event
.IEventDeclaration
;
15 import org
.eclipse
.tracecompass
.ctf
.core
.event
.IEventDefinition
;
16 import org
.eclipse
.tracecompass
.lttng2
.ust
.core
.analysis
.debuginfo
.UstDebugInfoSourceAspect
;
17 import org
.eclipse
.tracecompass
.tmf
.core
.event
.lookup
.ITmfCallsite
;
18 import org
.eclipse
.tracecompass
.tmf
.core
.event
.lookup
.ITmfSourceLookup
;
19 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.TmfNanoTimestamp
;
20 import org
.eclipse
.tracecompass
.tmf
.ctf
.core
.event
.CtfTmfEvent
;
21 import org
.eclipse
.tracecompass
.tmf
.ctf
.core
.trace
.CtfTmfTrace
;
24 * Event type for use in LTTng-UST traces.
26 * @author Alexandre Montplaisir
30 public class LttngUstEvent
extends CtfTmfEvent
implements ITmfSourceLookup
{
33 * Default constructor. Only for use by extension points, should not be
37 public LttngUstEvent() {
45 * The trace to which this event belongs
47 * The rank of the event
51 * The CTF channel of this event
55 * The event declaration
56 * @param eventDefinition
57 * The event definition
59 protected LttngUstEvent(CtfTmfTrace trace
, long rank
, TmfNanoTimestamp timestamp
,
60 String channel
, int cpu
, IEventDeclaration declaration
, IEventDefinition eventDefinition
) {
61 super(trace
, rank
, timestamp
, channel
, cpu
, declaration
, eventDefinition
);
65 public @Nullable ITmfCallsite
getCallsite() {
66 return UstDebugInfoSourceAspect
.INSTANCE
.resolve(this);