projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port: add support for BSD mktemp
[lttng-tools.git]
/
tests
/
regression
/
tools
/
live
/
test_kernel
diff --git
a/tests/regression/tools/live/test_kernel
b/tests/regression/tools/live/test_kernel
index 5e4a8d882539f211801d9d5a1137a027a276cc95..1be703aacf5d4b2e9a48f789afd5ebfbcdbdd1aa 100755
(executable)
--- a/
tests/regression/tools/live/test_kernel
+++ b/
tests/regression/tools/live/test_kernel
@@
-14,9
+14,9
@@
NR_USEC_WAIT=1
DELAY_USEC=2000000
SESSION_NAME="live"
DELAY_USEC=2000000
SESSION_NAME="live"
-EVENT_NAME="
sched_switch
"
+EVENT_NAME="
lttng_test_filter_event
"
-TRACE_PATH=$(mktemp -d)
+TRACE_PATH=$(mktemp -d
-t tmp.test_live_kernel_trace_path.XXXXXX
)
DIR=$(readlink -f $TESTDIR)
DIR=$(readlink -f $TESTDIR)
@@
-43,15
+43,19
@@
function clean_live_tracing()
if [ "$(id -u)" == "0" ]; then
isroot=1
else
if [ "$(id -u)" == "0" ]; then
isroot=1
else
-
echo
"Root access is needed. Skipping all tests."
+
plan_skip_all
"Root access is needed. Skipping all tests."
exit 0
fi
exit 0
fi
+modprobe lttng-test
+
start_lttng_sessiond_notap
start_lttng_relayd_notap "-o $TRACE_PATH"
setup_live_tracing
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
# 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
stop_lttng_relayd_notap
stop_lttng_sessiond_notap
+
+modprobe --remove lttng-test
This page took
0.023526 seconds
and
4
git commands to generate.