samples/bpf: Replace blk_account_io_done() with __blk_account_io_done()
authorRong Tao <rongtao@cestc.cn>
Sun, 11 Sep 2022 13:03:30 +0000 (21:03 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 21 Sep 2022 00:25:59 +0000 (17:25 -0700)
Since commit be6bfe36db17 ("block: inline hot paths of blk_account_io_*()")
blk_account_io_*() become inline functions.

Signed-off-by: Rong Tao <rtoax@foxmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/tencent_1CC476835C219FACD84B6715F0D785517E07@qq.com
samples/bpf/task_fd_query_kern.c
samples/bpf/task_fd_query_user.c
samples/bpf/tracex3_kern.c

index c821294e17742b36f2dc5262506cab193b813ba3..186ac0a79c0af98e11cff73ba8e1c0db07079e7f 100644 (file)
@@ -10,7 +10,7 @@ int bpf_prog1(struct pt_regs *ctx)
        return 0;
 }
 
-SEC("kretprobe/blk_account_io_done")
+SEC("kretprobe/__blk_account_io_done")
 int bpf_prog2(struct pt_regs *ctx)
 {
        return 0;
index 424718c0872c57436221ea04cadd5679c19028f6..a33d74bd3a4b7b009db7d646c21b5d5ddde98bdd 100644 (file)
@@ -348,7 +348,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_done",
+       CHECK_AND_RET(test_debug_fs_kprobe(1, "__blk_account_io_done",
                                           BPF_FD_TYPE_KRETPROBE));
 
        /* test nondebug fs kprobe */
index 710a4410b2fb81b82eefff2ad9dc1d84829326bd..bde6591cb20c548b061ed24cfdf4d34dc2ca5b62 100644 (file)
@@ -49,7 +49,7 @@ struct {
        __uint(max_entries, SLOTS);
 } lat_map SEC(".maps");
 
-SEC("kprobe/blk_account_io_done")
+SEC("kprobe/__blk_account_io_done")
 int bpf_prog2(struct pt_regs *ctx)
 {
        long rq = PT_REGS_PARM1(ctx);