perf srcline: Avoid addr2line SIGPIPEs
Ignore SIGPIPEs when addr2line is configured. Signed-off-by: Ian Rogers <irogers@google.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Nathan Chancellor <nathan@kernel.org> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Tom Rix <trix@redhat.com> Cc: llvm@lists.linux.dev Link: https://lore.kernel.org/r/20230403184033.1836023-2-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Родитель
2c4b928074
Коммит
75a616c6d3
|
@ -473,6 +473,8 @@ static enum a2l_style addr2line_configure(struct child_process *a2l)
|
||||||
ch = io__get_char(&io);
|
ch = io__get_char(&io);
|
||||||
} while (ch > 0 && ch != '\n');
|
} while (ch > 0 && ch != '\n');
|
||||||
}
|
}
|
||||||
|
/* Ignore SIGPIPE in the event addr2line exits. */
|
||||||
|
signal(SIGPIPE, SIG_IGN);
|
||||||
}
|
}
|
||||||
return style;
|
return style;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче