Message ID | 20240111081914.3123-5-adrian.hunter@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-23203-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1301707dyi; Thu, 11 Jan 2024 00:21:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSdc/+eruoNrXfohGZPuPv5FX3gbTs0eJt8jqaeK127BievjTZDBKXGfJs0j/wuG5H1SdL X-Received: by 2002:a17:906:2706:b0:a2b:163b:8152 with SMTP id z6-20020a170906270600b00a2b163b8152mr372496ejc.94.1704961282174; Thu, 11 Jan 2024 00:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704961282; cv=none; d=google.com; s=arc-20160816; b=noNGL/5gsO18KVSj4dniVIgYTQi4NMWnwR3Zt5h4t5gJOO4G6OJy7XOuREnodT+Tzn I6DBnu0Vw3L/E2NhPKQcruOveUACbv6G24Qj4CzXDcuqXXZrNLFNRg1ahvBhGT4hm/tR Mbjw7wHyqY5x2Au83afEEb3AEZ1fNzMoUosCrDN1p/gskbWomEQBcKJXzkW89EYeOfQR dUtGvzHwxm9Q1R0OOIhr5PFsT6Lyc7gtvarN8kpkXvsFP9rLXzLl9JNnF9J8wuzmTufW O5L2lIxhRpRT26Zg0a5cBDl9WFEyfR9SKIrzjx2F1yunihKoInjgCEeALnZYICxKPAMP HlNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=GExlNZCOA6cc+rg0kVxmcWBt7Tq5aS5hrlBqX2SFhLw=; fh=cd6f3jNh3j7Qvd5mXmd/oCoIQnwAYeKd0j29JiSirLE=; b=XcWeoeUqogyCZ76pOQINygR40LyHFBDRyUH4QPeYVwycoiMovDlgoSMe0UP0cPp9q1 ldHwJlE7pvgmK57QqWcYnPtGA2eNuFJ7JLP9m+Q8IV39nDaeKcX8+licwPVVFFHVQgng 83k3+Pup7B+URinsUahLE2tgPBuj4JsjghVoRDziH8vmD+yEsgXfSmoBqpseWpSEXRaN S9QptrVk5PRio0w1+r4pZnPXgVMN75y8uUEuJICqvAzQ5fvsbNEbUbqcD/Ii8zgGeyON D78vfIk16PYHNumHICTYAsDFL8lOhSdcXkKsvPO/Brczn5YCaBjmosagYPL4vTdP6woS 20kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="MFS/kV/D"; spf=pass (google.com: domain of linux-kernel+bounces-23203-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23203-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id k25-20020a170906a39900b00a256eddd7dasi286631ejz.89.2024.01.11.00.21.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 00:21:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23203-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="MFS/kV/D"; spf=pass (google.com: domain of linux-kernel+bounces-23203-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23203-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id C65E21F213C6 for <ouuuleilei@gmail.com>; Thu, 11 Jan 2024 08:20:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCC5EFC0B; Thu, 11 Jan 2024 08:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MFS/kV/D" Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8059FBF6; Thu, 11 Jan 2024 08:19:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704961190; x=1736497190; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=o2fWLNMBXVzyChynTVWEYU8VaMjHcltrDUv17RXpnuw=; b=MFS/kV/DB7rIxbRHD09KRuQdgQViD8oc5Vy7BhDsCIzpldZMfdu+N9Il IwP2ViWyFaiBDBzqK/eUzDjZZnAMGLV0c0Op0TozyvTCErlRd3m73ASfd cbfOaBX+sLN7+H2F7oiAOq9PDsdLJV5u9phmla36RUx5GVS/miZ9LGOWH F4MaYup389/85+bLxBgjZcpSOci2hRprTYkGenti9/wqXi6v3QVS2RPby xN1dELkiUyXp5/K7cPZQynsnUSOCAyIqK1j+RoFbiseP2nIO8kFIGgOsu jmFXAfYPnhsQzp2RAgCb8ia4KP9vAvVtfJUYfym2LrkWf6O5F6Iuc8Pj9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10949"; a="465166420" X-IronPort-AV: E=Sophos;i="6.04,185,1695711600"; d="scan'208";a="465166420" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 00:19:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10949"; a="925923045" X-IronPort-AV: E=Sophos;i="6.04,185,1695711600"; d="scan'208";a="925923045" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.252.52.224]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2024 00:19:45 -0800 From: Adrian Hunter <adrian.hunter@intel.com> To: Peter Zijlstra <peterz@infradead.org> Cc: Ingo Molnar <mingo@redhat.com>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Heiko Carstens <hca@linux.ibm.com>, Thomas Richter <tmricht@linux.ibm.com>, Hendrik Brueckner <brueckner@linux.ibm.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Mike Leach <mike.leach@linaro.org>, James Clark <james.clark@arm.com>, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, Yicong Yang <yangyicong@hisilicon.com>, Jonathan Cameron <jonathan.cameron@huawei.com>, Will Deacon <will@kernel.org>, Arnaldo Carvalho de Melo <acme@kernel.org>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Ian Rogers <irogers@google.com>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH V4 04/11] perf tools: Enable evsel__is_aux_event() to work for S390_CPUMSF Date: Thu, 11 Jan 2024 10:19:07 +0200 Message-Id: <20240111081914.3123-5-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240111081914.3123-1-adrian.hunter@intel.com> References: <20240111081914.3123-1-adrian.hunter@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787781481630624706 X-GMAIL-MSGID: 1787781481630624706 |
Series |
perf/core: Add ability for an event to "pause" or "resume" AUX area tracing
|
|
Commit Message
Adrian Hunter
Jan. 11, 2024, 8:19 a.m. UTC
evsel__is_aux_event() identifies AUX area tracing selected events.
S390_CPUMSF uses a raw event type (PERF_TYPE_RAW - refer
s390_cpumsf_evsel_is_auxtrace()) not a PMU type value that could be checked
in evsel__is_aux_event(). However it sets needs_auxtrace_mmap (refer
auxtrace_record__init()), so check that first.
Currently, the features that use evsel__is_aux_event() are used only by
Intel PT, but that may change in the future.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
---
tools/perf/util/pmu.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c index 3c9609944a2f..7f1b96936ff1 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -1096,8 +1096,12 @@ void perf_pmu__warn_invalid_formats(struct perf_pmu *pmu) bool evsel__is_aux_event(const struct evsel *evsel) { - struct perf_pmu *pmu = evsel__find_pmu(evsel); + struct perf_pmu *pmu; + + if (evsel->needs_auxtrace_mmap) + return true; + pmu = evsel__find_pmu(evsel); return pmu && pmu->auxtrace; }