Commit | Line | Data |
---|---|---|
6e4358bd | 1 | /******************************************************************************* |
50659279 | 2 | * Copyright (c) 2013, 2014 Ericsson |
6e4358bd AM |
3 | * |
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 | * | |
9 | * Contributors: | |
10 | * Alexandre Montplaisir - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
9bc60be7 | 13 | package org.eclipse.tracecompass.lttng2.ust.core.tests.trace.callstack; |
6e4358bd | 14 | |
06004847 AM |
15 | import static org.junit.Assume.assumeTrue; |
16 | ||
2bdf0193 | 17 | import org.eclipse.tracecompass.tmf.ctf.core.tests.shared.CtfTmfTestTrace; |
06004847 | 18 | import org.junit.BeforeClass; |
6e4358bd AM |
19 | |
20 | /** | |
21 | * Test suite for the UST callstack state provider, using the trace of a program | |
22 | * instrumented with lttng-ust-cyg-profile.so tracepoints. | |
23 | * | |
24 | * @author Alexandre Montplaisir | |
25 | */ | |
50659279 | 26 | public class LttngUstCallStackProviderTest extends AbstractProviderTest { |
6e4358bd | 27 | |
50659279 AM |
28 | private static final long[] timestamps = { 1378850463600000000L, |
29 | 1378850463770000000L, | |
30 | 1378850463868753000L }; | |
6e4358bd | 31 | |
06004847 AM |
32 | /** |
33 | * Class setup | |
34 | */ | |
35 | @BeforeClass | |
36 | public static void setUpClass() { | |
37 | assumeTrue(CtfTmfTestTrace.CYG_PROFILE.exists()); | |
38 | } | |
39 | ||
50659279 AM |
40 | @Override |
41 | protected CtfTmfTestTrace getTestTrace() { | |
42 | return CtfTmfTestTrace.CYG_PROFILE; | |
6e4358bd AM |
43 | } |
44 | ||
50659279 AM |
45 | @Override |
46 | protected String getProcName() { | |
47 | return "glxgears-16073"; | |
6e4358bd AM |
48 | } |
49 | ||
50659279 AM |
50 | @Override |
51 | protected long getTestTimestamp(int index) { | |
52 | return timestamps[index]; | |
6e4358bd AM |
53 | } |
54 | ||
6e4358bd | 55 | } |