diff options
author | Sargun Dhillon <[email protected]> | 2022-05-03 01:09:57 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2022-05-03 14:20:49 -0700 |
commit | 922a1b520c5ffb09079dddeb0c686f9c008a9923 (patch) | |
tree | a68345f286130a12e8679a301a83c5a5d0b987a7 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | c2aa2dfef243efe213a480a1ee8566507a5152f4 (diff) |
selftests/seccomp: Refactor get_proc_stat to split out file reading code
This splits up the get_proc_stat function to make it so we can use it as a
generic helper to read the nth field from multiple different files, versus
replicating the logic in multiple places.
Signed-off-by: Sargun Dhillon <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions