Tests: live/test_{lttng_,}kernel: use lttng_test_filter_event instead of sched_switch
[lttng-tools.git] / tests / regression / tools / live / test_kernel
index 5e4a8d882539f211801d9d5a1137a027a276cc95..25cb0eda17d6dabe3b4846d6ba2daba331a0942b 100755 (executable)
@@ -14,7 +14,7 @@ NR_USEC_WAIT=1
 DELAY_USEC=2000000
 
 SESSION_NAME="live"
-EVENT_NAME="sched_switch"
+EVENT_NAME="lttng_test_filter_event"
 
 TRACE_PATH=$(mktemp -d)
 
@@ -47,11 +47,15 @@ else
        exit 0
 fi
 
+modprobe lttng-test
+
 start_lttng_sessiond_notap
 start_lttng_relayd_notap "-o $TRACE_PATH"
 
 setup_live_tracing
 
+echo -n "1" > /proc/lttng-test-filter-event
+
 # Start the live test
 $TESTDIR/regression/tools/live/live_test
 
@@ -59,3 +63,5 @@ clean_live_tracing
 
 stop_lttng_relayd_notap
 stop_lttng_sessiond_notap
+
+modprobe --remove lttng-test
This page took 0.023583 seconds and 4 git commands to generate.