Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp257278pxr; Sun, 10 Apr 2022 14:00:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeq9hp4BljeDlrNS4H5OWwit2SD+YTooJSUPjnc1jBjgQZ8coH0R27s/r6HvPKicB/fDIz X-Received: by 2002:a17:907:7d8d:b0:6df:f3a6:b0d9 with SMTP id oz13-20020a1709077d8d00b006dff3a6b0d9mr27876083ejc.13.1649624401441; Sun, 10 Apr 2022 14:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649624401; cv=none; d=google.com; s=arc-20160816; b=dN/d38PNYOyhRW3lsr4aaAKAQzpoAP11tYdvYw++0ynml4hf/XOM5/ek2dIjcwweNp ZVcCZHkG11014TGcmSo9PhkKzWyCJKW7S8Azb1v38XLXEgLRwlat2MpPQ0s4ejSmPcCD QINwsPUV9E+SjwG3CIVy8mEm0wYKo39rHn5eJex9JBvRpjbabFGNzA9+wSK9EZoU2P3O eZD1touDF7XXztDCj6BbCobKhtNtKU+AqVenmF78lw9HotHgTP1c/0xJ8L7qLl3L7Srk sNBKPq6+tfMmNMjiGdbDjH/qvIqS+42g+On/KnO5Twe2tCvvcwBsO5X473MWOF6gBgT6 4DRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X9+0bB9SBVgYP95sgdpZfG+hpIv/Q9wbM8qPblQNhDo=; b=iGef+OqG55dfsj/Fx03ux5Qha/UidIlA2PDRmBnIcwFq7A6JsvQLx5aPD1b7QrV7gg tOpD/HqTKV2NyMvnjNH8DcoWS1vArM5DNc7ojo5SsSsItm+qwBImlVlHNXZDjsthufDV cdQxUqeWiOs6r2kY+VjtpiRsNXVOvXUlUL+QbjnZU+r3nqVTrSfifiSjmlV8lDYr7r8N TNC0sstC17jO8rOkjN9hnwvzkZGVWtqj2MjRxl6pojVA3dFYoiDnjOzJGRYXPD3/WRWA iwLBYZh/y7GIvWdozEhxCzyZeAgs9x59APdzbtwMuNVqioy2YMgExaRdVAWcsGpLC+su hhrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PqzVJKdk; 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 v16-20020a170906381000b006e888eed54dsi1793767ejc.783.2022.04.10.13.59.12; Sun, 10 Apr 2022 14:00:01 -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=@kernel.org header.s=k20201202 header.b=PqzVJKdk; 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 S238571AbiDIPrM (ORCPT + 99 others); Sat, 9 Apr 2022 11:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231217AbiDIPrK (ORCPT ); Sat, 9 Apr 2022 11:47:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58DCBF7B; Sat, 9 Apr 2022 08:45:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 03EEEB80688; Sat, 9 Apr 2022 15:45:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84D50C385A4; Sat, 9 Apr 2022 15:44:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649519098; bh=MpiCpl1K2EcLuCQxwXCkDuh690V+U0S2LFvoqsVv5u4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PqzVJKdk6P/gOxqUCQ8Us8E6q+yTz8PRNUL8tbzGILdlUXfWNR5Zs58Cwv2ezMJmH p3XfvMkDAsCqBFSraGqOJF9Yu5/hPLrgZPFX46pYqd4/gV63ND++nxu1ASRXfB8qiR iY4GjtrYXArp0ElOOX2G5RMXcZ+0ul4an1RSfj1FWPrqmnpHXl6OK7H9D3bs8Xd+WT 0bgHuRC7hdubDvjoeXhflvXqdh/Fa8M9GGPM9TefROGjWGcdqRGOIfOK83TG2aOnvO PLbFvFRqw1lZGaZILDJt/pqdM54G7nqv8EhiYEbWHJ0+zVejXSXOJjI1UIqBV5LlgJ lY044ep8Wo9lg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id C88AE40407; Sat, 9 Apr 2022 12:44:56 -0300 (-03) Date: Sat, 9 Apr 2022 12:44:56 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: John Garry , Will Deacon , Mathieu Poirier , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Clark , Alexandre Truong , German Gomez , Dave Marchevsky , Song Liu , Ravi Bangoria , Li Huafei , Martin =?utf-8?B?TGnFoWth?= , William Cohen , Riccardo Mancini , Masami Hiramatsu , Thomas Richter , Lexi Shao , Remi Bernon , Michael Petlan , Denis Nikitin , linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH 1/5] perf annotate: Drop objdump stderr Message-ID: References: <20220407230503.1265036-1-irogers@google.com> <20220407230503.1265036-2-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220407230503.1265036-2-irogers@google.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Em Thu, Apr 07, 2022 at 04:04:59PM -0700, Ian Rogers escreveu: > If objdump writes to stderr it can block waiting for it to be read. As > perf doesn't read stderr then progress stops with perf waiting for > stdout output. Thanks, applied. - Arnaldo > Signed-off-by: Ian Rogers > --- > tools/perf/util/annotate.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c > index e4c641b240df..82cc396ef516 100644 > --- a/tools/perf/util/annotate.c > +++ b/tools/perf/util/annotate.c > @@ -2047,6 +2047,7 @@ static int symbol__disassemble(struct symbol *sym, struct annotate_args *args) > objdump_process.argv = objdump_argv; > objdump_process.out = -1; > objdump_process.err = -1; > + objdump_process.no_stderr = 1; > if (start_command(&objdump_process)) { > pr_err("Failure starting to run %s\n", command); > err = -1; > -- > 2.35.1.1178.g4f1659d476-goog -- - Arnaldo