[PATCH RESEND net-next] tracing: remove holes in events

2021-03-12 Thread Tony Lu
es) -> 0 5. rpc_xdr_alignment 2 holes (8 bytes) -> 0 Link: https://www.spinics.net/lists/netdev/msg726308.html Link: https://www.spinics.net/lists/netdev/msg726451.html Cc: David Miller Cc: Eric Dumazet Cc: Steven Rostedt Cc: Ingo Molnar Suggested-by: Steven Rostedt Signed-off-by: Ton

Re: [PATCH bpf-next v3 0/4] Expose network namespace cookies to user space

2021-03-12 Thread Tony Lu
also need them. net_cookie could be an unified net namespace ID to replace netns inode, but there are lots of work to do. [0]: https://lkml.org/lkml/2021/3/10/254 Cheers, Tony Lu > > I'm proposing to add a new getsockopt and a netns ioctl to retrieve > netns cookies, which allows iden

Re: [PATCH] tracing: remove holes in events

2021-03-11 Thread Tony Lu
On Thu, Mar 11, 2021 at 08:56:19AM -0500, Steven Rostedt wrote: > On Thu, 11 Mar 2021 17:44:15 +0800 > Tony Lu wrote: > > > --- > > include/trace/events/net.h| 42 +-- > > include/trace/events/qdisc.h | 4 ++-- > > i

[PATCH] tracing: remove holes in events

2021-03-11 Thread Tony Lu
les (8 bytes) -> 0 5. rpc_xdr_alignment 2 holes (8 bytes) -> 0 Link: https://www.spinics.net/lists/netdev/msg726308.html Link: https://www.spinics.net/lists/netdev/msg726451.html Suggested-by: Steven Rostedt Signed-off-by: Tony Lu --- include/trace/ev

Re: [PATCH] net: add net namespace inode for all net_dev events

2021-03-10 Thread Tony Lu
On Wed, Mar 10, 2021 at 11:31:12AM -0500, Steven Rostedt wrote: > On Wed, 10 Mar 2021 17:03:40 +0800 > Tony Lu wrote: > > > I use pahole to read vmlinux.o directly with defconfig and > > CONFIG_DEBUG_INFO enabled, the result shows 22 structs prefixed with > > trace_ev

Re: [PATCH] net: add net namespace inode for all net_dev events

2021-03-10 Thread Tony Lu
On Wed, Mar 10, 2021 at 09:22:34AM +, Lorenz Bauer wrote: > On Tue, 9 Mar 2021 at 20:12, Eric Dumazet wrote: > > > > On 3/9/21 5:43 AM, Tony Lu wrote: > > > There are lots of net namespaces on the host runs containers like k8s. > > > It is very common to s

Re: [PATCH] net: add net namespace inode for all net_dev events

2021-03-10 Thread Tony Lu
On Tue, Mar 09, 2021 at 09:12:45PM +0100, Eric Dumazet wrote: > > > On 3/9/21 5:43 AM, Tony Lu wrote: > > There are lots of net namespaces on the host runs containers like k8s. > > It is very common to see the same interface names among different net > > namespac

Re: [PATCH] net: add net namespace inode for all net_dev events

2021-03-10 Thread Tony Lu
On Tue, Mar 09, 2021 at 12:40:11PM -0500, Steven Rostedt wrote: > On Tue, 9 Mar 2021 12:43:50 +0800 > Tony Lu wrote: > > > There are lots of net namespaces on the host runs containers like k8s. > > It is very common to see the same interface names among different net &g

[PATCH] net: add net namespace inode for all net_dev events

2021-03-08 Thread Tony Lu
distinguish between different net devices. Output: -0 [006] ..s. 133.306989: net_dev_xmit: net_inum=4026531992 dev=eth0 skbaddr=11a87c68 len=54 rc=0 Signed-off-by: Tony Lu --- include/trace/events/net.h | 35 +-- 1 file changed, 25 insertions

Re: [PATCH net] tcp: refine memory limit test in tcp_fragment()

2019-07-02 Thread Tony Lu
ide effect? If any, we could test it in some suspicious scenarios before testing in prod env. Thanks. Cheers, Tony Lu On Fri, Jun 21, 2019 at 06:09:55AM -0700, Eric Dumazet wrote: > tcp_fragment() might be called for skbs in the write queue. > > Memory limits might