From nobody Mon Apr 13 12:01:19 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63E39C00140 for ; Fri, 12 Aug 2022 11:45:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231478AbiHLLpF (ORCPT ); Fri, 12 Aug 2022 07:45:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238303AbiHLLof (ORCPT ); Fri, 12 Aug 2022 07:44:35 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0265AAF0EF; Fri, 12 Aug 2022 04:44:10 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 2872E38E85; Fri, 12 Aug 2022 11:43:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1660304634; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rE08NAcCuF+IEl0otRKm+fJbFUf5aCYLvwBhKGbE2Us=; b=rTkn5pAgUu+j0/ZBum6QeAA6awTHnQYSGsucr1PPOZtvDgonEyH6RvdFRRqjE5GtWVcfIJ T+5xLauWU/t+OzoKLxarOPXCNH268rz6Z6KACBW9Fi3FO0CqwV3Q+w229CrMCJO1oob0LF UgkQ8KseEkOJ6wvNGyP6KV3L2WgyzMY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1660304634; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rE08NAcCuF+IEl0otRKm+fJbFUf5aCYLvwBhKGbE2Us=; b=MO+oGP+79woBgXP3/TgAkt4ipgBnUv3yB5G9ozRq1PWRLZeqiOhu1Wy7lFLq8GQg2apumx mUMaX/LuPUSJe4Cw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0FBC913AAE; Fri, 12 Aug 2022 11:43:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CLzDAvo89mLmfAAAMHmgww (envelope-from ); Fri, 12 Aug 2022 11:43:54 +0000 Message-ID: <325871cf-b71f-6237-8793-82182272ece8@suse.cz> Date: Fri, 12 Aug 2022 13:43:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2 From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH] perf: Print debuginfod queries if -v option is used To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org References: <2983e2e0-6850-ad59-79d8-efe83b22cffe@suse.cz> Content-Language: en-US Cc: Arnaldo Carvalho de Melo In-Reply-To: <2983e2e0-6850-ad59-79d8-efe83b22cffe@suse.cz> Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" When ending a perf record session, the querying of a debuginfod server can take quite some time. Inform a user about it when -v options is used. Signed-off-by: Martin Liska --- tools/perf/util/build-id.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/build-id.c b/tools/perf/util/build-id.c index 0cc68cdd84c8..d1cfce0613ee 100644 --- a/tools/perf/util/build-id.c +++ b/tools/perf/util/build-id.c @@ -653,7 +653,9 @@ static char *build_id_cache__find_debug(const char *sbu= ild_id, =20 #ifdef HAVE_DEBUGINFOD_SUPPORT if (realname =3D=3D NULL) { - debuginfod_client* c =3D debuginfod_begin(); + debuginfod_client* c; + pr_debug("Downloading debug info with build id %s\n", sbuild_id); + c =3D debuginfod_begin(); if (c !=3D NULL) { int fd =3D debuginfod_find_debuginfo(c, (const unsigned char*)sbuild_id, 0, --=20 2.37.1