diff options
| author | Artem Savkov <[email protected]> | 2018-07-25 14:20:38 +0000 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2018-07-25 15:41:08 +0000 |
| commit | 57ea2a34adf40f3a6e88409aafcf803b8945619a (patch) | |
| tree | c0434898d0781699c6a698e64673bbaa15df208a /lib/debugobjects.c | |
| parent | selftests/ftrace: Add snapshot and tracing_on test case (diff) | |
| download | kernel-57ea2a34adf40f3a6e88409aafcf803b8945619a.tar.gz kernel-57ea2a34adf40f3a6e88409aafcf803b8945619a.zip | |
tracing/kprobes: Fix trace_probe flags on enable_trace_kprobe() failure
If enable_trace_kprobe fails to enable the probe in enable_k(ret)probe
it returns an error, but does not unset the tp flags it set previously.
This results in a probe being considered enabled and failures like being
unable to remove the probe through kprobe_events file since probes_open()
expects every probe to be disabled.
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Cc: Ingo Molnar <[email protected]>
Cc: [email protected]
Fixes: 41a7dd420c57 ("tracing/kprobes: Support ftrace_event_file base multibuffer")
Acked-by: Masami Hiramatsu <[email protected]>
Reviewed-by: Josh Poimboeuf <[email protected]>
Signed-off-by: Artem Savkov <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
