lttng: Rename the debug-info callsite aspect to "source callsite"
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.ust.core / src / org / eclipse / tracecompass / lttng2 / ust / core / trace / LttngUstEvent.java
CommitLineData
5c82e602
AM
1/*******************************************************************************
2 * Copyright (c) 2015 EfficiOS Inc., Alexandre Montplaisir
3 *
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 *******************************************************************************/
9
10package org.eclipse.tracecompass.lttng2.ust.core.trace;
11
12import org.eclipse.jdt.annotation.NonNullByDefault;
13import org.eclipse.jdt.annotation.Nullable;
14import org.eclipse.tracecompass.ctf.core.event.EventDefinition;
15import org.eclipse.tracecompass.ctf.core.event.IEventDeclaration;
a103fe67 16import org.eclipse.tracecompass.lttng2.ust.core.analysis.debuginfo.UstDebugInfoSourceAspect;
5c82e602
AM
17import org.eclipse.tracecompass.tmf.core.event.lookup.ITmfCallsite;
18import org.eclipse.tracecompass.tmf.core.event.lookup.ITmfSourceLookup;
19import org.eclipse.tracecompass.tmf.core.timestamp.TmfNanoTimestamp;
20import org.eclipse.tracecompass.tmf.ctf.core.event.CtfTmfEvent;
21import org.eclipse.tracecompass.tmf.ctf.core.trace.CtfTmfTrace;
22
23/**
24 * Event type for use in LTTng-UST traces.
25 *
26 * @author Alexandre Montplaisir
27 * @since 2.0
28 */
29@NonNullByDefault
30public class LttngUstEvent extends CtfTmfEvent implements ITmfSourceLookup {
31
32 /**
33 * Default constructor. Only for use by extension points, should not be
34 * called directly.
35 */
36 @Deprecated
37 public LttngUstEvent() {
38 super();
39 }
40
41 /**
42 * Constructor
43 *
44 * @param trace
45 * The trace to which this event belongs
46 * @param rank
47 * The rank of the event
48 * @param timestamp
49 * The timestamp
50 * @param channel
51 * The CTF channel of this event
52 * @param cpu
53 * The event's CPU
54 * @param declaration
55 * The event declaration
56 * @param eventDefinition
57 * The event definition
58 */
59 protected LttngUstEvent(CtfTmfTrace trace, long rank, TmfNanoTimestamp timestamp,
60 String channel, int cpu, IEventDeclaration declaration, EventDefinition eventDefinition) {
61 super(trace, rank, timestamp, channel, cpu, declaration, eventDefinition);
62 }
63
64 @Override
65 public @Nullable ITmfCallsite getCallsite() {
a103fe67 66 return UstDebugInfoSourceAspect.INSTANCE.resolve(this);
5c82e602
AM
67 }
68}
This page took 0.02991 seconds and 5 git commands to generate.