From nobody Wed Dec 17 01:27:05 2025 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E02B16B748; Sun, 21 Jul 2024 20:21:41 +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=1721593302; cv=none; b=YU0py06KUM3seWU4MaMPMiI4G813jo/wa5boMzjJjtoDmvzjAvuIsYrYNvuKrFgpQxPsO+zakoKU2/GebUXf95LiS2a3mPO4XXP6KRQOcuvjmG5bXsfHA5LFW2VRU+Iqq5vxC+UXB00lsao/Z24c1gSFUaFGiuAkrqaqpF7Mwx4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721593302; c=relaxed/simple; bh=QCskOjoelAR8tSAW21Y50GMX3Wwb3ImxoRkugiEIraU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QhEc+rPgKcoTW0Fcw6SEcQSWhOnQ1YRcjg8/TFIQHJG7+tnUSjlQj4vQbJPZBIFge2LdW4l066zipYwVdI6F8ifN/4jBBjgEqZeXMgf8/YC7mt2P0B7T4I8wkwETWdUw2HMnOhtFSqThRV7FJrafURIvwSeNjyYJ4VRAIRE0958= 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 08A2511FB; Sun, 21 Jul 2024 13:22:01 -0700 (PDT) Received: from e132581.cambridge.arm.com (e132581.arm.com [10.2.76.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0CF023F73F; Sun, 21 Jul 2024 13:21:32 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , Namhyung Kim , Ian Rogers , Adrian Hunter , James Clark , Suzuki K Poulose , Mike Leach , John Garry , Will Deacon , Jiri Olsa , Mark Rutland , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v1 2/6] perf auxtrace arm: Set the 'auxtrace' flag for AUX events Date: Sun, 21 Jul 2024 21:21:09 +0100 Message-Id: <20240721202113.380750-3-leo.yan@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240721202113.380750-1-leo.yan@arm.com> References: <20240721202113.380750-1-leo.yan@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: quoted-printable Content-Type: text/plain; charset="utf-8" Originally, the 'auxtrace' flag in the PMU event is used for AUX area sampling. It indicates a PMU event is for AUX tracing. Set this flag for AUX trace events on Arm. Signed-off-by: Leo Yan Acked-by: Adrian Hunter --- 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 1c9541d01722..b7fa1245e242 100644 --- a/tools/perf/arch/arm/util/pmu.c +++ b/tools/perf/arch/arm/util/pmu.c @@ -25,6 +25,7 @@ void perf_pmu__arch_init(struct perf_pmu *pmu) /* add ETM default config here */ pmu->selectable =3D true; pmu->perf_event_attr_init_default =3D cs_etm_get_default_config; + pmu->auxtrace =3D true; #if defined(__aarch64__) } else if (strstarts(pmu->name, ARM_SPE_PMU_NAME)) { pmu->selectable =3D true; @@ -32,8 +33,10 @@ void perf_pmu__arch_init(struct perf_pmu *pmu) pmu->perf_event_attr_init_default =3D arm_spe_pmu_default_config; if (strstarts(pmu->name, "arm_spe_")) pmu->mem_events =3D perf_mem_events_arm; + pmu->auxtrace =3D true; } else if (strstarts(pmu->name, HISI_PTT_PMU_NAME)) { pmu->selectable =3D true; + pmu->auxtrace =3D true; #endif } #endif --=20 2.34.1