Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp595480rdb; Tue, 23 Jan 2024 08:44:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9Aq/eaifCaNtGu4eWae3NgnZpNeWMcD17z3d9vFSr7KrH4cq/aOJ3ckAqR1NtCQJB+mmi X-Received: by 2002:a37:ef11:0:b0:783:7e10:c515 with SMTP id j17-20020a37ef11000000b007837e10c515mr7839657qkk.152.1706028298505; Tue, 23 Jan 2024 08:44:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706028298; cv=pass; d=google.com; s=arc-20160816; b=V0j/7dtmkO+30Ts5X0WLRfD/MohRIVPmdC0DDPEwBnqaN9lBPO23lOMuMBJwxYPEY0 r8vDlpSIGf8QXyfpwnsA0Z2xW3MzFVHnU1cE7ejFmdEA73tbNiUFRyVEU4zXSgBuk6kR 1kWoVRUxkxNbUDDTiQzWd+XrAouVLFlVoOfzU1FkvmzaN2FhSpyJAv1uV/NfxIK/30R2 I1kAEDiLi4ACPqK03NCcMNvhG1ajVeZ6ncQZRMgS107FEtvp6Tesl0f24U2QxTTOowFj BO1B0ytq7nnY/9cFKWF+8My/zYRXFck2yPRxynzy3IGKdc9Huc35PiJ2jGS4LsFqTt4q /RFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=lxNlEpb8jxT34CxfIVcTxIEbQ3TrdTQAkzNObYP6Sv4=; fh=aZBcDE9AHS6RtGu21Na1iG9EKptxUvQLmajeDBBizRM=; b=F4y+TMUpTWrI5mkK//G278pSDMuoFcqXrZT950876CKVNUCoHHWjZ9dm7Ua3o86/kp jjwfVSiMn9ClCZJZ8bDZLf9bWVpcBqy9si6B79vWswDYtwUO/tkgn3+HqrIE7iuL0fxV pYMtWmaocr5xblj7vTR1osePMqIGzxDPJeviA4Eo08lAtrG6sdlNwAQt5vYYizfB6BMm rdfFNIM2sT2raqNXwxWQwznNoE1VPf2hexJZzwWSLyeOhB2BtTXCBCjNbRqTfTvuLSC8 eG94pJhJA/YlUGjrBB/EfTWHF6g/kMaFnAVbzPWHpG1kUCLken+qYGE80xs1/T7WiHws z8/g== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-35682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id os24-20020a05620a811800b0078342dfebbfsi7954307qkn.42.2024.01.23.08.44.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 08:44:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-35682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 44ADD1C25574 for ; Tue, 23 Jan 2024 16:44:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FC9A80051; Tue, 23 Jan 2024 16:39:18 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 17A2480034; Tue, 23 Jan 2024 16:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706027958; cv=none; b=IMuMA8+saxCvCdKq624fWtVJE8nBPqjP+pipFTxGondv+ZmjUJMDCGUmOnss7CW6IqzbDBz9TOq1fK0Qxcc7njTjUhVhiftFUwzwtM2sK/6pQCT9Oae5vdgTdyXTt1F7ry2uyO42LRZ7HfT+8FPu3dZZAmHWoXLylyZb5Q1AHr8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706027958; c=relaxed/simple; bh=Y0y9EQrax0annxGXKzptQ0MkdIKONr0Czi0BUW7Zw2U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XMEYP9Se0lwIVSZlZbKjdkRt2k+NVxptMUxb5OEiIEzpspDncoyIRezG0C5wYYOKRMh/cP+J5PVYeWj9gOF7rN+iV5PzHilT0KuVHPr6fGO/BQxP7LxNukif4/VtXlI8vS+zVvQDtrhpCUBN1qki6rhBQPeUMgNCmA1mTf1jY3I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AC624FEC; Tue, 23 Jan 2024 08:40:00 -0800 (PST) Received: from e127643.broadband (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 559663F5A1; Tue, 23 Jan 2024 08:39:13 -0800 (PST) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com Cc: James Clark , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Spoorthy S , Athira Rajeev , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] perf version: Display availability of HAVE_DWARF_UNWIND_SUPPORT Date: Tue, 23 Jan 2024 16:39:01 +0000 Message-Id: <20240123163903.350306-2-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240123163903.350306-1-james.clark@arm.com> References: <20240123163903.350306-1-james.clark@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Even though unwinding depends on either HAVE_DWARF_SUPPORT or HAVE_LIBUNWIND, scripts testing unwinding can't just look for the existence of either of those flags. This is because NO_LIBDW_DWARF_UNWIND=1 can disable unwinding with libdw, but libdw will still be linked leaving HAVE_DWARF_SUPPORT turned on. Presumably because it is used for things other than unwinding, so I don't think this needs to be fixed. HAVE_DWARF_UNWIND_SUPPORT already takes the combination of all those things into account, and is used to gate the built in tests like "Test dwarf unwind", so add it to the feature list output so that it can be used by the script tests too. Signed-off-by: James Clark --- tools/perf/builtin-version.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-version.c b/tools/perf/builtin-version.c index ac20c2b9bbc2..529e9ce8c46c 100644 --- a/tools/perf/builtin-version.c +++ b/tools/perf/builtin-version.c @@ -82,6 +82,7 @@ static void library_status(void) STATUS(HAVE_LIBPFM, libpfm4); STATUS(HAVE_LIBTRACEEVENT, libtraceevent); STATUS(HAVE_BPF_SKEL, bpf_skeletons); + STATUS(HAVE_DWARF_UNWIND_SUPPORT, dwarf-unwind-support); } int cmd_version(int argc, const char **argv) -- 2.34.1