Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/tracing: Fix to check awk supports non POSIX strtonum()

Check the awk command supports non POSIX strtonum() function in
the trace_marker_raw test case.

Fixes: 37f46601383a ("selftests/tracing: Add basic test for trace_marker_raw file")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/177071726229.2369897.11506524546451139051.stgit@mhiramat.tok.corp.google.com
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Masami Hiramatsu (Google) and committed by
Shuah Khan
3d0b8e45 e011853d

+6
+2
tools/testing/selftests/ftrace/test.d/00basic/trace_marker_raw.tc
··· 4 4 # requires: trace_marker_raw 5 5 # flags: instance 6 6 7 + check_awk_strtonum || exit_unresolved 8 + 7 9 is_little_endian() { 8 10 if lscpu | grep -q 'Little Endian'; then 9 11 echo 1;
+4
tools/testing/selftests/ftrace/test.d/functions
··· 173 173 done 174 174 } 175 175 176 + check_awk_strtonum() { # strtonum is GNU awk extension 177 + awk 'BEGIN{strtonum("0x1")}' 178 + } 179 + 176 180 LOCALHOST=127.0.0.1 177 181 178 182 yield() {