mirror-linux/tools/testing/selftests/ftrace/test.d/kprobe
Masami Hiramatsu 8e923a2168 selftests/ftrace: Use printf for backslash included command
Since the built-in echo has different behavior in POSIX shell
(dash) and bash, kprobe_syntax_errors.tc can fail on dash which
interpret backslash escape automatically.

To fix this issue, we explicitly use printf "%s" (not interpret
backslash escapes) if the command string can include backslash.

Reported-by: Liu Yiding <yidingx.liu@intel.com>
Suggested-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2020-05-28 10:13:18 -06:00
..
add_and_remove.tc selftests/ftrace: Remove unneeded per-test init/cleanup ftrace 2018-10-24 14:49:35 -06:00
busy_check.tc selftests/ftrace: Remove unneeded per-test init/cleanup ftrace 2018-10-24 14:49:35 -06:00
kprobe_args.tc selftests/ftrace: Improve kprobe testcase to check log data 2018-10-24 14:49:35 -06:00
kprobe_args_comm.tc selftests/ftrace: Add kprobe event with $comm argument testcase 2018-10-24 14:49:35 -06:00
kprobe_args_string.tc selftests/ftrace: Remove unneeded per-test init/cleanup ftrace 2018-10-24 14:49:35 -06:00
kprobe_args_symbol.tc selftests/ftrace: Add kprobe-event with symbol argument test 2018-10-24 14:49:35 -06:00
kprobe_args_syntax.tc selftests/ftrace: Fix to test kprobe $comm arg only if available 2018-10-24 14:49:35 -06:00
kprobe_args_type.tc selftests/ftrace: Check the first record for kprobe_args_type.tc 2020-04-24 09:39:26 -06:00
kprobe_args_user.tc selftests/ftrace: Add user-memory access syntax testcase 2019-05-25 23:04:42 -04:00
kprobe_eventname.tc selftests/ftrace: Select an existing function in kprobe_eventname test 2019-09-17 12:05:13 -04:00
kprobe_ftrace.tc selftests/ftrace: Check required filter files before running test 2020-04-23 17:11:37 -06:00
kprobe_module.tc selftests/ftrace: Improve kprobe on module testcase to load/unload module 2018-10-24 14:49:35 -06:00
kprobe_multiprobe.tc selftests/ftrace: Add a testcase for kprobe multiprobe event 2019-08-31 12:19:39 -04:00
kprobe_syntax_errors.tc selftests/ftrace: Use printf for backslash included command 2020-05-28 10:13:18 -06:00
kretprobe_args.tc selftests/ftrace: Improve kretprobe testcase to check log data 2018-10-24 14:49:35 -06:00
kretprobe_maxactive.tc selftests/ftrace: Remove unneeded per-test init/cleanup ftrace 2018-10-24 14:49:35 -06:00
multiple_kprobes.tc selftests/ftrace: Fix multiple kprobe testcase 2019-12-09 10:53:04 -07:00
probepoint.tc selftests/ftrace: Remove unneeded per-test init/cleanup ftrace 2018-10-24 14:49:35 -06:00
profile.tc selftests/ftrace: Add kprobe profile testcase 2018-10-24 14:49:35 -06:00
uprobe_syntax_errors.tc selftests/ftrace: Move kprobe/uprobe check_error() to test.d/functions 2019-04-08 09:22:50 -04:00