Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp137190pxh; Thu, 7 Apr 2022 16:34:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyolNuDFWMyCOX+6fjMSk+eFsvBSj0FrmFK6TUb6dZgBARO0GXa2kPhhXicgA+U9njorjVU X-Received: by 2002:a65:5b4a:0:b0:382:5c50:3d0f with SMTP id y10-20020a655b4a000000b003825c503d0fmr12810769pgr.113.1649374481773; Thu, 07 Apr 2022 16:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649374481; cv=none; d=google.com; s=arc-20160816; b=k6spM8nM2W2rrV4BNHkW5fCXScsxB2dIQYwaPCyus08stis0ZLF2TQ8hHO0wI3KPsz 0/OLg2XRt8MKIkEKbbGIuNAT/OHEGB5633HuyAoUS7U5Pp7tERdDy5N7sFd1PTBsbPiS 2iomqx4LzZSdm4h0hEUJ0QmQJNbkAgJL4fxpngazV4jUP/meeOg62bNDpTpSCG7NND+l b/QEhmz758M2IF/Pi6JKgqQTJsa7yNcP4ODkL8B1a0wZ1SyeB8rq2uNAOywL9LJ/6KBN I4luvfQEOeOH49uhb+OHiHkduvoCUmA/Cl2mI1nfneRAugk5Et/FWTA1GvCYZhz6wgvq 6DEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=tors/41JgQKyqvse+O7pu0FFz6GUUhE6Y3Idh3XFdO4=; b=I9N81cSu9NPcD9k/zK5DDdOpeTxphc8KOAqLPAXgWqDYkcr4VXupdEo0lfQpEV+hW/ DkHe5ub+PStlOGvc8J2l8gL+lMact7OfdQuNKjfbJ38NSmBVbC38PLDyEcQSwwT7RKp2 HgKhxierXkd6NCu3oEa9tk2NZ/Nl+ZubjE5bRN6NhqGETMyWGEl07UfSRiYOhunMUEFC slIAPXQcEoqj9yyNy/RqzM6jHvISPl7d1NrAa3R3+38xRhyV6KlrdyF79PsLxeAPYf/V EZaiAG7Gp4ArTd4GvIk5czWZ7Y7NJKo9ro/3YFED3ItsWmkMKWW9pBRD9INb2kZ+SCd+ 1dYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VtpRPUec; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t70-20020a637849000000b003816043ee11si20541243pgc.6.2022.04.07.16.34.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 16:34:41 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VtpRPUec; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A932ABCB5A; Thu, 7 Apr 2022 16:05:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232468AbiDGXHU (ORCPT + 99 others); Thu, 7 Apr 2022 19:07:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232429AbiDGXHQ (ORCPT ); Thu, 7 Apr 2022 19:07:16 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FE65BCB57 for ; Thu, 7 Apr 2022 16:05:15 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id h16-20020a056902009000b00628a70584b2so5293390ybs.6 for ; Thu, 07 Apr 2022 16:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=tors/41JgQKyqvse+O7pu0FFz6GUUhE6Y3Idh3XFdO4=; b=VtpRPUeczstXHdV+zd2nTPGF6b/Tshh2qvyDNkCw3zgF3eb0ZPJZGb1X5aCh9Zaj51 ICqxxGu+bkOPrCcWpGJJTTOKpvrPE2Jy5xFSl3otZMHsLZfHoFMa5UwNMjaY1DfWaaP1 n7NAb651jlHirzvPUNVopB+Tan6HzXfzjcDbDT8I0TCJ4DExvHVXfxU8+BVu+3TNBncP nnWg44VKdxqLINhxqbuhPBbPl6F/KpHCxEo4BhaCalVZGHo15rfrzSlHzazPfsnHACaR Y925KpqG5uQcq+P/3MpWcU6CcgRGzSEKfNUeGTBW802evTkhoAcw1Q1Z2843XMItpK1A 6RzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=tors/41JgQKyqvse+O7pu0FFz6GUUhE6Y3Idh3XFdO4=; b=QBvrx7GTnSK6aWMnRHFqADLBq44nAGwxEGMBvJkY62TxmifwGk5njQyhRHyI3N77v0 ioyAOKmYg3Y2t/M/cKWZrz4eNrOYupFGz9DNoNXx2juW9OEsPVBfRVyB+fcvcd5vn9wE ebLqmnSwg+uz5vfwq385XQVxrKFQkJnQgfM8t70KmKz7k0zRtds0Zn21b9CWUBRXCGz0 J9k4cz9Y2OmgKMgGJ5sDtJlzcFofaFFF+1NlNMm9j5WRFKQmbkbwd2iUIeiQkyb/aGqj SdwZ+DMN9UgdvqU/g36yyGRr7GqQHkgo1PiIKq8RKnokzZ/oj+R/n5wr+hKV6fzOSWVT +1Iw== X-Gm-Message-State: AOAM532eNGADNkZuMjKfM6cOI4+Q9VBeAKDQmzIj/zkoEYKEP3ZoQc6N KysBltaWPYywBr99tlTXPMFeSuq7bLno X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:560:aa27:649e:a07d]) (user=irogers job=sendgmr) by 2002:a25:e70c:0:b0:63e:e00b:ecd5 with SMTP id e12-20020a25e70c000000b0063ee00becd5mr1602174ybh.547.1649372714390; Thu, 07 Apr 2022 16:05:14 -0700 (PDT) Date: Thu, 7 Apr 2022 16:04:59 -0700 In-Reply-To: <20220407230503.1265036-1-irogers@google.com> Message-Id: <20220407230503.1265036-2-irogers@google.com> Mime-Version: 1.0 References: <20220407230503.1265036-1-irogers@google.com> X-Mailer: git-send-email 2.35.1.1178.g4f1659d476-goog Subject: [PATCH 1/5] perf annotate: Drop objdump stderr From: Ian Rogers To: John Garry , Will Deacon , Mathieu Poirier , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Clark , Alexandre Truong , German Gomez , Ian Rogers , Dave Marchevsky , Song Liu , Ravi Bangoria , Li Huafei , "=?UTF-8?q?Martin=20Li=C5=A1ka?=" , 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 Cc: Stephane Eranian Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL 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 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. 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