diff options
author | Masami Hiramatsu <[email protected]> | 2018-10-22 00:08:48 +0900 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2018-10-28 15:14:55 -0400 |
commit | 0d0352d8b3d6d7ca9a710b40e194cbbaeb841c88 (patch) | |
tree | 1c2e952ee3a56d87836a4223b9d0be060258f8ac /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 18858511fd8a877303cc34c06efa461b26a0e070 (diff) |
selftests/ftrace: Fix synthetic event test to delete event correctly
Fix the synthetic event test case to remove event correctly.
If redirecting command to synthetic_event file without append
mode, it cleans up all existing events and execute (parse) the
command. This means "delete event" always fails to find the
target event.
Since previous synthetic event has a bug which doesn't return
-ENOENT even if it fails to find the deleting event, this test
passed. But fixing that bug, this test fails because this test
itself has a bug.
This fixes that bug by trying to delete event right after
adding an event, and use append mode redirection ('>>') instead
of normal redirection ('>').
Link: http://lkml.kernel.org/r/154013452832.25576.2305459545429386517.stgit@devbox
Acked-by: Shuah Khan <[email protected]>
Acked-by: Tom Zanussi <[email protected]>
Tested-by: Tom Zanussi <[email protected]>
Cc: Tom Zanussi <[email protected]>
Cc: Tom Zanussi <[email protected]>
Cc: Rajvi Jingar <[email protected]>
Cc: Shuah Khan <[email protected]>
Cc: [email protected]
Fixes: f06eec4d0f2c ('selftests: ftrace: Add inter-event hist triggers testcases')
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions