mbox series

[bpf-next,v9,0/3] bpftool: Add autoattach for bpf prog load|loadall

Message ID 1665736275-28143-1-git-send-email-wangyufen@huawei.com (mailing list archive)
Headers show
Series bpftool: Add autoattach for bpf prog load|loadall | expand

Message

wangyufen Oct. 14, 2022, 8:31 a.m. UTC
This patchset add "autoattach" optional for "bpftool prog load(_all)" to support
one-step load-attach-pin_link.

v8 -> v9: fix link leak, and change pathname_concat(specify not just buffer
	  pointer, but also it's size)
v7 -> v8: for the programs not supporting autoattach, fall back to reguler pinning
	  instead of skipping
v6 -> v7: add info msg print and update doc for the skip program
v5 -> v6: skip the programs not supporting auto-attach,
	  and change optional name from "auto_attach" to "autoattach"
v4 -> v5: some formatting nits of doc
v3 -> v4: rename functions, update doc, bash and do_help()
v2 -> v3: switch to extend prog load command instead of extend perf
v2: https://patchwork.kernel.org/project/netdevbpf/patch/20220824033837.458197-1-weiyongjun1@huawei.com/
v1: https://patchwork.kernel.org/project/netdevbpf/patch/20220816151725.153343-1-weiyongjun1@huawei.com/

Wang Yufen (3):
  bpftool: Add autoattach for bpf prog load|loadall
  bpftool: Update doc (add autoattach to prog load)
  bpftool: Update the bash completion(add autoattach to prog load)

 tools/bpf/bpftool/Documentation/bpftool-prog.rst | 15 ++++-
 tools/bpf/bpftool/bash-completion/bpftool        |  1 +
 tools/bpf/bpftool/prog.c                         | 76 +++++++++++++++++++++++-
 3 files changed, 88 insertions(+), 4 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Oct. 21, 2022, 4:10 p.m. UTC | #1
Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Fri, 14 Oct 2022 16:31:12 +0800 you wrote:
> This patchset add "autoattach" optional for "bpftool prog load(_all)" to support
> one-step load-attach-pin_link.
> 
> v8 -> v9: fix link leak, and change pathname_concat(specify not just buffer
> 	  pointer, but also it's size)
> v7 -> v8: for the programs not supporting autoattach, fall back to reguler pinning
> 	  instead of skipping
> v6 -> v7: add info msg print and update doc for the skip program
> v5 -> v6: skip the programs not supporting auto-attach,
> 	  and change optional name from "auto_attach" to "autoattach"
> v4 -> v5: some formatting nits of doc
> v3 -> v4: rename functions, update doc, bash and do_help()
> v2 -> v3: switch to extend prog load command instead of extend perf
> v2: https://patchwork.kernel.org/project/netdevbpf/patch/20220824033837.458197-1-weiyongjun1@huawei.com/
> v1: https://patchwork.kernel.org/project/netdevbpf/patch/20220816151725.153343-1-weiyongjun1@huawei.com/
> 
> [...]

Here is the summary with links:
  - [bpf-next,v9,1/3] bpftool: Add autoattach for bpf prog load|loadall
    https://git.kernel.org/bpf/bpf-next/c/19526e701ea0
  - [bpf-next,v9,2/3] bpftool: Update doc (add autoattach to prog load)
    https://git.kernel.org/bpf/bpf-next/c/ff0e9a579ec9
  - [bpf-next,v9,3/3] bpftool: Update the bash completion(add autoattach to prog load)
    https://git.kernel.org/bpf/bpf-next/c/b81a67740075

You are awesome, thank you!