3 # Copyright (C) 2013 Christian Babeux <christian.babeux@efficios.com>
5 # SPDX-License-Identifier: GPL-2.0-only
8 TEST_DESC
="Kernel tracer - All events"
16 source $TESTDIR/utils
/utils.sh
18 function test_all_event
()
20 local TRACE_PATH
=$
(mktemp
--tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
21 SESSION_NAME
="kernel_all_events_basic"
23 create_lttng_session_ok
$SESSION_NAME $TRACE_PATH
25 lttng_enable_kernel_event
$SESSION_NAME
27 start_lttng_tracing_ok
29 # Running a process and waiting for its completion forces the triggering of a
34 validate_trace
"sched_switch" $TRACE_PATH
36 destroy_lttng_session_ok
$SESSION_NAME
41 # MUST set TESTDIR before calling those functions
44 print_test_banner
"$TEST_DESC"
46 if [ "$(id -u)" == "0" ]; then
52 skip
$isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
54 validate_lttng_modules_present