stop_lttng_tracing_ok
- destroy_lttng_session $SESSION_NAME
+ destroy_lttng_session_ok $SESSION_NAME
validate_trace "perf_thread_page_fault" $TRACE_PATH
rm -rf $TRACE_PATH
print_test_banner "$TEST_DESC"
-start_lttng_sessiond
+if [ "$(id -u)" == "0" ]; then
+ isroot=1
+else
+ isroot=0
+fi
+
+skip $isroot "Root access is needed. Skipping UST perf tests." ${NUM_TESTS} ||
+{
+ start_lttng_sessiond
-test_event_basic
+ test_event_basic
-stop_lttng_sessiond
+ stop_lttng_sessiond
+}