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
.building
;
12 import org
.eclipse
.tracecompass
.analysis
.graph
.core
.building
.ITmfGraphProvider
;
13 import org
.eclipse
.tracecompass
.analysis
.graph
.core
.building
.TmfGraphBuilderModule
;
14 import org
.eclipse
.tracecompass
.tmf
.core
.trace
.ITmfTrace
;
17 * Graph building module for the lttng kernel execution graph
19 * @author Francis Giraldeau
20 * @author Geneviève Bastien
22 public class LttngKernelExecutionGraph
extends TmfGraphBuilderModule
{
25 * Analysis id of this module
27 public static final String ANALYSIS_ID
= "org.eclipse.tracecompass.lttng2.kernel.core.execgraph"; //$NON-NLS-1$
30 public boolean canExecute(ITmfTrace trace
) {
32 * TODO: Trace must have at least sched_switches and sched_wakeups
39 protected ITmfGraphProvider
getGraphProvider() {
40 ITmfTrace trace
= getTrace();
42 throw new NullPointerException();
44 return new LttngKernelExecGraphProvider(trace
);
48 protected String
getFullHelpText() {
49 return super.getFullHelpText();
53 protected String
getShortHelpText(ITmfTrace trace
) {
54 return super.getShortHelpText(trace
);
58 protected String
getTraceCannotExecuteHelpText(ITmfTrace trace
) {
59 return "The trace must have events 'sched_switch' and 'sched_wakeup' enabled"; //$NON-NLS-1$