summaryrefslogtreecommitdiff
path: root/tools/perf/pmu-events/arch/s390/cf_z16/pai.json
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2022-10-24 04:10:24 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-10-25 23:40:48 +0300
commit304f0a2f6a6d9336fb5e474d7f62b8677d5ee167 (patch)
tree4fe68aa11c0fcd3a403c75d0b25782d905535db3 /tools/perf/pmu-events/arch/s390/cf_z16/pai.json
parentf1bdebbb67bd21d7c5dfc42f313f2f54002440b8 (diff)
downloadlinux-304f0a2f6a6d9336fb5e474d7f62b8677d5ee167.tar.xz
perf record: Fix event fd races
The write call may set errno which is problematic if occurring in a function also setting errno. Save and restore errno around the write call. done_fd may be used after close, clear it as part of the close and check its validity in the signal handler. Suggested-by: <gthelen@google.com> Reviewed-by: Leo Yan <leo.yan@linaro.org> Signed-off-by: Ian Rogers <irogers@google.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Anand K Mistry <amistry@google.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/20221024011024.462518-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/pmu-events/arch/s390/cf_z16/pai.json')
0 files changed, 0 insertions, 0 deletions