All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] bpftool: Add sock_release help info for cgroup attach command
@ 2021-05-24  8:03 Liu Jian
  2021-05-24  8:23 ` Quentin Monnet
  0 siblings, 1 reply; 3+ messages in thread
From: Liu Jian @ 2021-05-24  8:03 UTC (permalink / raw)
  To: ast, daniel, andrii, kafai, songliubraving, yhs, john.fastabend,
	kpsingh, quentin, liujian56, sdf, netdev, bpf

The help information is not added when the function is added.
Add the missing help information.

Fixes: db94cc0b4805 ("bpftool: Add support for BPF_CGROUP_INET_SOCK_RELEASE")
Signed-off-by: Liu Jian <liujian56@huawei.com>
---
v1 -> v2:
    Add changelog text.

 tools/bpf/bpftool/cgroup.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/bpf/bpftool/cgroup.c b/tools/bpf/bpftool/cgroup.c
index d901cc1b904a..6e53b1d393f4 100644
--- a/tools/bpf/bpftool/cgroup.c
+++ b/tools/bpf/bpftool/cgroup.c
@@ -28,7 +28,8 @@
 	"                        connect6 | getpeername4 | getpeername6 |\n"   \
 	"                        getsockname4 | getsockname6 | sendmsg4 |\n"   \
 	"                        sendmsg6 | recvmsg4 | recvmsg6 |\n"           \
-	"                        sysctl | getsockopt | setsockopt }"
+	"                        sysctl | getsockopt | setsockopt |\n"	       \
+	"                        sock_release }"
 
 static unsigned int query_flags;
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] bpftool: Add sock_release help info for cgroup attach command
  2021-05-24  8:03 [PATCH v2] bpftool: Add sock_release help info for cgroup attach command Liu Jian
@ 2021-05-24  8:23 ` Quentin Monnet
  2021-05-24  9:11   ` liujian (CE)
  0 siblings, 1 reply; 3+ messages in thread
From: Quentin Monnet @ 2021-05-24  8:23 UTC (permalink / raw)
  To: Liu Jian, ast, daniel, andrii, kafai, songliubraving, yhs,
	john.fastabend, kpsingh, sdf, netdev, bpf

2021-05-24 16:03 UTC+0800 ~ Liu Jian <liujian56@huawei.com>
> The help information is not added when the function is added.
> Add the missing help information.
> 
> Fixes: db94cc0b4805 ("bpftool: Add support for BPF_CGROUP_INET_SOCK_RELEASE")
> Signed-off-by: Liu Jian <liujian56@huawei.com>
> ---
> v1 -> v2:
>     Add changelog text.
> 
>  tools/bpf/bpftool/cgroup.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/bpf/bpftool/cgroup.c b/tools/bpf/bpftool/cgroup.c
> index d901cc1b904a..6e53b1d393f4 100644
> --- a/tools/bpf/bpftool/cgroup.c
> +++ b/tools/bpf/bpftool/cgroup.c
> @@ -28,7 +28,8 @@
>  	"                        connect6 | getpeername4 | getpeername6 |\n"   \
>  	"                        getsockname4 | getsockname6 | sendmsg4 |\n"   \
>  	"                        sendmsg6 | recvmsg4 | recvmsg6 |\n"           \
> -	"                        sysctl | getsockopt | setsockopt }"
> +	"                        sysctl | getsockopt | setsockopt |\n"	       \
> +	"                        sock_release }"
>  
>  static unsigned int query_flags;
>  
> 

Thanks a lot!

Note that there are a few other places in bpftool where the attach point
should be added, would you mind updating them too? That would be: the
documentation page for bpftool-cgroup, the one for bpftool-prog, the
help message in prog.c, and the bash completion. It should all be
straightforward. You can try something like "grep recvmsg4
tools/bpf/bpftool" to find the relevant locations.

Best regards,
Quentin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH v2] bpftool: Add sock_release help info for cgroup attach command
  2021-05-24  8:23 ` Quentin Monnet
@ 2021-05-24  9:11   ` liujian (CE)
  0 siblings, 0 replies; 3+ messages in thread
From: liujian (CE) @ 2021-05-24  9:11 UTC (permalink / raw)
  To: Quentin Monnet, ast, daniel, andrii, kafai, songliubraving, yhs,
	john.fastabend, kpsingh, sdf, netdev, bpf



> -----Original Message-----
> From: Quentin Monnet [mailto:quentin@isovalent.com]
> Sent: Monday, May 24, 2021 4:23 PM
> To: liujian (CE) <liujian56@huawei.com>; ast@kernel.org;
> daniel@iogearbox.net; andrii@kernel.org; kafai@fb.com;
> songliubraving@fb.com; yhs@fb.com; john.fastabend@gmail.com;
> kpsingh@kernel.org; sdf@google.com; netdev@vger.kernel.org;
> bpf@vger.kernel.org
> Subject: Re: [PATCH v2] bpftool: Add sock_release help info for cgroup
> attach command
> 
> 2021-05-24 16:03 UTC+0800 ~ Liu Jian <liujian56@huawei.com>
> > The help information is not added when the function is added.
> > Add the missing help information.
> >
> > Fixes: db94cc0b4805 ("bpftool: Add support for
> > BPF_CGROUP_INET_SOCK_RELEASE")
> > Signed-off-by: Liu Jian <liujian56@huawei.com>
> > ---
> > v1 -> v2:
> >     Add changelog text.
> >
> >  tools/bpf/bpftool/cgroup.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/tools/bpf/bpftool/cgroup.c b/tools/bpf/bpftool/cgroup.c
> > index d901cc1b904a..6e53b1d393f4 100644
> > --- a/tools/bpf/bpftool/cgroup.c
> > +++ b/tools/bpf/bpftool/cgroup.c
> > @@ -28,7 +28,8 @@
> >  	"                        connect6 | getpeername4 | getpeername6 |\n"   \
> >  	"                        getsockname4 | getsockname6 | sendmsg4 |\n"   \
> >  	"                        sendmsg6 | recvmsg4 | recvmsg6 |\n"           \
> > -	"                        sysctl | getsockopt | setsockopt }"
> > +	"                        sysctl | getsockopt | setsockopt |\n"	       \
> > +	"                        sock_release }"
> >
> >  static unsigned int query_flags;
> >
> >
> 
> Thanks a lot!
> 
> Note that there are a few other places in bpftool where the attach point
> should be added, would you mind updating them too? That would be: the
> documentation page for bpftool-cgroup, the one for bpftool-prog, the help
> message in prog.c, and the bash completion. It should all be straightforward.
> You can try something like "grep recvmsg4 tools/bpf/bpftool" to find the
> relevant locations.

OK, I'll change it together. Thanks for your review.

> Best regards,
> Quentin

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-24  9:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24  8:03 [PATCH v2] bpftool: Add sock_release help info for cgroup attach command Liu Jian
2021-05-24  8:23 ` Quentin Monnet
2021-05-24  9:11   ` liujian (CE)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.