Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp374668rwl; Thu, 30 Mar 2023 17:56:19 -0700 (PDT) X-Google-Smtp-Source: AKy350Zdpj49JNgQJT7W+q/zulDNZezuEm6617aBaF8th/hSoRElt+QLFufhB1Z7wevu2btFYqt/ X-Received: by 2002:a05:6402:34c6:b0:502:1cf6:f52c with SMTP id w6-20020a05640234c600b005021cf6f52cmr5045194edc.4.1680224179112; Thu, 30 Mar 2023 17:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680224179; cv=none; d=google.com; s=arc-20160816; b=Z70xDtJuz57HFiENeB8Dj9Uhhlx5yWrKkgXKH0aJpR3GZdDee9dRx73TtY/PVeNY5e iAFKs52cavvD9L4x5HypjeLAKyacQxbZL46NbQPPeL0GbF3xgcJ3frr8johwqzc8P/Tg Wac51x5ysOnK+fVNDEvTNS8NnxggLXcfb2cPfA4HLRCMs7N8WLJ+2zEYTyTv2rDEL1jG 5PY1uq5pr/SNq0wEZ73ifBYfpsZLbV2Wn6irzsB77B7B+krOssUu4+K+N0KUf8X/zd3s D0m9u4trJ9OSFnVrhDSh1xbt3vE5wDmVG0fL5MRy0XEfV/LK5b6rv70JH1Zjy43oqXrk EpvA== 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=ZjS2ubyipVi2ZMDZ77od8b4DQTs3LsPG+UyJYia9quE=; b=uQMHZRBbrFG5s7jQhIyhpXp4DZvQdNJE+UUCZzowlcB3wFajY6OyFw1HanSLfM5kL5 kNK4YITVUs1igglAItWq1s6+RPVpwCbxmTlAfrDg0XUfOhBtgOXN377QsHx37XUl/+Sa pINHqIqAf9j8EJiOv2GL2qvBZALiCIaViFPutSs1JWz2wAe2t0figuYMvWtuQxIZYINU RP7TUlJj8ci2V9tM8r3MTxeThGD0eIkVIcuye1xjh4JogdTyXZy+LipwqDWOD/7G+pGb f/IVXsKBER1JFamZNTpGVylt2vCRYa/DJMb+LrMEqR7ydT6uERmuasTCxIMoBGcgIpNg brIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Z3sRXpow; 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 z7-20020aa7cf87000000b00502238699b5si903698edx.670.2023.03.30.17.55.47; Thu, 30 Mar 2023 17:56:19 -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=Z3sRXpow; 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 S229870AbjCaAty (ORCPT + 99 others); Thu, 30 Mar 2023 20:49:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbjCaAtr (ORCPT ); Thu, 30 Mar 2023 20:49:47 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EA1412CF4 for ; Thu, 30 Mar 2023 17:49:40 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5417f156cb9so205503247b3.8 for ; Thu, 30 Mar 2023 17:49:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680223779; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=ZjS2ubyipVi2ZMDZ77od8b4DQTs3LsPG+UyJYia9quE=; b=Z3sRXpowh/3nWuTnA9ABQqlwKz9e/xaBcX8rB1G+JuHoqvIkDMhppRkNVRu2bUEHZD DcC346N6icjGxjlxtlLeXPBaAoXHoIDXDh/8n1hZk1rYidPWX5OaeuTCkDt50Bv0q+Lu 80Xjxt8eqOOsrqHIuSE0bNDLJRDkZXu6yTVVZ62h9kqTeGsLVb9Yo0Ov9CtNO8orwV9A 0LmbNG+Wz6nzzMPQ19TvVwytQedxgKy0Nm7IRaiblHe2QebEnrZhCIxN1WOuvKyBciAi d/wPJXHFQHM9MVHHwCPIjIIKK7gCJj02pIeZBIQipfsYZR+VBL4ws1tnoHf+kPTyKWXD gnRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680223779; 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=ZjS2ubyipVi2ZMDZ77od8b4DQTs3LsPG+UyJYia9quE=; b=mTKOcF6zRZA2XS9ttMyQn/vjDa7e0Ee+wLRhbK6KqWrNkUz6rmoR03QMAJ4JmRc5Vf IAibeS1nwmpfB/sTvFaDcRMbwHwIfFHau681ulGmxv7ZM8Hq0x7unJzF9snCjBQR5xCc qrFzd89GXuM7mRdjGbIxsW2KUUyzXgJo7XKj5vQcjoHMGq18fCXw9/y7GEPKDU4xlYb+ RBoaZCJOXE5YAUgQJCTzO/qjoj2hyCyTPzcVe5nntgCpMDh4sXhhZ95QymuzYsPcngeg OIlVvAz/URHnn5vA4WFfjRK2mz/G3oZJtkI6Wo7x1/plh4Iy/k4q82b2l8hzLdzz3ZiV /kvg== X-Gm-Message-State: AAQBX9cHcue8/ZhKcVpxmtvJ7u6N9B36RAppii0AhzFLMBUBTyJO0J7V ETHurni9FU+6lz74a7Ae62T41Hee8cns X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:11ea:eb75:e48c:2c04]) (user=irogers job=sendgmr) by 2002:a81:ac64:0:b0:545:6106:5334 with SMTP id z36-20020a81ac64000000b0054561065334mr12667656ywj.8.1680223779432; Thu, 30 Mar 2023 17:49:39 -0700 (PDT) Date: Thu, 30 Mar 2023 17:48:44 -0700 In-Reply-To: <20230331004844.1592789-1-irogers@google.com> Message-Id: <20230331004844.1592789-5-irogers@google.com> Mime-Version: 1.0 References: <20230331004844.1592789-1-irogers@google.com> X-Mailer: git-send-email 2.40.0.348.gf938b09366-goog Subject: [PATCH v1 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 423ddf3967b0..bc3e48afe054 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