Message ID | 20240208113127.22216-6-adrian.hunter@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-57965-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp100160dyd; Thu, 8 Feb 2024 03:33:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXAp1JL2TcWBnIey2yLEMsSVKa5EW5JUDoogUEO8N/snDegD6Ac13vaScwH6ZufcOGPB4YGPn94zVouiEU1oWGO3fE/0Q== X-Google-Smtp-Source: AGHT+IFcmVHvu306WdjgXZqZo1wFJVEW6qtZp3tHKPUugtY8e5SqJrFgBZN5sK68mJ+8u7TGzUMR X-Received: by 2002:ac8:7608:0:b0:42c:49cd:38cd with SMTP id t8-20020ac87608000000b0042c49cd38cdmr2081839qtq.30.1707392035277; Thu, 08 Feb 2024 03:33:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707392035; cv=pass; d=google.com; s=arc-20160816; b=eht0KP8NoUI7czWu1KHgSEfSzkmrdgCYLGLwspx9aqhMJEE9sH/xZ4o1Xp6h0U4KAA WzLyi2zWIvpg3fgvCu5/KCxU31pJBNSEBik/pBWRAFL7PnsLqfEdLcnvqd2CgDW0oI3i wYkQBV+BjILwDZ3+tMj2/CvyHhAKl736PrZgkQdnJdcTuixM96Rqomg0tKfjKUP8kw9K 3LW2X1RC8sSEjDmtSX7BBp8FMDQRnB6i7Mmb8VIAopc+5sdL7dDMptkn+jm1VvXpByR3 Em2azXqPGoLbZl6gNGJjy7+XrCXxckXFvehcASseUQ9lixuKaG7fXetsHKijAmobebjw M2dQ== ARC-Message-Signature: i=2; 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=AnW8r9TRGwiz7GDwEU67jpl3RUV2w6EGZX/z7qRiS4E=; fh=IYh/X1PkZpyFqX0qy3+h3wzA4TGjha6kB/0zYSzMAVw=; b=hs15MaEF9uXD/seIH7c2lJUDIbd+uczcVnvs/OhSDyzMmu9RfLlif8kJlXbMro1130 HbJDTVo79s4ypIm50criJD/aWocgg5EtszehGAE8raLNFlvIJhn2R9qRRDP0gI8s8d6j kYqJbboXwyiq1/oZrzueESrAZsLxw9qi8DPBU9DXiVJdRgkzl1NBERCSw+A6xnv8P8tN GSAtAklaq7turaopys6ElIxqP6YohSYzJFyLjoUTZ+hppCQkp6T3P/yae/2cnORksW/u UCrxQ4gjfwW8TE0vcFLzNPYUKslvtOtth2nYJFWW56NcUoNp8U4P2btqNi81bcvfbUH7 kA+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mChSWcZR; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-57965-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57965-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCVBH+9QxNw3h0SGDsYNITe2UWkutOsWSlVGSmLdqXpB9rEgEhUei70UKNhBIm73C0/co4V1DljAdsMJ/9PMK8fg6S6RGw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y14-20020a05622a004e00b0042c44b43c71si2414847qtw.73.2024.02.08.03.33.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 03:33:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57965-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; dkim=pass header.i=@intel.com header.s=Intel header.b=mChSWcZR; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-57965-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57965-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EB5381C209B9 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 11:33:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 678AD762F0; Thu, 8 Feb 2024 11:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mChSWcZR" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (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 1EC7C76037; Thu, 8 Feb 2024 11:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707391935; cv=none; b=UA6jVeYfpfGk9DhwHc6N08F/jfBxkUi9LZkWXpTdpPhl/+YSbgjldK8fGFFCkZ+DLVImGIfA4BzavXhbpdkSLZWAXTQozwDFdG/cKYHQkR3A1CgFE/EUzvxcwf86HN8ucLltyfzjeJ93KmtS5V1cU0v3i0mx2h0olfH89Mrb0j0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707391935; c=relaxed/simple; bh=/uNuO1osfQ/KqtLrzS800xAbLzNCQEyTMRkrAuppesM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gdzduZy3CV2GkM/I3rNXet/AFbP7KSw5TTmyiPKKUGG/pd9m/tkhBqwQOHCJy5t0fbAyr5oiDXbWWUqXUPYTsk1tQHoqEQ/2zaOA1XiLD+rEsTszFJnLS2pVMY/ldyncKP53EFuzyYFNihX8Qbfzq4VTiWvIPG6u5vssb2M1oZY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mChSWcZR; arc=none smtp.client-ip=192.198.163.15 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=1707391934; x=1738927934; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/uNuO1osfQ/KqtLrzS800xAbLzNCQEyTMRkrAuppesM=; b=mChSWcZR4jRIH6JuZiyZhMyf6D3l9gXnwyUGtufWBArJ2YRJopCQVas/ Lp4IuYexIOwu/Lo0gGEJ7/lRU4Ig7LTZcZmxz2eoBRzUTPHhUmHN/9VbH nQY6OAzbDTj1B9L4XiywVWOR9LyCwRF9ghQW5zqxMi3Rb3rLFTRDBozRS ZBHiEe1JDy80XQnotqJbHAdsMUJYifl0uZxMVL64lvkHxv/b76/lW/HRB PUcWqGpmfrAREDqntNAO2eH9Pk18EIKVvTqdZHcxvUjJDvwY4vtENYWbq o6V5UEMXMNVddHDosSYriH2CUExSk0SRw4wh2dO34HUx7+vFakoyassrG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="1345594" X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1345594" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 03:32:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1957534" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO ahunter-VirtualBox.home\044ger.corp.intel.com) ([10.251.219.88]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 03:32:08 -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>, Andi Kleen <ak@linux.intel.com>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH V5 05/12] perf tools: Enable evsel__is_aux_event() to work for S390_CPUMSF Date: Thu, 8 Feb 2024 13:31:20 +0200 Message-Id: <20240208113127.22216-6-adrian.hunter@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208113127.22216-1-adrian.hunter@intel.com> References: <20240208113127.22216-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: 1790330310593610815 X-GMAIL-MSGID: 1790330310593610815 |
Series |
perf/core: Add ability for an event to "pause" or "resume" AUX area tracing
|
|
Commit Message
Adrian Hunter
Feb. 8, 2024, 11:31 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> Acked-by: Ian Rogers <irogers@google.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 437386dedd5c..40be43f1f648 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -1099,8 +1099,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; }