We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a82a3f commit 005682bCopy full SHA for 005682b
tools/tracing/rtla/tests/timerlat.t
@@ -4,7 +4,20 @@ source tests/engine.sh
4
test_begin
5
6
set_timeout 2m
7
+timerlat_sample_event='/sys/kernel/tracing/events/osnoise/timerlat_sample'
8
9
+if ldd $RTLA | grep libbpf >/dev/null && [ -d "$timerlat_sample_event" ]
10
+then
11
+ # rtla build with BPF and system supports BPF mode
12
+ no_bpf_options='0 1'
13
+else
14
+ no_bpf_options='1'
15
+fi
16
+
17
+# Do every test with and without BPF
18
+for option in $no_bpf_options
19
+do
20
+export RTLA_NO_BPF=$option
21
check "verify help page" \
22
"timerlat --help"
23
check "verify -s/--stack" \
@@ -23,5 +36,6 @@ check "verify -c/--cpus" \
36
"timerlat hist -c 0 -d 30s"
24
37
check "hist test in nanoseconds" \
25
38
"timerlat hist -i 2 -c 0 -n -d 30s"
39
+done
26
40
27
41
test_end
0 commit comments