Commit c91afa7
committed
tracing: tprobe-events: Fix to put tracepoint_user when disable the tprobe
__unregister_trace_fprobe() checks tf->tuser to put it when removing
tprobe. However, disable_trace_fprobe() does not use it and only calls
unregister_fprobe(). Thus it forgets to disable tracepoint_user.
If the trace_fprobe has tuser, put it for unregistering the tracepoint
callbacks when disabling tprobe correctly.
Link: https://lore.kernel.org/all/176244794466.155515.3971904050506100243.stgit@devnote2/
Fixes: 2867495 ("tracing: tprobe-events: Register tracepoint when enable tprobe event")
Cc: [email protected]
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Tested-by: Beau Belgrave <[email protected]>
Reviewed-by: Beau Belgrave <[email protected]>1 parent 10d9dda commit c91afa7
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1514 | 1514 | | |
1515 | 1515 | | |
1516 | 1516 | | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
1517 | 1521 | | |
1518 | 1522 | | |
1519 | 1523 | | |
| |||
0 commit comments