diff options
| author | Daniel T. Lee <[email protected]> | 2020-08-18 05:16:41 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-08-19 00:10:03 +0000 |
| commit | 2bf8c7e735ac8ab81eebd672caee41c77ec1b793 (patch) | |
| tree | b15eb8e2507ee71de81a04ac9bb4ac7b62e4d3ad /samples/bpf/task_fd_query_user.c | |
| parent | net: eliminate meaningless memcpy to data in pskb_carve_inside_nonlinear() (diff) | |
| download | kernel-2bf8c7e735ac8ab81eebd672caee41c77ec1b793.tar.gz kernel-2bf8c7e735ac8ab81eebd672caee41c77ec1b793.zip | |
samples: bpf: Fix broken bpf programs due to removed symbol
>From commit f1394b798814 ("block: mark blk_account_io_completion
static") symbol blk_account_io_completion() has been marked as static,
which makes it no longer possible to attach kprobe to this event.
Currently, there are broken samples due to this reason.
As a solution to this, attach kprobe events to blk_account_io_done()
to modify them to perform the same behavior as before.
Signed-off-by: Daniel T. Lee <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'samples/bpf/task_fd_query_user.c')
| -rw-r--r-- | samples/bpf/task_fd_query_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/task_fd_query_user.c b/samples/bpf/task_fd_query_user.c index ff2e9c1c7266..4a74531dc403 100644 --- a/samples/bpf/task_fd_query_user.c +++ b/samples/bpf/task_fd_query_user.c @@ -314,7 +314,7 @@ int main(int argc, char **argv) /* test two functions in the corresponding *_kern.c file */ CHECK_AND_RET(test_debug_fs_kprobe(0, "blk_mq_start_request", BPF_FD_TYPE_KPROBE)); - CHECK_AND_RET(test_debug_fs_kprobe(1, "blk_account_io_completion", + CHECK_AND_RET(test_debug_fs_kprobe(1, "blk_account_io_done", BPF_FD_TYPE_KRETPROBE)); /* test nondebug fs kprobe */ |
