samples/bpf: Replace blk_account_io_done() with __blk_account_io_done()
PATCH RESEND 1/1 samples/bpf: Replace blk_account_io_done() with __blk_account_io_done()
From: Rong Tao <[email protected]>
Since commit be6bfe36db17 ("block: inline hot paths of blk_account_io_*()") blk_account_io_*() become inline functions.
--- samples/bpf/task_fd_query_kern.c | 2 +- samples/bpf/task_fd_query_user.c | 2 +- samples/bpf/tracex3_kern.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
samples/bpf/task_fd_query_kern.c +1 -1
@@ -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 ;
samples/bpf/task_fd_query_user.c +1 -1
@@ -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 */
samples/bpf/tracex3_kern.c +1 -1
@@ -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);
Signature · 1 line
2.31.1
Quoted 4 lines · Rong Tao
From: Rong Tao <[email protected]>
Since commit
be6bfe36db17("block: inline hot paths of blk_account_io_*()") blk_account_io_*() become inline functions.
Thanks for the fix.
Not sure why RESEND. And it should target bpf-next; this doesn't seem like an important fix to warrant bpf. For future submissions, if you're targeting bpf, try to also add Fixes: tag.
Not worth another resend though. Assuming it can be pulled in the proper subtree by the maintainers.
Quoted 48 lines
Signed-off-by Rong Tao <[email protected]>--- samples/bpf/task_fd_query_kern.c | 2 +- samples/bpf/task_fd_query_user.c | 2 +- samples/bpf/tracex3_kern.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)samples/bpf/task_fd_query_kern.c +1
-1@@ -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 ;samples/bpf/task_fd_query_user.c +1
-1@@ -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 */ samples/bpf/tracex3_kern.c +1
-2@@ -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); --2.31.1
PATCH 1/1 samples/bpf: Replace blk_account_io_done() with __blk_account_io_done()
From: Rong Tao <[email protected]>
Since commit be6bfe36db17 ("block: inline hot paths of blk_account_io_*()") blk_account_io_*() become inline functions.
--- samples/bpf/task_fd_query_kern.c | 2 +- samples/bpf/task_fd_query_user.c | 2 +- samples/bpf/tracex3_kern.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
samples/bpf/task_fd_query_kern.c +1 -1
@@ -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 ;
samples/bpf/task_fd_query_user.c +1 -1
@@ -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 */
samples/bpf/tracex3_kern.c +1 -1
@@ -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);
Signature · 1 line
2.31.1
Quoted 6 lines · Rong Tao
From: Rong Tao <[email protected]>
Since commit
be6bfe36db17("block: inline hot paths of blk_account_io_*()") blk_account_io_*() become inline functions.Signed-off-by Rong Tao <[email protected]>
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Quoted 8 lines · On Sun, 11 Sep 2022 21:03:30 +0800 you wrote:
From: Rong Tao <[email protected]>
Since commit
be6bfe36db17("block: inline hot paths of blk_account_io_*()") blk_account_io_*() become inline functions.Signed-off-by Rong Tao <[email protected]>[...]
Here is the summary with links:
- [bpf-next] samples/bpf: Replace blk_account_io_done() with __blk_account_io_done()
https://git.kernel.org/bpf/bpf-next/c/bc069da65eec
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html