]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: fix: broken sample regarding removed function
authorDaniel T. Lee <danieltimlee@gmail.com>
Wed, 27 Feb 2019 07:52:26 +0000 (02:52 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 27 Feb 2019 16:27:22 +0000 (17:27 +0100)
commit8ffc4516f9dc372b23641bef315608902d190f4c
tree3004ab61b1ad0e1611083510111f3faa8d3c61d0
parent0a5d43c3d42031e0aa6b8d826c783746f9393618
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 "b6b8869".
(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>
samples/bpf/task_fd_query_kern.c
samples/bpf/task_fd_query_user.c
samples/bpf/tracex3_kern.c