diff options
author | Naveen N Rao <naveen@kernel.org> | 2023-12-14 10:47:02 +0530 |
---|---|---|
committer | Masami Hiramatsu (Google) <mhiramat@kernel.org> | 2023-12-17 16:28:54 +0900 |
commit | 9c556b7c3f520d42c435c0d78b25c719c060f8a1 (patch) | |
tree | 96e7e466d4bcc270aa0c3c67901e4c2ecd64af9d /Documentation/trace | |
parent | a39b6ac3781d46ba18193c9dbb2110f31e9bffe9 (diff) |
trace/kprobe: Display the actual notrace function when rejecting a probe
Trying to probe update_sd_lb_stats() using perf results in the below
message in the kernel log:
trace_kprobe: Could not probe notrace function _text
This is because 'perf probe' specifies the kprobe location as an offset
from '_text':
$ sudo perf probe -D update_sd_lb_stats
p:probe/update_sd_lb_stats _text+1830728
However, the error message is misleading and doesn't help convey the
actual notrace function that is being probed. Fix this by looking up the
actual function name that is being probed. With this fix, we now get the
below message in the kernel log:
trace_kprobe: Could not probe notrace function update_sd_lb_stats.constprop.0
Link: https://lore.kernel.org/all/20231214051702.1687300-1-naveen@kernel.org/
Signed-off-by: Naveen N Rao <naveen@kernel.org>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'Documentation/trace')
0 files changed, 0 insertions, 0 deletions