Re: [PATCH v2 bpf-next 2/4] bpf: allow bpf_d_path in sleepable bpf_iter program

2021-01-25 Thread Jiri Olsa
On Tue, Dec 15, 2020 at 03:37:00PM -0800, Song Liu wrote: > task_file and task_vma iter programs have access to file->f_path. Enable > bpf_d_path to print paths of these file. > > bpf_iter programs are generally called in sleepable context. However, it > is still necessary to diffientiate sleepabl

Re: [PATCH v2 bpf-next 2/4] bpf: allow bpf_d_path in sleepable bpf_iter program

2020-12-16 Thread KP Singh
On Wed, Dec 16, 2020 at 7:15 PM KP Singh wrote: > > On Wed, Dec 16, 2020 at 1:06 AM Song Liu wrote: > > > > task_file and task_vma iter programs have access to file->f_path. Enable > > bpf_d_path to print paths of these file. > > > > bpf_iter programs are generally called in sleepable context. Ho

Re: [PATCH v2 bpf-next 2/4] bpf: allow bpf_d_path in sleepable bpf_iter program

2020-12-16 Thread KP Singh
On Wed, Dec 16, 2020 at 1:06 AM Song Liu wrote: > > task_file and task_vma iter programs have access to file->f_path. Enable > bpf_d_path to print paths of these file. > > bpf_iter programs are generally called in sleepable context. However, it > is still necessary to diffientiate sleepable and no

Re: [PATCH v2 bpf-next 2/4] bpf: allow bpf_d_path in sleepable bpf_iter program

2020-12-16 Thread Yonghong Song
On 12/15/20 3:37 PM, Song Liu wrote: task_file and task_vma iter programs have access to file->f_path. Enable bpf_d_path to print paths of these file. bpf_iter programs are generally called in sleepable context. However, it is still necessary to diffientiate sleepable and non-sleepable bpf_it

[PATCH v2 bpf-next 2/4] bpf: allow bpf_d_path in sleepable bpf_iter program

2020-12-15 Thread Song Liu
task_file and task_vma iter programs have access to file->f_path. Enable bpf_d_path to print paths of these file. bpf_iter programs are generally called in sleepable context. However, it is still necessary to diffientiate sleepable and non-sleepable bpf_iter programs: sleepable programs have acces