Re: [PATCH v1 bpf-next] bpf: new helper bpf_get_current_pcomm

2020-09-08 Thread Carlos Antonio Neira Bustos
On Wed, Aug 26, 2020 at 10:25:55PM -0700, Andrii Nakryiko wrote: > On Wed, Aug 26, 2020 at 9:06 AM Carlos Neira wrote: > > > > In multi-threaded applications bpf_get_current_comm is returning per-thread > > names, this helper will return comm from real_parent. > > This makes a difference for some

Re: [PATCH v1 bpf-next] bpf: new helper bpf_get_current_pcomm

2020-08-26 Thread Andrii Nakryiko
On Wed, Aug 26, 2020 at 9:06 AM Carlos Neira wrote: > > In multi-threaded applications bpf_get_current_comm is returning per-thread > names, this helper will return comm from real_parent. > This makes a difference for some Java applications, where get_current_comm is > returning per-thread names,

Re: [PATCH v1 bpf-next] bpf: new helper bpf_get_current_pcomm

2020-08-26 Thread Yonghong Song
On 8/26/20 9:04 AM, Carlos Neira wrote: In multi-threaded applications bpf_get_current_comm is returning per-thread names, this helper will return comm from real_parent. This makes a difference for some Java applications, where get_current_comm is returning per-thread names, but get_current_pc

[PATCH v1 bpf-next] bpf: new helper bpf_get_current_pcomm

2020-08-26 Thread Carlos Neira
In multi-threaded applications bpf_get_current_comm is returning per-thread names, this helper will return comm from real_parent. This makes a difference for some Java applications, where get_current_comm is returning per-thread names, but get_current_pcomm will return "java". Signed-off-by: Car