summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2025-03-28 01:23:13 +0300
committerJakub Kicinski <kuba@kernel.org>2025-04-01 02:44:25 +0300
commite514d77334a63f1dcb9a3b47d5aee8f51d66cb1d (patch)
tree4cba27bfdfddac445d386ca459df3c039788252b /tools/perf/scripts/python/syscall-counts.py
parent7220e8f4d4eec0b2f682eef45e2d36c092738413 (diff)
downloadlinux-e514d77334a63f1dcb9a3b47d5aee8f51d66cb1d.tar.xz
selftests: drv-net: replace the rpath helper with Path objects
The single letter + "path" helpers do not have many fans (see Link). Use a Path object with a better name. test_dir is the replacement for rpath(), net_lib_dir is a new path of the $ksft/net/lib directory. The Path() class overloads the "/" operator and can be cast to string automatically, so to get a path to a file tests can do: path = env.test_dir / "binary" Link: https://lore.kernel.org/CA+FuTSemTNVZ5MxXkq8T9P=DYm=nSXcJnL7CJBPZNAT_9UFisQ@mail.gmail.com Reviewed-by: Willem de Bruijn <willemb@google.com> Link: https://patch.msgid.link/20250327222315.1098596-2-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions