diff options
author | Ian Rogers <irogers@google.com> | 2022-10-24 20:19:07 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2022-11-03 13:34:40 +0100 |
commit | 8ed28c2b56b78442989ef1afee2b968e9d51a65c (patch) | |
tree | 228adf079f2af5a5225dac796d990a71c9d91c72 /tools/perf/builtin-daemon.c | |
parent | perf build: Update to C standard to gnu11 (diff) | |
download | linux-8ed28c2b56b78442989ef1afee2b968e9d51a65c.tar.xz linux-8ed28c2b56b78442989ef1afee2b968e9d51a65c.zip |
perf record: Use sig_atomic_t for signal handlers
This removes undefined behavior as described in:
https://wiki.sei.cmu.edu/confluence/display/c/SIG31-C.+Do+not+access+shared+objects+in+signal+handlers
Suggested-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
Cc: German Gomez <german.gomez@arm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20221024181913.630986-3-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-daemon.c')
0 files changed, 0 insertions, 0 deletions