Tests: live/test_{lttng_,}kernel: use lttng_test_filter_event instead of sched_switch
[lttng-tools.git] / tests / regression / tools / live / test_kernel
index c3a2dfc979ca46752a99705cdbcfc0ebab07ec94..6e3e0b39bfde2bb02550d4eef45620f950c14651 100755 (executable)
@@ -25,7 +25,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)
 
@@ -58,11 +58,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
 
@@ -70,3 +74,5 @@ clean_live_tracing
 
 stop_lttng_relayd_notap
 stop_lttng_sessiond_notap
+
+modprobe --remove lttng-test
This page took 0.024207 seconds and 4 git commands to generate.