diff options
author | Jiri Olsa <jolsa@kernel.org> | 2020-08-25 21:21:23 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-08-25 15:41:15 -0700 |
commit | e4d1af4b16f80a90d9cf3a09bee2012dcde45638 (patch) | |
tree | c81a467dd57c7d30acbe937fa2d07353987dc3ce /tools/lib/string.c | |
parent | 762f85156835258c85a32bf81b283300b6c6bd17 (diff) |
selftests/bpf: Add test for d_path helper
Adding test for d_path helper which is pretty much
copied from Wenbo Zhang's test for bpf_get_fd_path,
which never made it in.
The test is doing fstat/close on several fd types,
and verifies we got the d_path helper working on
kernel probes for vfs_getattr/filp_close functions.
Original-patch-by: Wenbo Zhang <ethercflow@gmail.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200825192124.710397-14-jolsa@kernel.org
Diffstat (limited to 'tools/lib/string.c')
0 files changed, 0 insertions, 0 deletions