diff options
author | 2023-08-20 19:13:54 +0500 | |
---|---|---|
committer | 2023-11-30 16:30:05 -0700 | |
commit | d837813ff42ef86dac8596dd491bf6869ac7a0e8 (patch) | |
tree | 922aa49c11fd338cfe8dc5c4fff3d3975b8c54a0 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | kselftest/vDSO: Use ksft_print_msg() rather than printf in vdso_test_abi (diff) | |
download | wireguard-linux-d837813ff42ef86dac8596dd491bf6869ac7a0e8.tar.xz wireguard-linux-d837813ff42ef86dac8596dd491bf6869ac7a0e8.zip |
selftests: prctl: Add prctl test for PR_GET_NAME
This patch covers the testing of PR_GET_NAME by
reading it's value from proc/self/task/pid/comm
and matching it with the value returned by PR_GET_NAME.
If the values are matched then it's successful, otherwise
it fails.
changes since v1:
- Handled fscanf,fopen error checking.
- Defined MAX_PATH_LEN.
Signed-off-by: Osama Muhammad <osmtendev@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions