diff options
author | Ian Rogers <[email protected]> | 2022-10-23 18:10:24 -0700 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-10-25 17:40:48 -0300 |
commit | 304f0a2f6a6d9336fb5e474d7f62b8677d5ee167 (patch) | |
tree | 4fe68aa11c0fcd3a403c75d0b25782d905535db3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | f1bdebbb67bd21d7c5dfc42f313f2f54002440b8 (diff) |
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: <[email protected]>
Reviewed-by: Leo Yan <[email protected]>
Signed-off-by: Ian Rogers <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Anand K Mistry <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[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/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions