[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221215192817.2734573-3-namhyung@kernel.org>
Date: Thu, 15 Dec 2022 11:28:10 -0800
From: Namhyung Kim <namhyung@...nel.org>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Jiri Olsa <jolsa@...nel.org>
Cc: Ingo Molnar <mingo@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
LKML <linux-kernel@...r.kernel.org>,
Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
linux-perf-users@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>,
Milian Wolff <milian.wolff@...b.com>,
Leo Yan <leo.yan@...aro.org>
Subject: [PATCH 2/9] perf report: Ignore SIGPIPE for srcline
It can get SIGPIPE when it uses an external addr2line process and the
process was terminated unexpectedly. Let's ignore the signal and move
on to the next sample. The sample will get the default srcline value
anyway.
Signed-off-by: Namhyung Kim <namhyung@...nel.org>
---
tools/perf/builtin-report.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 2ee2ecca208e..d98112f173b0 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -949,6 +949,7 @@ static int __cmd_report(struct report *rep)
struct perf_data *data = session->data;
signal(SIGINT, sig_handler);
+ signal(SIGPIPE, SIG_IGN);
if (rep->cpu_list) {
ret = perf_session__cpu_bitmap(session, rep->cpu_list,
--
2.39.0.314.g84b9a713c41-goog
Powered by blists - more mailing lists