1 /*******************************************************************************
2 * Copyright (c) 2016 É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
.analysis
.os
.linux
.core
.tests
.stubs
.trace
;
12 import org
.eclipse
.jdt
.annotation
.Nullable
;
13 import org
.eclipse
.tracecompass
.analysis
.os
.linux
.core
.trace
.IKernelAnalysisEventLayout
;
14 import org
.eclipse
.tracecompass
.analysis
.os
.linux
.core
.trace
.IKernelTrace
;
15 import org
.eclipse
.tracecompass
.tmf
.tests
.stubs
.trace
.xml
.TmfXmlTraceStub
;
18 * A trace stub that implements a kernel trace. It can add an event layout to
21 * @author Geneviève Bastien
23 public class TmfXmlKernelTraceStub
extends TmfXmlTraceStub
implements IKernelTrace
{
25 private @Nullable IKernelAnalysisEventLayout fLayout
;
28 public IKernelAnalysisEventLayout
getKernelEventLayout() {
29 IKernelAnalysisEventLayout layout
= fLayout
;
31 return KernelEventLayoutStub
.getInstance();
37 * Set the kernel event layout to use with this trace
40 * The event layout to use with this trace
42 public void setKernelEventLayout(IKernelAnalysisEventLayout layout
) {