diff options
| author | Ian Rogers <[email protected]> | 2022-10-24 18:19:13 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-11-03 14:44:33 +0000 |
| commit | 92ea0720ba9cf7f09589a711245c2da145125958 (patch) | |
| tree | e0b9960af5d0919b94fb322b506d443a55e2be91 /tools/perf/util/llvm-utils.c | |
| parent | perf top: Use sig_atomic_t to avoid undefined behaviour in a signal handler (diff) | |
| download | kernel-92ea0720ba9cf7f09589a711245c2da145125958.tar.gz kernel-92ea0720ba9cf7f09589a711245c2da145125958.zip | |
perf trace: Use sig_atomic_t to avoid undefined behaviour in a signal handler
Use sig_atomic_t for variables written/accessed in signal
handlers. This is undefined behavior as per:
https://wiki.sei.cmu.edu/confluence/display/c/SIG31-C.+Do+not+access+shared+objects+in+signal+handlers
Signed-off-by: Ian Rogers <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Alexey Bayduraev <[email protected]>
Cc: German Gomez <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Leo Yan <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/llvm-utils.c')
0 files changed, 0 insertions, 0 deletions
