From patchwork Fri Mar 1 13:38:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Clark X-Patchwork-Id: 208852 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp1082169dyb; Fri, 1 Mar 2024 05:39:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUvK3710SQtSQstQuJ7tC6qgWRjLu5JH8OC1bHZcaBQcRcmYlfTiACjMxboh9NUemb/AKAmcK2OlUDhZJeUFWaMjYOHFQ== X-Google-Smtp-Source: AGHT+IH17oPsqcTu3COSVB4KfQ+q5x+RP2DvMFs8VEuvGOnEEuD1STmRwUnGhhJ+IkLMjOElkJzP X-Received: by 2002:a05:6214:7eb:b0:690:5dcc:31e7 with SMTP id bp11-20020a05621407eb00b006905dcc31e7mr88341qvb.25.1709300376182; Fri, 01 Mar 2024 05:39:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709300376; cv=pass; d=google.com; s=arc-20160816; b=d3YXAUn/L9qyxHxW2kRSPCFtUmJIAAWPQ0NpFJMJ79IRYO+u2DV9YLo0o5szeJnB7D PyGexsOjNHIP9H2XZ1zcE+tlhwBmRHv9u6d5s5Nz4RTL7d3t86e9tJ5zzIRODMA/35SJ UFpIvYpdpvfGotVCNflsJ/oroGZIACxBo3lZnKbFsVV93N0Qf+Q2XCI9xysULirm5TK6 8tHtwnJWRpjBhci5aVMD+QtxzztXShXxCxHSr8lVQGWo07qWiU0FRhe370ysaHZexvdW 1kMz739hZqZZoioEjC289is59ekfco49ZVBCegASOdSVLMTlJQDOm+KQFuRH7wcSyTrg Aatw== 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:message-id:date:subject:cc:to :from; bh=6fFJLb3tbb6vmTQmFICHJ7OLDwgn+wfOBWETPzpR9ZE=; fh=mtD1xKzSvzZBM++5RRcKCTKkamgNtCtF8Xo2CImu7w8=; b=cpA5GTuQy3EvxbG0KpD4TmJIP4J9VH/nGQ6aVEGCakkWffUjAu8MWLDW3OyMsPb3No 359Dl4B+sejlpDrHTkAuc6WFngbzPiWj5IGi+O6x/s0Y8Z3wxUcgX2v1S2BYReh5GSQE xO5bcNrWiu5IFEwHnCbKkZuXQqvGnZ0p9UFCzZUedHjF3C7lc8tUWdP7APGc49evKpQ4 Nu0uw0/v0H8qe7A7zNX9+kDtrjLxnu2a+bWa2b32cnkKkM9QgYHMoa0u1WV2+BKrmDbn 5UQDd78IXK/Nt+w6hUTLhDcGdD9wvConMiI0E+RrE0aeBOGY5TMgbbFI2oDmXS2a289B zxYQ==; dara=google.com 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-88493-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88493-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c12-20020a056214224c00b0068fe2c00ddcsi3538040qvc.538.2024.03.01.05.39.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 05:39:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88493-ouuuleilei=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-88493-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88493-ouuuleilei=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 F02EB1C22C63 for ; Fri, 1 Mar 2024 13:39:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C829B6EB42; Fri, 1 Mar 2024 13:39:23 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5367040BE2; Fri, 1 Mar 2024 13:39:20 +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=1709300362; cv=none; b=RUzpgFSb7neqzuuub/bPapGEhBm5t3xjlrxeEQm4QYaHiqTA44CPXPBFu/EITylP++iX02hQ5j1bTVh7uM156ND60ORhPDiNhIJQdN8ygGUzjC25a5whO5vlBvTlGszBZ53uOjo/mFpchRjw5liQta4lBiVO4N/TEUlrNGUTfis= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709300362; c=relaxed/simple; bh=3Zqv/QP+qVPDOSk8rV9eN9SJEoX5Dn3fLrlvb7D3tpQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=fnMRte5DwqRbjp1cADlf2SG1l0rZ10WS5gBjiCS8ao/jI7Bev6zbWr/CldoPI7jXmUADSOg8ZcwR8WDNZHtqUgaWqSTDYdyJO31PJnA6WjSpzIdFUu34t8rstBTPBMfvUTlFnJ/nMa0NXohb+hu/+csH7Cjkn1xTyHG1czuaMB8= 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 DA47B1FB; Fri, 1 Mar 2024 05:39:57 -0800 (PST) Received: from e127643.lan (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 90F403F6C4; Fri, 1 Mar 2024 05:39:16 -0800 (PST) From: James Clark To: linux-perf-users@vger.kernel.org Cc: al.grant@arm.com, James Clark , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , linux-kernel@vger.kernel.org Subject: [PATCH] perf version: Display availability of OpenCSD support Date: Fri, 1 Mar 2024 13:38:29 +0000 Message-Id: <20240301133829.346286-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792331351567192881 X-GMAIL-MSGID: 1792331351567192881 This is useful for scripts that work with Perf and ETM trace. Rather than them trying to parse Perf's error output at runtime to see if it was linked or not. Signed-off-by: James Clark Reviewed-by: Ian Rogers --- 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 1bafe5855ae7..398aa53e9e2e 100644 --- a/tools/perf/builtin-version.c +++ b/tools/perf/builtin-version.c @@ -84,6 +84,7 @@ static void library_status(void) STATUS(HAVE_LIBTRACEEVENT, libtraceevent); STATUS(HAVE_BPF_SKEL, bpf_skeletons); STATUS(HAVE_DWARF_UNWIND_SUPPORT, dwarf-unwind-support); + STATUS(HAVE_CSTRACE_SUPPORT, libopencsd); } int cmd_version(int argc, const char **argv)