Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp199378rdb; Thu, 8 Feb 2024 03:33:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6/D8VnOUYL/6It57xKanAyH5bvr8t6bpAyPV9MHUXazNYv9rG+n9NeZbCom4bI8xcVQcG X-Received: by 2002:a17:906:415b:b0:a38:1e9c:8268 with SMTP id l27-20020a170906415b00b00a381e9c8268mr5422597ejk.32.1707391987050; Thu, 08 Feb 2024 03:33:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707391987; cv=pass; d=google.com; s=arc-20160816; b=O3mfnSjvV44vWHxp/RCUzuCQ1D5qLLs/blEZdFtDFM1xrtWM5bgos72vT+tXnCPhzr OdqmLh2GQVyq4dQ2JDFHMPUAgthQ7FpTiBcRlsKbsQJTVbuGij/WT6bduDIHHHbo2YHC qWpOUtU7auhTaEY3jaqh1PMKMpiJlS83cUH0Di8ZfEZdqAjqArDhBm1ssYrmhYlvKK7U BNAHbhQl6SjsIz16alQTi+H7jG1JFqEEmVUkXUelQvf04c8CZfwjZfzV+XkNHs6ccoqA tOozFx8O7othzWGRohTo9WUDdrE/zsKwGW3bUnow5V0REKc/4UX/UX/Ad9oBN8R4YpCt 6rQw== 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=JkvxLZdGiBJfshup6gtoxYgDd6RCTn7cuZ6zQA+tdm0=; fh=OUomj5KnUOdxBzg/VP/n18ymRUrZG8GEb7m90BihJJI=; b=B6DoDq0BBfDaGTEcfDhUyIVkQECXDdFETHN5KTxk8F5QxUPJKeqdSoxeU5AGe1yb0d i7zerkSt6LAEveT3Pd0AnHszthZyvGieMjlCiRRP9yw7oRd7aS8y7SJ07C3oO3J0ZiVq HCJrLB6QAhGgNQh30+9qip09qQSXLlvoNlpqpP2UjDq3VqH9UiWBjdnQa3/oy5Dezuf+ zV1zjQp3x/fuPc6/4c2lr69+Qw5wNwZAZ3Lr10KP/HOzPcaUAZaEhrR0BhsW2/ykgCB/ M67YimRDyDkpvw+mBwX/yDPBMJzIjJFD+kgim5SNMhKA/f/w0WPG1EMP3hG1LGZZtGHJ r1Mg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OyCRs2B7; 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-57963-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57963-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCUZfJkPpORrRB1lTGOKyF1eTzUA3PjOCs0N4O/XbNjgvX1IRrRLcxeRfchLSUL4GHfG9xnHn2wv3b8KCz6Y4ZYdCzw7S4/h9DGjNagQfQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g17-20020a170906349100b00a3793cf942dsi2070098ejb.424.2024.02.08.03.33.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 03:33:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57963-linux.lists.archive=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=OyCRs2B7; 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-57963-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57963-linux.lists.archive=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 C84451F289C9 for ; Thu, 8 Feb 2024 11:33:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EE526F096; Thu, 8 Feb 2024 11:32:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OyCRs2B7" 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 622266F50F; Thu, 8 Feb 2024 11:32:08 +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=1707391930; cv=none; b=J4WzP58k2KpS2V+Wr43DV6NwkJMMWpx+FD4gdfFZuLM8E5ixJh3QHF8LUMpdR/mpB6ajIju+HNThbLnGzGZ7qWqa7i3fdS1KRj6Z0V92QSY5tCNn6PFX7KU0AqyLyQ/skMm5T5QXmBCR1QFUjLDAZigs++dz+tecN4ig9mETuNg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707391930; c=relaxed/simple; bh=ltm4BNE1kVbTScZPdTe85e8QfDDAc7SPDrUZuF1fT8Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=e4KuyrrWmPawjeoMCYjk0JO/VUaidlU/3/yM7Dbx0ta8bcMrIveoIF96F3uGXJuPZsOqYWEf04ueZqoJEHv8Hwest2++P2n1jamFlVgQdSWaoO1I6io8mki1Ri4Pei3V77YDWbmX3irqj8M9FMn/8ig9Yu2D2/b4sqYJLB29CXk= 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=OyCRs2B7; 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=1707391929; x=1738927929; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ltm4BNE1kVbTScZPdTe85e8QfDDAc7SPDrUZuF1fT8Y=; b=OyCRs2B7WPntVcGUgb1QfC1mCFWh5uQewg11Su78W3Tbu5M3NBQfywSb oedbolZCjwP9Gj3CmGuzQq5UNOOlK5n97hRoFjM4TqN2E8fBg76t4OON+ 4HJl7j4W+pOayRCiUnE0Y5RzrrVSBN9EFn+TbMbnSWATdlGWnZBPjvzW/ IwBWbnFDGOFDJdj4s8A5LQzJqwH+OLJQK6sI/8NN3RL7ltiyMy8fHJfSu LNl/oVlybhKUiH/zqijMHNw0+PlGIKqbjS/A+wqRoB2TXJuGLuA8nBdqu G2ez/UfOgB4xk1kuNEBwHMzU/A9nM8hbY3bk13fY6tiod5XlNjJ+41Tpb Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="1345552" X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1345552" 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:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1957506" 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:02 -0800 From: Adrian Hunter To: Peter Zijlstra Cc: Ingo Molnar , Mark Rutland , Alexander Shishkin , Heiko Carstens , Thomas Richter , Hendrik Brueckner , Suzuki K Poulose , Mike Leach , James Clark , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, Yicong Yang , Jonathan Cameron , Will Deacon , Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Ian Rogers , Andi Kleen , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: [PATCH V5 04/12] perf tools: Enable evsel__is_aux_event() to work for ARM/ARM64 Date: Thu, 8 Feb 2024 13:31:19 +0200 Message-Id: <20240208113127.22216-5-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: List-Subscribe: List-Unsubscribe: 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 Set pmu->auxtrace on ARM/ARM64 AUX area PMUs. evsel__is_aux_event() needs the setting to identify AUX area tracing selected events. 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 Acked-by: Ian Rogers --- tools/perf/arch/arm/util/pmu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/arch/arm/util/pmu.c b/tools/perf/arch/arm/util/pmu.c index 8b7cb68ba1a8..668a4310cb69 100644 --- a/tools/perf/arch/arm/util/pmu.c +++ b/tools/perf/arch/arm/util/pmu.c @@ -20,16 +20,19 @@ void perf_pmu__arch_init(struct perf_pmu *pmu __maybe_unused) #ifdef HAVE_AUXTRACE_SUPPORT if (!strcmp(pmu->name, CORESIGHT_ETM_PMU_NAME)) { /* add ETM default config here */ + pmu->auxtrace = true; pmu->selectable = true; pmu->perf_event_attr_init_default = cs_etm_get_default_config; #if defined(__aarch64__) } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) { + pmu->auxtrace = true; pmu->selectable = true; pmu->is_uncore = false; pmu->perf_event_attr_init_default = arm_spe_pmu_default_config; if (!strcmp(pmu->name, "arm_spe_0")) pmu->mem_events = perf_mem_events_arm; } else if (strstarts(pmu->name, HISI_PTT_PMU_NAME)) { + pmu->auxtrace = true; pmu->selectable = true; #endif } -- 2.34.1