Re: [RFC PATCH v11 bpf-next 10/14] bpf: Add d_path helper

2020-08-17 Thread KP Singh
On 09.08.20 17:02, Jiri Olsa wrote: > Adding d_path helper function that returns full path for > given 'struct path' object, which needs to be the kernel > BTF 'path' object. The path is returned in buffer provided > 'buf' of size 'sz' and is zero terminated. > > bpf_d_path(&file->f_path, buf

[RFC PATCH v11 bpf-next 10/14] bpf: Add d_path helper

2020-08-09 Thread Jiri Olsa
Adding d_path helper function that returns full path for given 'struct path' object, which needs to be the kernel BTF 'path' object. The path is returned in buffer provided 'buf' of size 'sz' and is zero terminated. bpf_d_path(&file->f_path, buf, size); The helper calls directly d_path function