ftrace: Add a ftrace test collection
v5 cover ftrace: Add a ftrace test collection
Hi,
Here is the collection of testcases for ftrace version 5. This is just a small update.
- Fix a TODO item, since this already integrated to kselftest.
- Print the test name at the first line.
- Add Shuah's acked-by. (Thanks!)
ftracetest is a shell(dash) script for testing ftrace features. It will be required to add a unit test for each new feature after this is merged, because of preventing regressions.
Thank you,
---
Masami Hiramatsu (4):
ftracetest: Initial commit for ftracetest
ftracetest: Add ftrace basic testcases
ftracetest: Add kprobe basic testcases
ftracetest: Add POSIX.3 standard and XFAIL result codes
MAINTAINERS | 1 tools/testing/selftests/Makefile | 1 tools/testing/selftests/ftrace/Makefile | 7 + tools/testing/selftests/ftrace/README | 82 +++++++ tools/testing/selftests/ftrace/ftracetest | 251 ++++++++++++++++++++ tools/testing/selftests/ftrace/samples/fail.tc | 4 tools/testing/selftests/ftrace/samples/pass.tc | 3 .../testing/selftests/ftrace/samples/unresolved.tc | 4 .../selftests/ftrace/samples/unsupported.tc | 3 tools/testing/selftests/ftrace/samples/untested.tc | 3 tools/testing/selftests/ftrace/samples/xfail.tc | 3 .../selftests/ftrace/test.d/00basic/basic1.tc | 3 .../selftests/ftrace/test.d/00basic/basic2.tc | 7 + .../selftests/ftrace/test.d/00basic/basic3.tc | 8 + .../ftrace/test.d/kprobe/add_and_remove.tc | 11 + .../selftests/ftrace/test.d/kprobe/busy_check.tc | 13 + tools/testing/selftests/ftrace/test.d/template | 9 + 17 files changed, 413 insertions(+) create mode 100644 tools/testing/selftests/ftrace/Makefile create mode 100644 tools/testing/selftests/ftrace/README create mode 100755 tools/testing/selftests/ftrace/ftracetest create mode 100644 tools/testing/selftests/ftrace/samples/fail.tc create mode 100644 tools/testing/selftests/ftrace/samples/pass.tc create mode 100644 tools/testing/selftests/ftrace/samples/unresolved.tc create mode 100644 tools/testing/selftests/ftrace/samples/unsupported.tc create mode 100644 tools/testing/selftests/ftrace/samples/untested.tc create mode 100644 tools/testing/selftests/ftrace/samples/xfail.tc create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/basic1.tc create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/basic2.tc create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/basic3.tc create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/add_and_remove.tc create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/busy_check.tc create mode 100644 tools/testing/selftests/ftrace/test.d/template
--
PATCH v5 1/4 ftracetest: Initial commit for ftracetest
ftracetest is a collection of testcase shell-scripts for ftrace. To avoid regressions of ftrace, these testcases check correct ftrace behaviors. If someone would like to add any features on ftrace, the patch series should have at least one testcase for checking the new behavior.
Changes in v5:
- Fix a TODO item, since this already integrated to kselftest.
- Print the test name at the first line.
Changes in v4:
- Move this under selftests. :)
- Add a copyright and note of GPLv2.
- Fix documents acconding to Steven's comments.
- Fix a small bug pointed by Namhyng.
Changes in v3:
- Use "." instead of "source".
- Don't use -e option for echo since dash doesn't support it.
Changes in v2:
- Remove unneeded 'function' keyword.
- Add abspath and find_testcases.
- Make OPT_TEST_CASES a local var.
- Ensure given testcase ended with .tc.
- Accept a directory option which has multiple testcases.
- Change [PASSED]/[FAILED] to [PASS]/[FAIL]
- Change the basic shell to sh (dash).
--- MAINTAINERS | 1 tools/testing/selftests/Makefile | 1 tools/testing/selftests/ftrace/Makefile | 7 + tools/testing/selftests/ftrace/README | 45 +++++++ tools/testing/selftests/ftrace/ftracetest | 159 ++++++++++++++++++++++++ tools/testing/selftests/ftrace/test.d/template | 4 + 6 files changed, 217 insertions(+) create mode 100644 tools/testing/selftests/ftrace/Makefile create mode 100644 tools/testing/selftests/ftrace/README create mode 100755 tools/testing/selftests/ftrace/ftracetest create mode 100644 tools/testing/selftests/ftrace/test.d/template
MAINTAINERS +1 -0
@@ -9295,6 +9295,7 @@ F: include/*/ftrace.h F: include/linux/trace*.h F: include/trace/ F: kernel/trace/ +F: tools/testing/selftests/ftrace/ TRIVIAL PATCHES M: Jiri Kosina <[email protected]>
tools/testing/selftests/Makefile +1 -0
@@ -14,6 +14,7 @@ TARGETS += powerpc TARGETS += user TARGETS += sysctl TARGETS += firmware +TARGETS += ftrace TARGETS_HOTPLUG = cpu-hotplug TARGETS_HOTPLUG += memory-hotplug
tools/testing/selftests/ftrace/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +all: + +run_tests: + @/bin/sh ./ftracetest || echo "ftrace selftests: [FAIL]" + +clean: + rm -rf logs/*
tools/testing/selftests/ftrace/README new file +45 -0
45 lines not on this page · raw message
tools/testing/selftests/ftrace/ftracetest new file +159 -0
159 lines not on this page · raw message
tools/testing/selftests/ftrace/test.d/template new file +4 -0
@@ -0,0 +1,4 @@ +#!/bin/sh +# description: %HERE DESCRIBE WHAT THIS DOES% +# you have to add ".tc" extention for your testcase file +exit 0 # Return 0 if the test is passed, otherwise return !0
Steven Rostedt
maintainerRe: [PATCH v5 1/4] ftracetest: Initial commit for ftracetest
For future reference:
Quoted 20 lines · On Mon, 22 Sep 2014 23:42:50 +0000 Masami Hiramatsu…
ftracetest is a collection of testcase shell-scripts for ftrace. To avoid regressions of ftrace, these testcases check correct ftrace behaviors. If someone would like to add any features on ftrace, the patch series should have at least one testcase for checking the new behavior.
Changes in v5:
- Fix a TODO item, since this already integrated to kselftest.
- Print the test name at the first line.Changes in v4:
- Move this under selftests. :)
- Add a copyright and note of GPLv2.
- Fix documents acconding to Steven's comments.
- Fix a small bug pointed by Namhyng.Changes in v3:
- Use "." instead of "source".
- Don't use -e option for echo since dash doesn't support it.
Quoted 8 lines
Changes in v2:
- Remove unneeded 'function' keyword.
- Add abspath andfind_testcases.
- MakeOPT_TEST_CASESa local var.
- Ensure given testcase ended with .tc.
- Accept a directory option which has multiple testcases.
- Change [PASSED]/[FAILED] to [PASS]/[FAIL]
- Change the basic shell to sh (dash).
Place the version changes after the '---'. They are great for patch series, but we prefer not to have them in the git logs. The "Link:" tag should allow people to find the version history of patches if they are interested. By placing the version updates after the '---', git will ignore them when pulling them in.
Quoted 4 lines
Signed-off-by Masami Hiramatsu <[email protected]>Acked-by Shuah Khan <[email protected]>---
Also, please have the Signed-off-by be the last tag, otherwise it screws up my scripts ;-)
-- Steve
Re: [PATCH v5 1/4] ftracetest: Initial commit for ftracetest
Quoted 34 lines · Steven Rostedt
For future reference:
Quoted 20 lines · On Mon, 22 Sep 2014 23:42:50 +0000 Masami Hiramatsu…
ftracetest is a collection of testcase shell-scripts for ftrace. To avoid regressions of ftrace, these testcases check correct ftrace behaviors. If someone would like to add any features on ftrace, the patch series should have at least one testcase for checking the new behavior.
Changes in v5:
- Fix a TODO item, since this already integrated to kselftest.
- Print the test name at the first line.Changes in v4:
- Move this under selftests. :)
- Add a copyright and note of GPLv2.
- Fix documents acconding to Steven's comments.
- Fix a small bug pointed by Namhyng.Changes in v3:
- Use "." instead of "source".
- Don't use -e option for echo since dash doesn't support it.Quoted 8 lines
Changes in v2:
- Remove unneeded 'function' keyword.
- Add abspath andfind_testcases.
- MakeOPT_TEST_CASESa local var.
- Ensure given testcase ended with .tc.
- Accept a directory option which has multiple testcases.
- Change [PASSED]/[FAILED] to [PASS]/[FAIL]
- Change the basic shell to sh (dash).
Quoted 5 lines
Place the version changes after the '---'. They are great for patch series, but we prefer not to have them in the git logs. The "Link:" tag should allow people to find the version history of patches if they are interested. By placing the version updates after the '---', git will ignore them when pulling them in.
Ah, I see :)
For the next series, I'll do that.
Quoted 8 lines
Quoted 5 lines
Signed-off-by Masami Hiramatsu <[email protected]>Acked-by Shuah Khan <[email protected]>---
Also, please have the Signed-off-by be the last tag, otherwise it screws up my scripts ;-)
OK.
Thank you!
Signature · 4 lines
Masami HIRAMATSU Software Platform Research Dept. Linux Technology Research Center Hitachi, Ltd., Yokohama Research Laboratory E-mail: [email protected]
PATCH v5 2/4 ftracetest: Add ftrace basic testcases
In reply to Masami HiramatsuAdd ftrace basic testcases. This just checks ftrace debugfs interface works as it is designed.
Changes in v2:
- Change shell to sh instead of bash.
--- .../selftests/ftrace/test.d/00basic/basic1.tc | 3 +++ .../selftests/ftrace/test.d/00basic/basic2.tc | 6 ++++++ .../selftests/ftrace/test.d/00basic/basic3.tc | 8 ++++++++ 3 files changed, 17 insertions(+) create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/basic1.tc create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/basic2.tc create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/basic3.tc
tools/testing/selftests/ftrace/test.d/00basic/basic1.tc new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh +# description: Basic trace file check +test -f README -a -f trace -a -f tracing_on -a -f trace_pipe
tools/testing/selftests/ftrace/test.d/00basic/basic2.tc new file +6 -0
@@ -0,0 +1,6 @@ +#!/bin/sh +# description: Basic test for tracers +for t in `cat available_tracers`; do + echo $t > current_tracer || exit 1 +done +echo nop > current_tracer
tools/testing/selftests/ftrace/test.d/00basic/basic3.tc new file +8 -0
@@ -0,0 +1,8 @@ +#!/bin/sh +# description: Basic trace clock test +[ -f trace_clock ] || exit 1 +for c in `cat trace_clock | tr -d \[\]`; do + echo $c > trace_clock || exit 1 + grep '\['$c'\]' trace_clock || exit 1 +done +echo local > trace_clock
PATCH v5 3/4 ftracetest: Add kprobe basic testcases
In reply to Masami HiramatsuAdd basic testcases for kprobe dynamic events. This also shows that the ftracetest accepts sub-directory for new testcases.
Changes in v2:
- Change shell to sh instead of bash.
--- .../ftrace/test.d/kprobe/add_and_remove.tc | 11 +++++++++++ .../selftests/ftrace/test.d/kprobe/busy_check.tc | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/add_and_remove.tc create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/busy_check.tc
tools/testing/selftests/ftrace/test.d/kprobe/add_and_remove.tc new file +11 -0
@@ -0,0 +1,11 @@ +#!/bin/sh +# description: Kprobe dynamic event - adding and removing + +[ -f kprobe_events ] || exit 1 + +echo 0 > events/enable || exit 1 +echo > kprobe_events || exit 1 +echo p:myevent do_fork > kprobe_events || exit 1 +grep myevent kprobe_events || exit 1 +[ -d events/kprobes/myevent ] || exit 1 +echo > kprobe_events
tools/testing/selftests/ftrace/test.d/kprobe/busy_check.tc new file +14 -0
@@ -0,0 +1,14 @@ +#!/bin/sh +# description: Kprobe dynamic event - busy event check + +[ -f kprobe_events ] || exit 1 + +echo 0 > events/enable || exit 1 +echo > kprobe_events || exit 1 +echo p:myevent do_fork > kprobe_events || exit 1 +[ -d events/kprobes/myevent ] || exit 1 +echo 1 > events/kprobes/myevent/enable || exit 1 +echo > kprobe_events && exit 1 # this must fail +echo 0 > events/kprobes/myevent/enable || exit 1 +echo > kprobe_events # this must succeed +
PATCH v5 4/4 ftracetest: Add POSIX.3 standard and XFAIL result codes
In reply to Masami HiramatsuAdd XFAIL and POSIX 1003.3 standard codes (UNRESOLVED/ UNTESTED/UNSUPPORTED) as result codes. These are used for the results that test case is expected to fail or unsupported feature (by config).
To return these result code, this introduces exit_unresolved, exit_untested, exit_unsupported and exit_xfail functions, which use real-time signals to notify the result code to ftracetest.
This also set "errexit" option for the testcases, so that the tests don't need to exit explicitly.
Changes in v4:
- Remove XPASS and short-names.
- Use real-time signals for result code.
- Simplify test cases by using errexit option.
- Add sample scripts for result code.
Changes in v3:
- Add UNRESOLVED/UNTESTED codes.
- Fix to handle undefined codes.
- Add a document about return codes.
- Fix to show failure logs.
- Don't use -e option for echo since dash doesn't support it.
--- tools/testing/selftests/ftrace/README | 37 ++++++ tools/testing/selftests/ftrace/ftracetest | 122 ++++++++++++++++++-- tools/testing/selftests/ftrace/samples/fail.tc | 4 + tools/testing/selftests/ftrace/samples/pass.tc | 3 .../testing/selftests/ftrace/samples/unresolved.tc | 4 + .../selftests/ftrace/samples/unsupported.tc | 3 tools/testing/selftests/ftrace/samples/untested.tc | 3 tools/testing/selftests/ftrace/samples/xfail.tc | 3 .../selftests/ftrace/test.d/00basic/basic2.tc | 3 .../selftests/ftrace/test.d/00basic/basic3.tc | 6 - .../ftrace/test.d/kprobe/add_and_remove.tc | 12 +- .../selftests/ftrace/test.d/kprobe/busy_check.tc | 15 +- tools/testing/selftests/ftrace/test.d/template | 5 + 13 files changed, 187 insertions(+), 33 deletions(-) create mode 100644 tools/testing/selftests/ftrace/samples/fail.tc create mode 100644 tools/testing/selftests/ftrace/samples/pass.tc create mode 100644 tools/testing/selftests/ftrace/samples/unresolved.tc create mode 100644 tools/testing/selftests/ftrace/samples/unsupported.tc create mode 100644 tools/testing/selftests/ftrace/samples/untested.tc create mode 100644 tools/testing/selftests/ftrace/samples/xfail.tc
tools/testing/selftests/ftrace/README +37 -0
@@ -38,6 +38,43 @@ extension) and rewrite the test description line. * The test cases should run on dash (busybox shell) for testing on minimal cross-build environments. + * Note that the tests are run with "set -e" (errexit) option. If any + command fails, the test will be terminated immediately. + + * The tests can return some result codes instead of pass or fail by + using exit_unresolved, exit_untested, exit_unsupported and exit_xfail. + +Result code +=========== + +Ftracetest supports following result codes. + + * PASS: The test succeeded as expected. The test which exits with 0 is + counted as passed test. + + * FAIL: The test failed, but was expected to succeed. The test which exits + with !0 is counted as failed test. + + * UNRESOLVED: The test produced unclear or intermidiate results. + for example, the test was interrupted + or the test depends on a previous test, which failed. + or the test was set up incorrectly + The test which is in above situation, must call exit_unresolved. + + * UNTESTED: The test was not run, currently just a placeholder. + In this case, the test must call exit_untested. + + * UNSUPPORTED: The test failed because of lack of feature. + In this case, the test must call exit_unsupported. + + * XFAIL: The test failed, and was expected to fail. + To return XFAIL, call exit_xfail from the test. + +There are some sample test scripts for result code under samples/. +You can also run samples as below: + + # ./ftracetest samples/ + TODO ====
tools/testing/selftests/ftrace/ftracetest +107 -15
151 lines not on this page · raw message
tools/testing/selftests/ftrace/samples/fail.tc new file +4 -0
@@ -0,0 +1,4 @@ +#!/bin/sh +# description: failure-case example +cat non-exist-file +echo "this is not executed"
tools/testing/selftests/ftrace/samples/pass.tc new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh +# description: pass-case example +return 0
tools/testing/selftests/ftrace/samples/unresolved.tc new file +4 -0
@@ -0,0 +1,4 @@ +#!/bin/sh +# description: unresolved-case example +trap exit_unresolved INT +kill -INT $PID
tools/testing/selftests/ftrace/samples/unsupported.tc new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh +# description: unsupported-case example +exit_unsupported
tools/testing/selftests/ftrace/samples/untested.tc new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh +# description: untested-case example +exit_untested
tools/testing/selftests/ftrace/samples/xfail.tc new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh +# description: xfail-case example +cat non-exist-file || exit_xfail
tools/testing/selftests/ftrace/test.d/00basic/basic2.tc +2 -1
@@ -1,6 +1,7 @@ #!/bin/sh # description: Basic test for tracers +test -f available_tracers for t in `cat available_tracers`; do - echo $t > current_tracer || exit 1 + echo $t > current_tracer done echo nop > current_tracer
tools/testing/selftests/ftrace/test.d/00basic/basic3.tc +3 -3
@@ -1,8 +1,8 @@ #!/bin/sh # description: Basic trace clock test -[ -f trace_clock ] || exit 1 +test -f trace_clock for c in `cat trace_clock | tr -d \[\]`; do - echo $c > trace_clock || exit 1 - grep '\['$c'\]' trace_clock || exit 1 + echo $c > trace_clock + grep '\['$c'\]' trace_clock done echo local > trace_clock
tools/testing/selftests/ftrace/test.d/kprobe/add_and_remove.tc +6 -6
@@ -1,11 +1,11 @@ #!/bin/sh # description: Kprobe dynamic event - adding and removing -[ -f kprobe_events ] || exit 1 +[ -f kprobe_events ] || exit_unsupported # this is configurable -echo 0 > events/enable || exit 1 -echo > kprobe_events || exit 1 -echo p:myevent do_fork > kprobe_events || exit 1 -grep myevent kprobe_events || exit 1 -[ -d events/kprobes/myevent ] || exit 1 +echo 0 > events/enable +echo > kprobe_events +echo p:myevent do_fork > kprobe_events +grep myevent kprobe_events +test -d events/kprobes/myevent echo > kprobe_events
tools/testing/selftests/ftrace/test.d/kprobe/busy_check.tc +7 -8
@@ -1,14 +1,13 @@ #!/bin/sh # description: Kprobe dynamic event - busy event check -[ -f kprobe_events ] || exit 1 +[ -f kprobe_events ] || exit_unsupported -echo 0 > events/enable || exit 1 -echo > kprobe_events || exit 1 -echo p:myevent do_fork > kprobe_events || exit 1 -[ -d events/kprobes/myevent ] || exit 1 -echo 1 > events/kprobes/myevent/enable || exit 1 +echo 0 > events/enable +echo > kprobe_events +echo p:myevent do_fork > kprobe_events +test -d events/kprobes/myevent +echo 1 > events/kprobes/myevent/enable echo > kprobe_events && exit 1 # this must fail -echo 0 > events/kprobes/myevent/enable || exit 1 +echo 0 > events/kprobes/myevent/enable echo > kprobe_events # this must succeed -
tools/testing/selftests/ftrace/test.d/template +5 -0
@@ -1,4 +1,9 @@ #!/bin/sh # description: %HERE DESCRIBE WHAT THIS DOES% # you have to add ".tc" extention for your testcase file +# Note that all tests are run with "errexit" option. + exit 0 # Return 0 if the test is passed, otherwise return !0 +# If the test could not run because of lack of feature, call exit_unsupported +# If the test returned unclear results, call exit_unresolved +# If the test is a dummy, or a placeholder, call exit_untested
Quoted 5 lines · Masami Hiramatsu
Hi,
Here is the collection of testcases for ftrace version 5. This is just a small update.
Quoted 7 lines
- Fix a TODO item, since this already integrated to kselftest.
- Print the test name at the first line.
- Add Shuah's acked-by. (Thanks!)ftracetest is a shell(dash) script for testing ftrace features. It will be required to add a unit test for each new feature after this is merged, because of preventing regressions.
If I'm not too late.. :)
Thanks,
Namhyung
Quoted 45 lines
---
Masami Hiramatsu (4):
ftracetest: Initial commit for ftracetest
ftracetest: Add ftrace basic testcases
ftracetest: Add kprobe basic testcases
ftracetest: Add POSIX.3 standard and XFAIL result codesMAINTAINERS | 1 tools/testing/selftests/Makefile | 1 tools/testing/selftests/ftrace/Makefile | 7 + tools/testing/selftests/ftrace/README | 82 +++++++ tools/testing/selftests/ftrace/ftracetest | 251 ++++++++++++++++++++ tools/testing/selftests/ftrace/samples/fail.tc | 4 tools/testing/selftests/ftrace/samples/pass.tc | 3 .../testing/selftests/ftrace/samples/unresolved.tc | 4 .../selftests/ftrace/samples/unsupported.tc | 3 tools/testing/selftests/ftrace/samples/untested.tc | 3 tools/testing/selftests/ftrace/samples/xfail.tc | 3 .../selftests/ftrace/test.d/00basic/basic1.tc | 3 .../selftests/ftrace/test.d/00basic/basic2.tc | 7 + .../selftests/ftrace/test.d/00basic/basic3.tc | 8 + .../ftrace/test.d/kprobe/add_and_remove.tc | 11 + .../selftests/ftrace/test.d/kprobe/busy_check.tc | 13 + tools/testing/selftests/ftrace/test.d/template | 9 + 17 files changed, 413 insertions(+) create mode 100644 tools/testing/selftests/ftrace/Makefile create mode 100644 tools/testing/selftests/ftrace/README create mode 100755 tools/testing/selftests/ftrace/ftracetest create mode 100644 tools/testing/selftests/ftrace/samples/fail.tc create mode 100644 tools/testing/selftests/ftrace/samples/pass.tc create mode 100644 tools/testing/selftests/ftrace/samples/unresolved.tc create mode 100644 tools/testing/selftests/ftrace/samples/unsupported.tc create mode 100644 tools/testing/selftests/ftrace/samples/untested.tc create mode 100644 tools/testing/selftests/ftrace/samples/xfail.tc create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/basic1.tc create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/basic2.tc create mode 100644 tools/testing/selftests/ftrace/test.d/00basic/basic3.tc create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/add_and_remove.tc create mode 100644 tools/testing/selftests/ftrace/test.d/kprobe/busy_check.tc create mode 100644 tools/testing/selftests/ftrace/test.d/template--
Steven Rostedt
maintainerAck fot all? I can add it.
-- Steve
Quoted 76 lines · Namhyung Kim
Quoted 5 lines · Masami Hiramatsu
Hi,
Here is the collection of testcases for ftrace version 5. This is just a small update.
Quoted 7 lines
- Fix a TODO item, since this already integrated to kselftest.
- Print the test name at the first line.
- Add Shuah's acked-by. (Thanks!)ftracetest is a shell(dash) script for testing ftrace features. It will be required to add a unit test for each new feature after this is merged, because of preventing regressions.
If I'm not too late.. :)
Acked-by Namhyung Kim <[email protected]>Thanks,
NamhyungQuoted 10 lines
---
Masami Hiramatsu (4):
ftracetest: Initial commit for ftracetest
ftracetest: Add ftrace basic testcases
ftracetest: Add kprobe basic testcases
ftracetest: Add POSIX.3 standard and XFAIL result codesQuoted 5 lines
MAINTAINERS | 1 tools/testing/selftests/Makefile | 1 tools/testing/selftests/ftrace/Makefile | 7 + tools/testing/selftests/ftrace/README | 82 +++++++ tools/testing/selftests/ftrace/ftracetest | 251++++++++++++++++++++
Quoted 11 lines
tools/testing/selftests/ftrace/samples/fail.tc | 4 tools/testing/selftests/ftrace/samples/pass.tc | 3 .../testing/selftests/ftrace/samples/unresolved.tc | 4 .../selftests/ftrace/samples/unsupported.tc | 3 tools/testing/selftests/ftrace/samples/untested.tc | 3 tools/testing/selftests/ftrace/samples/xfail.tc | 3 .../selftests/ftrace/test.d/00basic/basic1.tc | 3 .../selftests/ftrace/test.d/00basic/basic2.tc | 7 + .../selftests/ftrace/test.d/00basic/basic3.tc | 8 + .../ftrace/test.d/kprobe/add_and_remove.tc | 11 + .../selftests/ftrace/test.d/kprobe/busy_check.tc | 13 +Quoted 8 lines
tools/testing/selftests/ftrace/test.d/template | 9 + 17 files changed, 413 insertions(+) create mode 100644 tools/testing/selftests/ftrace/Makefile create mode 100644 tools/testing/selftests/ftrace/README create mode 100755 tools/testing/selftests/ftrace/ftracetest create mode 100644 tools/testing/selftests/ftrace/samples/fail.tc create mode 100644 tools/testing/selftests/ftrace/samples/pass.tc create mode 100644
tools/testing/selftests/ftrace/samples/unresolved.tcQuoted 1 line
create mode 100644
tools/testing/selftests/ftrace/samples/unsupported.tcQuoted 1 line
create mode 100644
tools/testing/selftests/ftrace/samples/untested.tcQuoted 2 lines
create mode 100644 tools/testing/selftests/ftrace/samples/xfail.tc create mode 100644
tools/testing/selftests/ftrace/test.d/00basic/basic1.tcQuoted 1 line
create mode 100644
tools/testing/selftests/ftrace/test.d/00basic/basic2.tcQuoted 1 line
create mode 100644
tools/testing/selftests/ftrace/test.d/00basic/basic3.tcQuoted 1 line
create mode 100644
tools/testing/selftests/ftrace/test.d/kprobe/add_and_remove.tcQuoted 1 line
create mode 100644
tools/testing/selftests/ftrace/test.d/kprobe/busy_check.tcQuoted 3 lines
create mode 100644 tools/testing/selftests/ftrace/test.d/template--
Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Hi Steve,
Quoted 1 line · Steven Rostedt
Ack fot all? I can add it.
Yep, please add it for all the patches.
Thanks,
Namhyung