Re: [PATCH] net: tracepoint: fix print wrong sysctl_mem value

2020-09-07 Thread dust.li
On Mon, Sep 07, 2020 at 10:50:30AM -0700, Jakub Kicinski wrote: >On Mon, 7 Sep 2020 22:47:57 +0800 Dust Li wrote: >> sysctl_mem is an point, and tracepoint entry do not support >> been visited like an array. Use 3 long type to get sysctl_mem >> instead. >> >> tracpoint output with and without thi

Re: [PATCH] net: tracepoint: fix print wrong sysctl_mem value

2020-09-07 Thread Jakub Kicinski
On Mon, 7 Sep 2020 22:47:57 +0800 Dust Li wrote: > sysctl_mem is an point, and tracepoint entry do not support > been visited like an array. Use 3 long type to get sysctl_mem > instead. > > tracpoint output with and without this fix: > - without fix: >28821.074 sock:sock_exceed_buf_limit:prot

[PATCH] net: tracepoint: fix print wrong sysctl_mem value

2020-09-07 Thread Dust Li
sysctl_mem is an point, and tracepoint entry do not support been visited like an array. Use 3 long type to get sysctl_mem instead. tracpoint output with and without this fix: - without fix: 28821.074 sock:sock_exceed_buf_limit:proto:UDP sysctl_mem=-1741233440,19,322156906942464 allocated=19