-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'linux-kselftest-4.20-rc1' of git://git.kernel.org/pub/scm/…
…linux/kernel/git/shuah/linux-kselftest Pull kselftest updates from Shuah Khan: "This Kselftest update for Linux 4.20-rc1 consists of: - Improvements to ftrace test suite from Masami Hiramatsu. - Color coded ftrace PASS / FAIL results from Steven Rostedt (VMware) to improve readability of reports. - watchdog Fixes and enhancement to add gettimeout and get|set pretimeout options from Jerry Hoemann. - Several fixes to warnings and spelling etc" * tag 'linux-kselftest-4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (40 commits) selftests/ftrace: Strip escape sequences for log file selftests/ftrace: Use colored output when available selftests: fix warning: "_GNU_SOURCE" redefined selftests: kvm: Fix -Wformat warnings selftests/ftrace: Add color to the PASS / FAIL results kvm: selftests: fix spelling mistake "Insufficent" -> "Insufficient" selftests: gpio: Fix OUTPUT directory in Makefile selftests: gpio: restructure Makefile selftests: watchdog: Fix ioctl SET* error paths to take oneshot exit path selftests: watchdog: Add gettimeout and get|set pretimeout selftests: watchdog: Fix error message. selftests: watchdog: fix message when /dev/watchdog open fails selftests/ftrace: Add ftrace cpumask testcase selftests/ftrace: Add wakeup_rt tracer testcase selftests/ftrace: Add wakeup tracer testcase selftests/ftrace: Add stacktrace ftrace filter command testcase selftests/ftrace: Add trace_pipe testcase selftests/ftrace: Add function filter on module testcase selftests/ftrace: Add max stack tracer testcase selftests/ftrace: Add function profiling stat testcase ...
- Loading branch information
Showing
67 changed files
with
564 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
tools/testing/selftests/ftrace/test.d/00basic/ringbuffer_size.tc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# description: Change the ringbuffer size | ||
# flags: instance | ||
|
||
rb_size_test() { | ||
ORIG=`cat buffer_size_kb` | ||
|
||
expr $ORIG / 2 > buffer_size_kb | ||
|
||
expr $ORIG \* 2 > buffer_size_kb | ||
|
||
echo $ORIG > buffer_size_kb | ||
} | ||
|
||
rb_size_test | ||
|
||
: "If per-cpu buffer is supported, imbalance it" | ||
if [ -d per_cpu/cpu0 ]; then | ||
cd per_cpu/cpu0 | ||
rb_size_test | ||
fi |
16 changes: 16 additions & 0 deletions
16
tools/testing/selftests/ftrace/test.d/00basic/trace_pipe.tc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# description: trace_pipe and trace_marker | ||
# flags: instance | ||
|
||
[ ! -f trace_marker ] && exit_unsupported | ||
|
||
echo "test input 1" > trace_marker | ||
|
||
: "trace interface never consume the ring buffer" | ||
grep -q "test input 1" trace | ||
grep -q "test input 1" trace | ||
|
||
: "trace interface never consume the ring buffer" | ||
head -n 1 trace_pipe | grep -q "test input 1" | ||
! grep -q "test input 1" trace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
tools/testing/selftests/ftrace/test.d/event/trace_printk.tc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# description: Test trace_printk from module | ||
|
||
rmmod trace-printk ||: | ||
if ! modprobe trace-printk ; then | ||
echo "No trace-printk sample module - please make CONFIG_SAMPLE_TRACE_PRINTK=m" | ||
exit_unresolved; | ||
fi | ||
|
||
echo "Waiting for irq work" | ||
sleep 1 | ||
|
||
grep -q ": This .* trace_bputs" trace | ||
grep -q ": This .* trace_puts" trace | ||
grep -q ": This .* trace_bprintk" trace | ||
grep -q ": This .* trace_printk" trace | ||
|
||
grep -q ": (irq) .* trace_bputs" trace | ||
grep -q ": (irq) .* trace_puts" trace | ||
grep -q ": (irq) .* trace_bprintk" trace | ||
grep -q ": (irq) .* trace_printk" trace | ||
|
||
grep -q "This is a %s that will use trace_bprintk" printk_formats | ||
grep -q "(irq) This is a static string that will use trace_bputs" printk_formats | ||
|
||
rmmod trace-printk ||: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.