bpf: Allow bpf_d_path in bpf_iter program
authorSong Liu <songliubraving@fb.com>
Fri, 12 Feb 2021 18:31:06 +0000 (10:31 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 12 Feb 2021 20:56:53 +0000 (12:56 -0800)
commit3d06f34aa89698f74e743b9ec023eafc19827cba
treebbb93cffdc0caac4670e4c76305cd45cb5ffd2cd
parent3a7b35b899dedd29468301a3cbc4fa48a49e2131
bpf: Allow bpf_d_path in bpf_iter program

task_file and task_vma iter programs have access to file->f_path. Enable
bpf_d_path to print paths of these file.

Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210212183107.50963-3-songliubraving@fb.com
kernel/trace/bpf_trace.c