| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2013, 2014 Ericsson |
| 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 | |
| 13 | package org.eclipse.tracecompass.lttng2.ust.core.tests.callstack; |
| 14 | |
| 15 | import static org.junit.Assume.assumeTrue; |
| 16 | |
| 17 | import org.eclipse.tracecompass.tmf.ctf.core.tests.shared.CtfTmfTestTrace; |
| 18 | import org.junit.BeforeClass; |
| 19 | |
| 20 | /** |
| 21 | * Test suite for the UST callstack state provider, using the trace of a program |
| 22 | * instrumented with lttng-ust-cyg-profile-fast.so tracepoints. These do not |
| 23 | * contain the function addresses in the func_exit events. |
| 24 | * |
| 25 | * @author Alexandre Montplaisir |
| 26 | */ |
| 27 | public class LttngUstCallStackProviderFastTest extends AbstractProviderTest { |
| 28 | |
| 29 | private static final long[] timestamps = { 1379361250310000000L, |
| 30 | 1379361250498400000L, |
| 31 | 1379361250499759000L }; |
| 32 | |
| 33 | /** |
| 34 | * Class setup |
| 35 | */ |
| 36 | @BeforeClass |
| 37 | public static void setUpClass() { |
| 38 | assumeTrue(CtfTmfTestTrace.CYG_PROFILE_FAST.exists()); |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | protected CtfTmfTestTrace getTestTrace() { |
| 43 | return CtfTmfTestTrace.CYG_PROFILE_FAST; |
| 44 | } |
| 45 | |
| 46 | @Override |
| 47 | protected String getProcName() { |
| 48 | return "glxgears-29822"; |
| 49 | } |
| 50 | |
| 51 | @Override |
| 52 | protected long getTestTimestamp(int index) { |
| 53 | return timestamps[index]; |
| 54 | } |
| 55 | |
| 56 | } |