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")
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
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"
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")
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