Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp660618pxb; Thu, 21 Apr 2022 07:47:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCRRIlEKw46Yh08U+4Koc9qExRZ0LiFS4WeaCs9lRhVpLcThVVEX5noF/g11W3mUlxmqfh X-Received: by 2002:a17:90a:af98:b0:1d4:67d4:d122 with SMTP id w24-20020a17090aaf9800b001d467d4d122mr17323pjq.166.1650552441817; Thu, 21 Apr 2022 07:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650552441; cv=none; d=google.com; s=arc-20160816; b=ndSsXFTH11oQpuaYMbjSDyk5nT193LOuAv6fTW/un7q22786GZq4C7ujKmKmPfvVs8 +fLJQtET5JETMFvnuNZ3riRnzMbjoVbnGZSqxzSFfa1szvRCqe4HxrGRTEKeiOmA/Q5A wZaHEPnj93w5FM6uVkvLBmFdM+eA0+oISiNeLBWSXIneiZuUaluY/XV0xb1/W0yJ0Stm bb+wS1q3gzoNqsUeLwn2lU8ghoc5zKPuBS+SGkYeR2xNs3gnIPSOYcZuJ37pnkcaP6nJ g4JqiyGRvoCMomi+KXBt1jXTNbh7KhcSZVsvPFfQwFJO7O6KOntEgTAvuVXKknNm6FQ6 UB5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:content-language:to :subject:from:user-agent:mime-version:date:message-id:dkim-signature :dkim-signature; bh=u3nsAkEoYqusYH+jh45jkLwQcDUnIF0+uF/B/hY/l4o=; b=tJnYk2qvuCJC8A53dv+H+5IK5Ms/ALLiGtJYF8zD1UFYL2IkrNr1Pbq8NiASpzUf3q mQO6YI5pDm1j840xkCC0ZfWGEKqMhN4ELD0edTlRm3/znt5pAZrU1GAAGDSh0K5TgS+2 50alAezFUB01O+OOPMk7GRjP5/M38aOd7/JoLoS08DnObrszgVfyY5AciJiB6Eq1L1vY 9/mrKUsv8AbAd+FPgluIZpYC6tB4QDAD08clmv8cQFE7PQ+Eom/gbDrehFdmUD1P58tv Ley9KJnVT1L3wJ5LdcOStDt81rVwpxZfmE3m3jOjze5AknLH3hMoEFP4oFmW+xyczZ5j 44BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=q2AdWvrf; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e6-20020a170902ef4600b00158eb28cb9dsi5539244plx.254.2022.04.21.07.47.05; Thu, 21 Apr 2022 07:47:21 -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=@suse.cz header.s=susede2_rsa header.b=q2AdWvrf; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378519AbiDTNfp (ORCPT + 99 others); Wed, 20 Apr 2022 09:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353397AbiDTNfn (ORCPT ); Wed, 20 Apr 2022 09:35:43 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A5481D331; Wed, 20 Apr 2022 06:32:57 -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-out2.suse.de (Postfix) with ESMTPS id 1782B1F380; Wed, 20 Apr 2022 13:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1650461576; 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; bh=u3nsAkEoYqusYH+jh45jkLwQcDUnIF0+uF/B/hY/l4o=; b=q2AdWvrfJz5IJ0RDBFjwi/XcMLsz6Ptgvx47LNvAxzvTuyChqBBRcnwYhBU/rZQsiDThl4 Pu3JsWRlFkbsPj2o0WZR/QZ83+MrLtG6/42YG0wvqMO0K7w5VbXatkGfXCUw2b1EFGSO9A ofBpkFW55RJSVX4Y1aIr7vN1PsoCxKo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1650461576; 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; bh=u3nsAkEoYqusYH+jh45jkLwQcDUnIF0+uF/B/hY/l4o=; b=M+gf6K5IJc0kPf+bs5s93cxy0UkV7Bb45gvxIMeMrGuzHsOvI2s/UFEfD6HfNBqXcqn3RW mijZssFdDA8T5/Aw== 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 EE57B13AD5; Wed, 20 Apr 2022 13:32:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id o1ETOYcLYGLcAgAAMHmgww (envelope-from ); Wed, 20 Apr 2022 13:32:55 +0000 Message-ID: <35bae747-3951-dc3d-a66b-abf4cebcd9cb@suse.cz> Date: Wed, 20 Apr 2022 15:32:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH] perf: print warning when HAVE_DEBUGINFOD_SUPPORT is not set To: lkml Content-Language: en-US Cc: linux-perf-users@vger.kernel.org, Jiri Olsa , Arnaldo Carvalho de Melo Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 When one requests debuginfod, either via --debuginfod option, or with a perf-config value, complain when perf is not built with it. Signed-off-by: Martin Liska --- tools/perf/util/util.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/perf/util/util.c b/tools/perf/util/util.c index fb4f6616b5fa..289d83baaa2f 100644 --- a/tools/perf/util/util.c +++ b/tools/perf/util/util.c @@ -430,4 +430,9 @@ void perf_debuginfod_setup(struct perf_debuginfod *di) setenv("DEBUGINFOD_URLS", di->urls, 1); pr_debug("DEBUGINFOD_URLS=%s\n", getenv("DEBUGINFOD_URLS")); + +#ifndef HAVE_DEBUGINFOD_SUPPORT + if (di->set) + pr_warning("WARNING: debuginfod support requested, but perf is not built with it\n"); +#endif } -- 2.35.3