1 /*******************************************************************************
2 * Copyright (c) 2013, 2014 Ericsson
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
10 * Alexandre Montplaisir - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.lttng2
.ust
.core
.tests
.callstack
;
15 import static org
.junit
.Assume
.assumeTrue
;
17 import org
.eclipse
.tracecompass
.tmf
.ctf
.core
.tests
.shared
.CtfTmfTestTrace
;
18 import org
.junit
.BeforeClass
;
21 * Test suite for the UST callstack state provider, using the trace of a program
22 * instrumented with lttng-ust-cyg-profile.so tracepoints.
24 * @author Alexandre Montplaisir
26 public class LttngUstCallStackProviderTest
extends AbstractProviderTest
{
28 private static final long[] timestamps
= { 1378850463600000000L,
30 1378850463868753000L };
36 public static void setUpClass() {
37 assumeTrue(CtfTmfTestTrace
.CYG_PROFILE
.exists());
41 protected CtfTmfTestTrace
getTestTrace() {
42 return CtfTmfTestTrace
.CYG_PROFILE
;
46 protected String
getProcName() {
47 return "glxgears-16073";
51 protected long getTestTimestamp(int index
) {
52 return timestamps
[index
];