]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: Fix broken bpf programs due to removed symbol
authorDaniel T. Lee <danieltimlee@gmail.com>
Tue, 18 Aug 2020 05:16:41 +0000 (14:16 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Aug 2020 00:10:03 +0000 (17:10 -0700)
commit18e801433711f5c7ac8bb64f0e275b5cd5003fb6
treeb15eb8e2507ee71de81a04ac9bb4ac7b62e4d3ad
parentdab15daef73b42daf8cdfa560abd7006fac63e8b
samples: bpf: Fix broken bpf programs due to removed symbol

>From commit c2b9cd77f1f9 ("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 <danieltimlee@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200818051641.21724-1-danieltimlee@gmail.com
samples/bpf/task_fd_query_kern.c
samples/bpf/task_fd_query_user.c
samples/bpf/tracex3_kern.c