1 /*******************************************************************************
2 * Copyright (c) 2015 École Polytechnique de Montréal
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
.kernel
.core
.analysis
.graph
.model
;
12 import org
.eclipse
.tracecompass
.internal
.lttng2
.kernel
.core
.analysis
.graph
.building
.LttngKernelExecGraphProvider
.Context
;
13 import org
.eclipse
.tracecompass
.tmf
.core
.event
.ITmfEvent
;
14 import org
.eclipse
.tracecompass
.tmf
.core
.event
.TmfEvent
;
15 import org
.eclipse
.tracecompass
.tmf
.core
.timestamp
.TmfTimestamp
;
16 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfContext
;
19 * A class representing an interrupt context in the kernel. It associates the
20 * reason of the context with an event.
22 * @author Francis Giraldeau
23 * @author Geneviève Bastien
25 public class LttngInterruptContext
{
28 * The default context when none is defined
30 public static final LttngInterruptContext DEFAULT_CONTEXT
= new LttngInterruptContext(new TmfEvent(null, ITmfContext
.UNKNOWN_RANK
, TmfTimestamp
.BIG_BANG
, null, null), Context
.NONE
);
32 private final ITmfEvent fEvent
;
33 private final Context fContext
;
39 * The event representing the start of this interrupt context
43 public LttngInterruptContext(ITmfEvent event
, Context ctx
) {
49 * The event associated with this interrupt context
51 * @return The event marking the entry in this interrupt context
53 public ITmfEvent
getEvent() {
58 * Get the type of interrupt context this context represents
60 * @return The type of interrupt context
62 public Context
getContext() {