aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorIlya Leoshkevich <[email protected]>2023-09-19 12:09:04 +0200
committerAlexei Starovoitov <[email protected]>2023-09-21 14:21:59 -0700
commit6cb66eca36f3c6b37447ca79c6d7fc6db339c23e (patch)
tree55bbcddaa818a1377371192a07b7e58131500e9c /tools/perf/scripts/python/check-perf-trace.py
parent577c06af8188d1f6919ef7b62fc1b78fb1b86eb7 (diff)
selftests/bpf: Unmount the cgroup2 work directory
test_progs -t bind_perm,bpf_obj_pinning/mounted-str-rel fails when the selftests directory is mounted under /mnt, which is a reasonable thing to do when sharing the selftests residing on the host with a virtual machine, e.g., using 9p. The reason is that cgroup2 is mounted at /mnt and not unmounted, causing subsequent tests that need to access the selftests directory to fail. Fix by unmounting it. The kernel maintains a mount stack, so this reveals what was mounted there before. Introduce cgroup_workdir_mounted in order to maintain idempotency. Make it thread-local in order to support test_progs -j. Signed-off-by: Ilya Leoshkevich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions