diff options
author | 2024-06-10 18:14:46 +0300 | |
---|---|---|
committer | 2024-07-11 11:23:53 -0600 | |
commit | 8245a70edad18e5eba479c5ea91beb590590b237 (patch) | |
tree | c00242cd73d598fea1520f0a7f6294ad3d87d971 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | selftests/resctrl: Consolidate get_domain_id() into resctrl_val() (diff) | |
download | linux-rng-8245a70edad18e5eba479c5ea91beb590590b237.tar.xz linux-rng-8245a70edad18e5eba479c5ea91beb590590b237.zip |
selftests/resctrl: Use correct type for pids
A few functions receive PIDs through int arguments. PIDs variables
should be of type pid_t, not int.
Convert pid arguments from int to pid_t.
Before printing PID, match the type to %d by casting to int which is
enough for Linux (standard would allow using a longer integer type but
generalizing for that would complicate the code unnecessarily, the
selftest code does not need to be portable).
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions