aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/samples/bpf/tracex3_kern.c
diff options
context:
space:
mode:
authorDaniel T. Lee <danieltimlee@gmail.com>2019-02-27 02:52:26 -0500
committerDaniel Borkmann <daniel@iogearbox.net>2019-02-27 17:27:22 +0100
commitd2e614cb0795d935aee879e47aab231247274f13 (patch)
tree3004ab61b1ad0e1611083510111f3faa8d3c61d0 /samples/bpf/tracex3_kern.c
parentMerge branch 'bpf-prog-stats' (diff)
downloadwireguard-linux-d2e614cb0795d935aee879e47aab231247274f13.tar.xz
wireguard-linux-d2e614cb0795d935aee879e47aab231247274f13.zip
samples: bpf: fix: broken sample regarding removed function
Currently, running sample "task_fd_query" and "tracex3" occurs the following error. On kernel v5.0-rc* this sample will be unavailable due to the removal of function 'blk_start_request' at commit "a1ce35f". (function removed, as "Single Queue IO scheduler" no longer exists) $ sudo ./task_fd_query failed to create kprobe 'blk_start_request' error 'No such file or directory' This commit will change the function 'blk_start_request' to 'blk_mq_start_request' to fix the broken sample. Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/tracex3_kern.c')
-rw-r--r--samples/bpf/tracex3_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/tracex3_kern.c b/samples/bpf/tracex3_kern.c
index 9974c3d7c18b..ea1d4c19c132 100644
--- a/samples/bpf/tracex3_kern.c
+++ b/samples/bpf/tracex3_kern.c
@@ -20,7 +20,7 @@ struct bpf_map_def SEC("maps") my_map = {
/* kprobe is NOT a stable ABI. If kernel internals change this bpf+kprobe
* example will no longer be meaningful
*/
-SEC("kprobe/blk_start_request")
+SEC("kprobe/blk_mq_start_request")
int bpf_prog1(struct pt_regs *ctx)
{
long rq = PT_REGS_PARM1(ctx);