X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fperf%2Ftest_perf_raw.in;h=f293ccd71e5ece6f3821cdc04513f7cb882df76c;hb=202486fa276e34e4c81d560bfd8897824c51af8c;hp=8138c25b49c5d8cec148e44a62ab3e001080f18f;hpb=65702b8f172b8d2156ab1889f7e7c1b134114ec1;p=lttng-tools.git diff --git a/tests/perf/test_perf_raw.in b/tests/perf/test_perf_raw.in index 8138c25b4..f293ccd71 100644 --- a/tests/perf/test_perf_raw.in +++ b/tests/perf/test_perf_raw.in @@ -40,13 +40,13 @@ function have_libpfm() function test_ust_raw() { - local TRACE_PATH=$(mktemp -d) local SESSION_NAME="ust_perf" local CHAN_NAME="mychan" local EVENT_NAME="tp:tptest" local PMU="UNHALTED_REFERENCE_CYCLES" local tests_to_skip=9 local ret + local TRACE_PATH # Find the raw perf id of the event. PERFID=$("$CURDIR/find_event" "$PMU") @@ -64,6 +64,8 @@ function test_ust_raw() return fi + TRACE_PATH=$(mktemp --tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX") + create_lttng_session_ok $SESSION_NAME $TRACE_PATH enable_ust_lttng_channel_ok $SESSION_NAME $CHAN_NAME @@ -87,7 +89,6 @@ function test_ust_raw() function test_kernel_raw() { - local TRACE_PATH=$(mktemp -d) local SESSION_NAME="kernel_perf" local CHAN_NAME="mychan" local EVENT_NAME="lttng_test_filter_event" @@ -95,6 +96,7 @@ function test_kernel_raw() local PERFID="" local tests_to_skip=9 local ret + local TRACE_PATH # Find the raw perf id of the event. PERFID=$("$CURDIR/find_event" "$PMU") @@ -112,6 +114,8 @@ function test_kernel_raw() return fi + TRACE_PATH=$(mktemp --tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX") + create_lttng_session_ok $SESSION_NAME $TRACE_PATH lttng_enable_kernel_channel_ok $SESSION_NAME $CHAN_NAME