diff options
author | Maciej Wieczor-Retman <[email protected]> | 2024-02-27 08:21:42 +0100 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2024-05-06 13:57:19 -0600 |
commit | e6487230e952cfd4070c61141f011608841f36eb (patch) | |
tree | 48810da77f1abda29a2a34e560476266797fb3e3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 8780bc88d4c86cdb7e9591bde9dd1110156a203b (diff) |
selftests/resctrl: Simplify cleanup in ctrl-c handler
Ctrl-c handler isn't aware of what test is currently running. Because of
that it executes all cleanups even if they aren't necessary. Since the
ctrl-c handler uses the sa_sigaction system no parameters can be passed
to it as function arguments.
Add a global variable to make ctrl-c handler aware of the currently run
test and only execute the correct cleanup callback.
Signed-off-by: Maciej Wieczor-Retman <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions