Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3144642rwb; Fri, 16 Dec 2022 10:38:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf7ey1Yd5sn3dSOCqcP+FVB/BL/+BeeKS2JdCzFpfjtUe2FThHkN9XtnvoARlbK/qxkKPTwk X-Received: by 2002:aa7:d5d1:0:b0:46c:d905:b9ed with SMTP id d17-20020aa7d5d1000000b0046cd905b9edmr30638350eds.14.1671215900411; Fri, 16 Dec 2022 10:38:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671215900; cv=none; d=google.com; s=arc-20160816; b=CLsRo4a8x0ifzHrthBJ7Rnc6z+lkNs9b6I1EMti/u7pbTya5YE+rxHhvybWTaEA9c3 uIpTZ2eB0MlsW7mVsl9Z9r19yAhmTsbMYK5zUvcVm+u8kc4CxSiSN/wrPs+Z9DWFmxzg 70voKLwJeBFehF5NhkZP3v8Y8RdhFeq/16mz78TKiOp1cCudtvSRHCVNJeg+s7y+vWAK 1F7qDY4sDs/pRFGrs3hpZ0AEWJd7Qzw008HW/pi7Z0ku1KdtiRHb7cnrBlNrm9s7WDpt 8CHfbEz5t9JUMk05lmHk4yagAQZj91MU0XBNbMrAsEPfCu3SY46pRpMGQI1tuvuFvzQY eN1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=1eFLCni2OGFsB0YPow85ffGtmX+w7qQ59Jc5KJ46+aE=; b=l6PjM1J77jTBX+hDKvNh+kRfJB4ccMLK8qYmv1dgGbvBAEIfsyvmdhvseYVDRRxwl/ yMxJDAkk7THIbSdzpdVmGRg89K6fRKbKN2Owyr1NMH42SKqAxFha+UexDLT0TgA4CvHK b8y9Vt21dF/+X6+e0P+fsFHYbhmRUROO/3SmWpqAlccUBWy6uedUtjz+IdVMJe+7gA5v hTBOP3fhFLvDK4P7KKoGPyS6zizQ/mUS4sGSJ419CLfC2TkTdZs8ZdlW9h6X5MjCkpy/ Bf+7CE7fdkgywCItvP85tEAqEDb6olTX5CRbPfu2sIIe7X/kYoDVOi2Z6oB7shfhiU3F 7qLA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a056402278a00b00461d2ed78acsi795227ede.378.2022.12.16.10.38.04; Fri, 16 Dec 2022 10:38:20 -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; 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 S231226AbiLPSJH (ORCPT + 68 others); Fri, 16 Dec 2022 13:09:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbiLPSJE (ORCPT ); Fri, 16 Dec 2022 13:09:04 -0500 Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9458933C26; Fri, 16 Dec 2022 10:09:03 -0800 (PST) Received: by mail-io1-f43.google.com with SMTP id q190so1618474iod.10; Fri, 16 Dec 2022 10:09:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1eFLCni2OGFsB0YPow85ffGtmX+w7qQ59Jc5KJ46+aE=; b=0io4IvVsIbTgKpEMxDIdRt97bamCXj4PjZZlsNs4TB8vGiklQ9fjBWawQsPykqIp/d qcnK72/FtzIOCDIbAsIHlQxMUHm0nDr8P/hgO2hbsVNayPqnJP53oylt6YaJhwvb6/2q 5aOI9OFOzKvLY96w7e5lKa7PneEv/AOCSOlzPqOLgIMzOUADXQA45334zoMAWFlg4aC8 Eo09w10OerPwKIAXvzdRQ/G4EMg8lr3kvX++RdVsTThS7UQ8AUNEYiiZkmltZEra0uFK fDIfloP9/gnLT28ilywR0Mkw70jUFk7B68CtZF9LVQvVjm6FZh9t3WBqHDJYTv8Ud63s kHQA== X-Gm-Message-State: ANoB5pmwmGOebPtZ6VPN0BOIyEYBQWuC7FS06iCMqAksIEb+VMGKGQbk Y3Ol8xLXWtBKPSw/ZdOI5UCvLIIoWZr+002p32E= X-Received: by 2002:a02:3f48:0:b0:376:2a35:3b21 with SMTP id c8-20020a023f48000000b003762a353b21mr37069879jaf.284.1671214142116; Fri, 16 Dec 2022 10:09:02 -0800 (PST) MIME-Version: 1.0 References: <20221215192817.2734573-1-namhyung@kernel.org> <20221215192817.2734573-3-namhyung@kernel.org> <18594a2a-553a-c2b8-2c4f-6f7563ae3727@linux.intel.com> In-Reply-To: <18594a2a-553a-c2b8-2c4f-6f7563ae3727@linux.intel.com> From: Namhyung Kim Date: Fri, 16 Dec 2022 10:08:50 -0800 Message-ID: Subject: Re: [PATCH 2/9] perf report: Ignore SIGPIPE for srcline To: Andi Kleen Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, Milian Wolff , Leo Yan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Hi Andi, On Thu, Dec 15, 2022 at 11:25 PM Andi Kleen wrote: > > > On 12/15/2022 9:28 PM, Namhyung Kim wrote: > > 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. > > > That's a bit dangerous -- if perf report output is piped to something > else you really want to stop on SIGPIPE. Maybe we can handle the pipe write errors gracefully, but it'd require more changes in many places. > > You would need to find a way to distinguish those cases. Hmm.. ok. I guess we can just drop this for now. With checking the .debug_line section, problematic cases should be gone mostly. Thanks, Namhyung