Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4972250rwl; Mon, 3 Apr 2023 12:20:10 -0700 (PDT) X-Google-Smtp-Source: AKy350Yle9IQQWrJTgEniNyUja2/hIFoutkU+j4CJE2boP8yrcJg1Fq/ztOkMou8vzmw2mP88+m/ X-Received: by 2002:a17:903:2287:b0:1a1:ee8c:eef5 with SMTP id b7-20020a170903228700b001a1ee8ceef5mr240575plh.7.1680549609748; Mon, 03 Apr 2023 12:20:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680549609; cv=none; d=google.com; s=arc-20160816; b=GGTc4O5iW2KUNmNXx+gQpXa+jnIpEob4nRiMwdY0s4hzy8wt7/B9jyvGWLSeG6bdvX 0xM/qaE3T0seJJUtodPcAYdLrzvimr2co0YLU6q34/N/iWiyzZUQlXj321DD099Qmhcb l1z6c9A7vylhC2xcPomigGrxJXQUZJ9hmWerQFIuZBaTsoVGdkMBKBMk7kC+jp+1xJyz 3tCbBCXIhsEhM0gckKUzP8aHa6V1CUDu/ndZNtEwT+XUjDAYNd1tt42+i64c9bZz0cQU z2+IC6E/VVEHqLs55Gnx3hDl9ysjW07LI891UI4OkaRYmAFocyCRBRQpFLsgdJAkFMpa A/yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=8W0bFO1La/7HK/HpWnbmeoTx54QZk6D+Z078ZNMeyCg=; b=Eck03P/qzhWpsczt3H1M4uLEjkKpiSSDregrKlJ1VEsQnyIxEyKLra22eIma4m5/r+ bMzKELdjTvXmKBwkyvuY4qlBz7gWu/NT8KG0nMkqcMecVdbuP9kQqZjozdLMnYKVffQF eqzUzVtkf8RXTXpEZeW0umSnBKSkqXSmnwpH+AjI/HjOg2BBa+Us+DDOJi4y5WT4axnt 6m+Xh1cKiOC9BawNlV5dNTIGsGcE/0rpmrYzPNPphnxESwcRcrUWhiwrANI9eoudq92I dhgmX44WQ7UPlQLIw1XrAh0zqrZ/CAQVnMw6WzHSO5B10yoVpsMFR55fflCV8QtLrq7Y 5Z9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=m6LfHyI5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 185-20020a6300c2000000b00513f15fed67si2464636pga.517.2023.04.03.12.19.57; Mon, 03 Apr 2023 12:20:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=m6LfHyI5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233361AbjDCSlf (ORCPT + 99 others); Mon, 3 Apr 2023 14:41:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233373AbjDCSl3 (ORCPT ); Mon, 3 Apr 2023 14:41:29 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 047E911D for ; Mon, 3 Apr 2023 11:41:18 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-546422bd3ceso124306957b3.21 for ; Mon, 03 Apr 2023 11:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680547277; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=8W0bFO1La/7HK/HpWnbmeoTx54QZk6D+Z078ZNMeyCg=; b=m6LfHyI56ByW91W423utUqnJXSW4puezbyRvLd6hsvF1zXWMY7ZofDsdmw/fYmx7FE sJe5baFpA9RtIsAPV/TuuKyopzHqf8x5UkNGMNP+GpGoiGynVSQnFjaM+qXQySgIvwx+ PpviiDCXQkgIgjISkk1CcHi80s4Dp3E3eRHHQqKOqoDDJgMb1sSV6jObKGSiFd96xoaz efTEqDOKLltwL2YvagCx265klOH3KpeZ04hy6yRfwooPWtXeqEVIBeKYS7iklOuGYFB+ pE3VKKQoBOJHo7uXBa68D7TOgCN2ChVGEJEngsRm7GT4i0MP++uce4te53qFdGmSdqL+ GkJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680547277; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8W0bFO1La/7HK/HpWnbmeoTx54QZk6D+Z078ZNMeyCg=; b=IPkSkgpDnNljxDWhE7qC/pIqvWYQvDjmTPUBjju2rojlR73rON/UwN0ZD6Extf029T PWr94MHDhTDYSMruMZKF9m7uCYCUrF2RTH6S9MjR/T4H5iWBeZRF5dm7ICn5U8578US9 ge75S44eAyT7Dm5ZwHvvl9bC5OuGvuPBxKfwoWdCPdkvMVzuKTzZrHdHCRzoXjQB3liG xvMR4y65T65dUm/HjU3ftN3evxYhkCQNea7nZy6bL6rOpvupslKJ3DOvMb+W9DhzP1rI 2CTHKxP6kURjULP8Um7voEy0D9bSHrxtWljXY7obzdjxkfXCwDIoCuf8aqvUCs1O2AsN auUQ== X-Gm-Message-State: AAQBX9dUGReCM5Tkv11G0mMlELuK+HNrgEnlKGMS55W6W8N8+tu7QQ8F HboXy4jmIoZPPk+T5GEGkFDg58wqs0Ro X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:9dc:a977:817d:341]) (user=irogers job=sendgmr) by 2002:a25:d9c7:0:b0:b46:4a5e:365f with SMTP id q190-20020a25d9c7000000b00b464a5e365fmr131859ybg.8.1680547277315; Mon, 03 Apr 2023 11:41:17 -0700 (PDT) Date: Mon, 3 Apr 2023 11:40:33 -0700 In-Reply-To: <20230403184033.1836023-1-irogers@google.com> Message-Id: <20230403184033.1836023-5-irogers@google.com> Mime-Version: 1.0 References: <20230403184033.1836023-1-irogers@google.com> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Subject: [PATCH v2 4/4] perf srcline: Avoid addr2line SIGPIPEs From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ignore SIGPIPEs when addr2line is configured. Signed-off-by: Ian Rogers --- tools/perf/util/srcline.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/srcline.c b/tools/perf/util/srcline.c index f4fcdada821b..cfca03abd6f8 100644 --- a/tools/perf/util/srcline.c +++ b/tools/perf/util/srcline.c @@ -473,6 +473,8 @@ static enum a2l_style addr2line_configure(struct child_process *a2l) ch = io__get_char(&io); } while (ch > 0 && ch != '\n'); } + /* Ignore SIGPIPE in the event addr2line exits. */ + signal(SIGPIPE, SIG_IGN); } return style; } -- 2.40.0.348.gf938b09366-goog