From patchwork Thu Dec 15 19:28:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Namhyung Kim X-Patchwork-Id: 33803 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp559740wrn; Thu, 15 Dec 2022 11:29:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf4/bHq4NcaiPaxuEZWSiV15rg77loqCAcm2Nk2x0kNMjkbeB30LEyAX2xwYDOdKlaPK3ps+ X-Received: by 2002:a17:907:2b20:b0:7c0:e7a8:bc41 with SMTP id gc32-20020a1709072b2000b007c0e7a8bc41mr20471518ejc.74.1671132588222; Thu, 15 Dec 2022 11:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671132588; cv=none; d=google.com; s=arc-20160816; b=LviWGl9ZuJ1d0tD+VI7LbMP2oY1B9dxK2blHdquoYdnmLno9AarO9frDfn/vcCVCpr ExRor242huZFs3nar3BbjPK8aEPnf51ivcrcAR9Yi4B3hf7NF79swHuXPM1mKSwvSYx+ mLPPCF7xeyEUKOqs5SAJeoML/nCBYt+ZhSCWdyXhN9AJMg6HnEnQOPrp6ons2R9nudcU L1xhCKXUOagdegb05K8/UbuV5jS3MIN2pEH1GCTfN0SnvmSlTaGHbdk6EtsqCtV1oniO Rg4KKbT81JipMjEAwKh9VcO40yj+My3434w5pg3MsE6AG/Gz5nF1QT+P7Z4brMgoKN4K e3Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=tipLqS6lnT+NPiZNAnQKxBxZNV4m8p01r3QYvYfozxo=; b=WEk2sLrNQmKitx81GGkY/aOiJajkxfDn2z4wkD5KdFTtxvqUwA85zlyTtX+GlcW9Dq KWsM1LVpglJE9YCthNTvbFFISAgkCk/SiGIFUvlgWDXwnNHIBm8ZlBvyvqiSzvzH1nR7 uSg7iWlTBNRv0NmVser2Kye8QGBTvR3bn/q6ZO8I8jwj9scy/IV/CBv42SkvNfe8ioJ4 +zHic946mDoE6pBYbvYcYdTQd6iyayjAFkMkDZyrxHk9lJo+5QqUbFeZBsAFrrWiAgil IOv0dhVVSv5hePJCjFg8JD7fmbep42aaM0y1yN3yIg8uywnijo5UQ1KYyRjgcI/lOAyT Mxzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OQnOVTdS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ec15-20020a0564020d4f00b00460ce6c3a1asi108054edb.454.2022.12.15.11.29.25; Thu, 15 Dec 2022 11:29:48 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=OQnOVTdS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbiLOT2f (ORCPT + 99 others); Thu, 15 Dec 2022 14:28:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbiLOT2Y (ORCPT ); Thu, 15 Dec 2022 14:28:24 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6A1E4AF13; Thu, 15 Dec 2022 11:28:23 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id js9so195289pjb.2; Thu, 15 Dec 2022 11:28:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=tipLqS6lnT+NPiZNAnQKxBxZNV4m8p01r3QYvYfozxo=; b=OQnOVTdSIOnnq3cpTAUZRcQj3kjXX0N3xhDZgDjXC3RAarlzoMtiwDG1g4Q3iHe0Hk HUtW8k7FIWj9dVATdx2xAjLtZXS9odIJ6JSMk7BGooFihyVViCGEWvkWNLwPFPFCHDyF 3koLjxv3dSMRnz3mYaLwsu9bd7OzKo1ORevXHebSpkNVTUPA7CkRk2Uee0nY0p1a+eS2 zUDmeYd2p6RtYOVLiV750h3iXyJ8r6ujriYJkVilBjXkR9VJGJp2so8INGb2BE7isVrN Ly/4zbn/AsO/YXgrScrb+eyB4H+dZbK7MBA5tVbWABHfxqcuZdhiKZ6IzD1s99JHIP1B p7Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=tipLqS6lnT+NPiZNAnQKxBxZNV4m8p01r3QYvYfozxo=; b=LtgXagXAdV6dTC0bVwgPlOGLbAq8jA/jMqyIj9y6JxP3inl9R+KavOl3uYo3AGjG10 PquivvrIqy/z02zrUZONGw/ULqvvmK+n1m3riTUr+VEB4LFMu1MwUONyFu6ThuBUrSq/ O0i4zDuOXkRMQoxqXOs26maLNY9lSZvIw8+doozLrvge5DWYdKZWiCmkOQN6bbOnQJ8J Syjz1eIZWay15qw51sdrLz1wPN3nHBrcIHDBJaTZhaRL8BW4IvHMIU60P+x/LDGu0NoH sR7LU8juxtHWbku6CyGVOBzxJQf3Wai2uvyhJut8XVbVCTtWXQbiny2IiEBKarWV3XI5 1WoA== X-Gm-Message-State: ANoB5pnRV2ZeHG4yZobREcrG8VBoHWgtYY0C5CISPUd3OaFOO/oyfLnG jmtiE4ncHvnZBCSW2JAW86U= X-Received: by 2002:a17:90a:1b45:b0:219:64ca:49a0 with SMTP id q63-20020a17090a1b4500b0021964ca49a0mr29623814pjq.22.1671132503015; Thu, 15 Dec 2022 11:28:23 -0800 (PST) Received: from youngsil.svl.corp.google.com ([2620:15c:2d4:203:ecc1:3e44:be34:129c]) by smtp.gmail.com with ESMTPSA id ep14-20020a17090ae64e00b00219cf5c3829sm3475129pjb.57.2022.12.15.11.28.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 11:28:22 -0800 (PST) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, Andi Kleen , Milian Wolff , Leo Yan Subject: [PATCH 2/9] perf report: Ignore SIGPIPE for srcline Date: Thu, 15 Dec 2022 11:28:10 -0800 Message-Id: <20221215192817.2734573-3-namhyung@kernel.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20221215192817.2734573-1-namhyung@kernel.org> References: <20221215192817.2734573-1-namhyung@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752309524802273636?= X-GMAIL-MSGID: =?utf-8?q?1752309524802273636?= 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 --- 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,