diff options
author | Hao Luo <[email protected]> | 2022-01-06 12:55:25 -0800 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2022-01-06 15:20:49 -0800 |
commit | 44bab87d8ca6f0544a9f8fc97bdf33aa5b3c899e (patch) | |
tree | e88c204993400047827074a50eb71bf3e50319bc /tools/perf/scripts/python/netdev-times.py | |
parent | e59618f0f46fa6cf86d5b82380e0f453756b282b (diff) |
bpf/selftests: Test bpf_d_path on rdonly_mem.
The second parameter of bpf_d_path() can only accept writable
memories. Rdonly_mem obtained from bpf_per_cpu_ptr() can not
be passed into bpf_d_path for modification. This patch adds
a selftest to verify this behavior.
Signed-off-by: Hao Luo <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions