]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/probe: Fix bpf_task_fd_query() for kprobes and uprobes
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Mon, 8 Jun 2020 12:45:32 +0000 (14:45 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 9 Jun 2020 18:10:12 +0000 (11:10 -0700)
commit4315a8e5b2e816f69f79611618148f19a02906be
tree5636279f5c7537d231e96104ae96301bc5d5dcd7
parent9c5c25582b092a4db5412de291e24eebe9318dbf
tracing/probe: Fix bpf_task_fd_query() for kprobes and uprobes

Commit 11e5f011ef39 ("tracing/probe: Split trace_event related data from
trace_probe") removed the trace_[ku]probe structure from the
trace_event_call->data pointer. As bpf_get_[ku]probe_info() were
forgotten in that change, fix them now. These functions are currently
only used by the bpf_task_fd_query() syscall handler to collect
information about a perf event.

Fixes: 11e5f011ef39 ("tracing/probe: Split trace_event related data from trace_probe")
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/bpf/20200608124531.819838-1-jean-philippe@linaro.org
kernel/trace/trace_kprobe.c
kernel/trace/trace_uprobe.c