From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 84DAD349CF2 for ; Sat, 25 Jul 2026 07:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784963301; cv=none; b=ucjsHn1vNFJD5CIgfyabBm25AMEKl7t4enefWoDEUs6DD8Zv+gnG/lPDc3LY1XRPl1qeb55wcp3sP7YwQz+9nTgR6mwi4O32mXkezUjpGmZskNIswXjPMbHOwpKcpe9aDE36B+1WjftfsqMcGf1qbQnab+scUzY3GZ3sc+soxh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784963301; c=relaxed/simple; bh=xSZENvTW6LyEUogaE/PTcXf8tKeKFpR1hqG0ki9+rnE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RJA4sPdefaeVXmIo7i1Wz10qm8wp9uEq4ivY8ubYgBv8cPN1HxJRmvc29h2Ah9KNlkq4gLIty2PTp3ASV+qRCaqzH5nNH237zxj0BTDoWsBZYjAp7UALAbI5DRec2JLHnQVMmVLYtE5JWxS7qvOGKEziQJRkXlcsS2hAQXMXdf8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=N1KWdFtc; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="N1KWdFtc" Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66P5Bmdh2079040; Sat, 25 Jul 2026 07:08:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=JhUwZ5+hbQDd+IhTW DzrLsbhKOFelGGsXy5ZWSPGtG4=; b=N1KWdFtcb0O58XYNuTVhKg74F4zfVsh79 2YUMw0OP6us5+xYkBJ2TYTpTfCmrm6egQAWb8hEevzbVtcoVuViW9n+m6/4o7zX3 xRgSxnqOPb0z3SHaccWxfEgMKEdkiaxZYrJ8hS4TfyLA0KQOj9e0yM1xS0VrGGJT yl4VoXRVyzUqdT9aaTFHJZmn1+JTEidpBUx6N9CnqYNY4YOgUDb5TbDHpVFlBMa3 fOKoOSuzk9m6DpiOBSg4Q5aaKsUH7qaGyURsOGnTem0GYhYjuo+U0yJOyyqD0b2F PDc8C+5tp1Sxy3HgoheKBwYiZKmoNj9ATVTcKNyXaHJNJ/ut6kqdw== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4fmmtq0jeu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 25 Jul 2026 07:08:13 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id 66P6uGPO018903; Sat, 25 Jul 2026 07:08:12 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4fmn2c0hff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 25 Jul 2026 07:08:12 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 66P788pt31982188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 25 Jul 2026 07:08:08 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 38E4920169; Sat, 25 Jul 2026 07:08:08 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D2EB020168; Sat, 25 Jul 2026 07:08:04 +0000 (GMT) Received: from localhost.localdomain (unknown [9.124.222.178]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTP; Sat, 25 Jul 2026 07:08:04 +0000 (GMT) From: Athira Rajeev To: acme@kernel.org, jolsa@kernel.org, adrian.hunter@intel.com, maddy@linux.ibm.com, irogers@google.com, namhyung@kernel.org Cc: linux-perf-users@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, atrajeev@linux.ibm.com, hbathini@linux.vnet.ibm.com, tejas05@linux.ibm.com, tshah@linux.ibm.com, venkat88@linux.ibm.com, usha.r2@ibm.com Subject: [PATCH V3 2/6] tools/perf: Add AUXTRACE recording support for powerpc HTM Date: Sat, 25 Jul 2026 12:37:43 +0530 Message-Id: <20260725070747.81435-3-atrajeev@linux.ibm.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20260725070747.81435-1-atrajeev@linux.ibm.com> References: <20260725070747.81435-1-atrajeev@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Authority-Analysis: v=2.4 cv=JcWMa0KV c=1 sm=1 tr=0 ts=6a6460dd cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=RAioF0-LDSMA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=uAbxVGIbfxUO_5tXvNgY:22 a=VnNF1IyMAAAA:8 a=aGAo5OZ2w6BHZ0xcKMQA:9 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI1MDA2MSBTYWx0ZWRfX8OLAwD07BWm4 fSFQywIIi5HKrPXRg/oZCbaHPJti8NuPdPlLpBShx3y8nmF7errn/xD564smOdXRpTNlIGSeS1y U0pfQiUOdfhopFHI1ETcWf0xbC+ttAX66X5TrR3VkA6PKbMZMFshEXT1pvp1/EaVVzFTJ3SYN9z IDkvEufncnni8h1j/GrNKrChcqU8EPs6D8ed4gWFw9r7avHXOlcRmm132/7Siuzp01mD10a/CFx 6RMD6rXlu1NUoR1oCztSq89m4+DtMHClGcWsI4Z5+LYG2mtwl+pNkPT/blCPaqu6zfGGRY3mEqq DMC2HXDy85pZfufBCYa41fa6l8tBiSSMK50SUmaiEYWoR8SpT0oZ2H64D8K66pB8ZuZCU+Ujm8J ko/gJHQ8P2ahE+ZyZyk8EtNUwg+5FDJdD4NSe7rNZCPWoqWqOiDBOngv378P9k7F4YMuFlTXwom PWfuh5HajjPUXyouyfA== X-Proofpoint-GUID: pRjeAABV-YzN5v9POYQAvtYeWe61ADY9 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI1MDA2MSBTYWx0ZWRfX1waYdlgXhoUX Yrwiy5yo5tZEo6yk9EbW5q9dJ+ersSlDTx0pfkIPwA1TWCn0BoJs8006faJuQ52EXCkhwehxaN3 KglEgPcQccq8JrwJV4u/ue/Zd17p8rU= X-Proofpoint-ORIG-GUID: 6KTVWteSONWlnok4gf1IdclJnHtwF_XN X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-25_02,2026-07-24_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607250061 Add powerpc perf tool support for the HTM PMU AUXTRACE recording path. Introduce htm_recording_init() and the associated auxtrace callbacks so perf record can create PERF_RECORD_AUXTRACE records for HTM data. htm_info_fill() stores the PMU type, number of HTM evsels, and a (cpu, attr.config) pair for each evsel into PERF_RECORD_AUXTRACE_INFO priv[]. The decode side reads these back to map each AUX buffer (identified by event->auxtrace.cpu) to the correct (node, chip, core) target when writing htm.bin.* output files. Update auxtrace_record__init() to detect HTM events and dispatch to the HTM-specific recording initializer. Signed-off-by: Athira Rajeev --- Changes in V3: - Switch HTM event detection in auxtrace_record__init() from strstarts(pos->name, "htm") to !strcmp(evsel__pmu_name(pos), "htm"), matching the kernel-assigned PMU name and preventing false matches on user-named events. - Switch htm_recording_options(), htm_nr_events(), and the loop in htm_info_fill() from strstarts(pos->name, "htm") to evsel__pmu_name(), consistent with the above and with patches 4 and 6. - Add #include to htm.c for zalloc(). - Set auxtrace_info->type = PERF_AUXTRACE_POWERPC_HTM directly in htm_info_fill(), removing the placeholder comment. (V2 deferred this to patch 5; it is cleaner to set it in the same patch that defines the enum.) - Set aux_watermark to half the AUX ring-buffer size (auxtrace_mmap_pages * page_size / 2) so there is always headroom for hardware to write while userspace drains. V2 set it to the full buffer size, risking data loss under back-pressure. - Add PERF_AUXTRACE_POWERPC_HTM to the enum auxtrace_type in util/auxtrace.h and add #include "powerpc-htm.h" plus a stub case PERF_AUXTRACE_POWERPC_HTM: (falls through to PERF_AUXTRACE_UNKNOWN) in util/auxtrace.c in this patch, so the enum is defined before it is used in htm_info_fill(). (V2 did this in patch 5.) Changes in V2: - htm_info_fill() now stores a (cpu, attr.config) pair for every HTM evsel into PERF_RECORD_AUXTRACE_INFO priv[]. V1 stored only the PMU type and a single config value; there was no per-CPU mapping. - The priv[] layout is formalised in util/powerpc-htm.h with enum constants POWERPC_HTM_PMU_TYPE, POWERPC_HTM_NUM_EVENTS, and POWERPC_HTM_EVENT_DATA and the helper macros HTM_AUXTRACE_PRIV_FIXED and HTM_AUXTRACE_PRIV_SIZE(n). V1 used bare numeric offsets. - PERF_SAMPLE_RAW is enabled in the recording options so that memory configuration records emitted by the kernel driver are captured alongside the AUX stream. V1 added this in a later patch. - PERF_AUXTRACE_POWERPC_HTM type constant is set in htm_info_fill() (wired up in patch 5 once the enum is defined). - Patch is now 2/6 instead of 2/9. tools/perf/arch/powerpc/util/Build | 1 + tools/perf/arch/powerpc/util/auxtrace.c | 9 ++ tools/perf/arch/powerpc/util/htm.c | 170 ++++++++++++++++++++++++ tools/perf/util/auxtrace.c | 2 + tools/perf/util/auxtrace.h | 1 + tools/perf/util/powerpc-htm.h | 43 ++++++ 6 files changed, 226 insertions(+) create mode 100644 tools/perf/arch/powerpc/util/htm.c create mode 100644 tools/perf/util/powerpc-htm.h diff --git a/tools/perf/arch/powerpc/util/Build b/tools/perf/arch/powerpc/util/Build index 7819c8f5af2d..297152591046 100644 --- a/tools/perf/arch/powerpc/util/Build +++ b/tools/perf/arch/powerpc/util/Build @@ -8,3 +8,4 @@ perf-util-$(CONFIG_LIBDW) += skip-callchain-idx.o perf-util-y += auxtrace.o perf-util-y += vpa-dtl.o +perf-util-y += htm.o diff --git a/tools/perf/arch/powerpc/util/auxtrace.c b/tools/perf/arch/powerpc/util/auxtrace.c index e04a0bd61755..74f0a37236b8 100644 --- a/tools/perf/arch/powerpc/util/auxtrace.c +++ b/tools/perf/arch/powerpc/util/auxtrace.c @@ -12,6 +12,7 @@ #include "../../util/debug.h" #include "../../util/auxtrace.h" #include "../../util/powerpc-vpadtl.h" +#include "../../util/powerpc-htm.h" #include "../../util/record.h" struct auxtrace_record *auxtrace_record__init(struct evlist *evlist, @@ -19,6 +20,7 @@ struct auxtrace_record *auxtrace_record__init(struct evlist *evlist, { struct evsel *pos; struct evsel *vpa_dtl_evsel = NULL; + struct evsel *htm_evsel = NULL; /* * Set err value to zero here. Any fail later @@ -32,11 +34,18 @@ struct auxtrace_record *auxtrace_record__init(struct evlist *evlist, /* Remember the first matching VPA DTL event */ if (!vpa_dtl_evsel) vpa_dtl_evsel = pos; + } else if (pos->name && (!strcmp(evsel__pmu_name(pos), "htm"))) { + pos->needs_auxtrace_mmap = true; + /* Remember the first matching HTM event */ + if (!htm_evsel) + htm_evsel = pos; } } if (vpa_dtl_evsel) return vpa_dtl_recording_init(vpa_dtl_evsel, err); + else if (htm_evsel) + return htm_recording_init(htm_evsel, err); return NULL; } diff --git a/tools/perf/arch/powerpc/util/htm.c b/tools/perf/arch/powerpc/util/htm.c new file mode 100644 index 000000000000..9a12a8fe8027 --- /dev/null +++ b/tools/perf/arch/powerpc/util/htm.c @@ -0,0 +1,170 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * HTM AUX tracing support + */ + +#include +#include +#include +#include +#include +#include +#include "../../util/evsel.h" +#include "../../util/evlist.h" +#include "../../util/session.h" +#include "../../util/debug.h" +#include "../../util/auxtrace.h" +#include "../../util/powerpc-htm.h" +#include "../../util/record.h" +#include /* page_size */ +#include + +#define KiB(x) ((x) * 1024) + +struct htm_recording { + struct auxtrace_record itr; + struct evsel *evsel; +}; + +static int +htm_recording_options(struct auxtrace_record *itr __maybe_unused, + struct evlist *evlist, + struct record_opts *opts) +{ + struct evsel *pos; + + opts->full_auxtrace = true; + + if (!opts->auxtrace_mmap_pages) { + opts->auxtrace_mmap_pages = KiB(128) / page_size; + if (opts->mmap_pages == UINT_MAX) + opts->mmap_pages = KiB(256) / page_size; + } + + evlist__for_each_entry(evlist, pos) { + if (!pos->name || (strcmp(evsel__pmu_name(pos), "htm"))) + continue; + pos->core.attr.aux_watermark = + opts->auxtrace_mmap_pages * (size_t)page_size / 2; + pos->core.attr.freq = 0; + pos->core.attr.sample_type |= PERF_SAMPLE_RAW; + pos->needs_auxtrace_mmap = true; + } + + return 0; +} + +/* Count htm evsels in the evlist */ +static int htm_nr_events(struct evlist *evlist) +{ + struct evsel *pos; + int n = 0; + + evlist__for_each_entry(evlist, pos) { + if (pos->name && (!strcmp(evsel__pmu_name(pos), "htm"))) + n++; + } + return n; +} + +static size_t htm_info_priv_size(struct auxtrace_record *itr __maybe_unused, + struct evlist *evlist) +{ + return HTM_AUXTRACE_PRIV_SIZE(htm_nr_events(evlist)); +} + +/* + * Fill the PERF_RECORD_AUXTRACE_INFO private data with: + * priv[POWERPC_HTM_PMU_TYPE] = pmu->type of the first htm evsel + * priv[POWERPC_HTM_NUM_EVENTS] = number of htm evsels + * priv[POWERPC_HTM_EVENT_DATA + n*2] = CPU for nth htm evsel + * priv[POWERPC_HTM_EVENT_DATA + n*2 + 1] = attr.config for nth htm evsel + * + * The CPU is the first CPU in the evsel's cpu map; for events opened with + * cpu=N there is exactly one CPU. The decode side uses event->auxtrace.cpu + * to look up the matching config and derive (node, chip, core) for the + * output file name. + */ +static int +htm_info_fill(struct auxtrace_record *itr, + struct perf_session *session, + struct perf_record_auxtrace_info *auxtrace_info, + size_t priv_size) +{ + struct htm_recording *htm_r = container_of(itr, struct htm_recording, itr); + struct evlist *evlist = session->evlist; + struct evsel *pos; + int n = 0; + int expected_n = htm_nr_events(evlist); + + if (priv_size != HTM_AUXTRACE_PRIV_SIZE(expected_n)) + return -EINVAL; + + auxtrace_info->type = PERF_AUXTRACE_POWERPC_HTM; + auxtrace_info->priv[POWERPC_HTM_PMU_TYPE] = htm_r->evsel->core.attr.type; + auxtrace_info->priv[POWERPC_HTM_NUM_EVENTS] = expected_n; + + evlist__for_each_entry(evlist, pos) { + struct perf_cpu_map *cpus; + int cpu; + + if (!pos->name || (strcmp(evsel__pmu_name(pos), "htm"))) + continue; + + /* + * Get the CPU this evsel is pinned to. For events opened + * with cpu=N, evsel__cpus() returns a single-entry map {N} + * at record time (not during replay). + */ + cpus = evsel__cpus(pos); + if (cpus && perf_cpu_map__nr(cpus) > 0) + cpu = perf_cpu_map__cpu(cpus, 0).cpu; + else + cpu = -1; + + auxtrace_info->priv[POWERPC_HTM_EVENT_DATA + n * 2] = cpu; + auxtrace_info->priv[POWERPC_HTM_EVENT_DATA + n * 2 + 1] = + pos->core.attr.config; + n++; + } + + return 0; +} + +static u64 htm_reference(struct auxtrace_record *itr __maybe_unused) +{ + return 0; +} + +static void htm_free(struct auxtrace_record *itr) +{ + struct htm_recording *htm_r = container_of(itr, struct htm_recording, itr); + + free(htm_r); +} + +struct auxtrace_record *htm_recording_init(struct evsel *pos, int *err) +{ + struct htm_recording *htm_r; + + /* + * To obtain the auxtrace buffer file descriptor, the auxtrace event + * must come first. + */ + evlist__to_front(pos->evlist, pos); + + htm_r = zalloc(sizeof(*htm_r)); + if (!htm_r) { + pr_debug("htm_recording allocation failed (-ENOMEM)\n"); + *err = -ENOMEM; + return NULL; + } + + htm_r->evsel = pos; + htm_r->itr.recording_options = htm_recording_options; + htm_r->itr.info_priv_size = htm_info_priv_size; + htm_r->itr.info_fill = htm_info_fill; + htm_r->itr.free = htm_free; + htm_r->itr.reference = htm_reference; + return &htm_r->itr; +} diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index 0b851f32e98c..31c0db933f61 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -56,6 +56,7 @@ #include "s390-cpumsf.h" #include "util/mmap.h" #include "powerpc-vpadtl.h" +#include "powerpc-htm.h" #include #include "symbol/kallsyms.h" @@ -1427,6 +1428,7 @@ int perf_event__process_auxtrace_info(const struct perf_tool *tool __maybe_unuse case PERF_AUXTRACE_VPA_DTL: err = powerpc_vpadtl_process_auxtrace_info(event, session); break; + case PERF_AUXTRACE_POWERPC_HTM: case PERF_AUXTRACE_UNKNOWN: default: return -EINVAL; diff --git a/tools/perf/util/auxtrace.h b/tools/perf/util/auxtrace.h index 6947f3f284c0..68b17802a419 100644 --- a/tools/perf/util/auxtrace.h +++ b/tools/perf/util/auxtrace.h @@ -46,6 +46,7 @@ enum auxtrace_type { PERF_AUXTRACE_S390_CPUMSF, PERF_AUXTRACE_HISI_PTT, PERF_AUXTRACE_VPA_DTL, + PERF_AUXTRACE_POWERPC_HTM, }; enum itrace_period_type { diff --git a/tools/perf/util/powerpc-htm.h b/tools/perf/util/powerpc-htm.h new file mode 100644 index 000000000000..18e39417d556 --- /dev/null +++ b/tools/perf/util/powerpc-htm.h @@ -0,0 +1,43 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __POWERPC_HTM_H +#define __POWERPC_HTM_H + +#include + +/* + * Layout of the private data in PERF_RECORD_AUXTRACE_INFO for HTM. + * + * priv[POWERPC_HTM_PMU_TYPE] = htm PMU type ID (pmu->type from kernel) + * priv[POWERPC_HTM_NUM_EVENTS] = number of htm evsels recorded (N) + * + * Followed by N pairs (2 u64 each): + * priv[POWERPC_HTM_EVENT_DATA + n*2 + 0] = CPU number for nth htm evsel + * priv[POWERPC_HTM_EVENT_DATA + n*2 + 1] = attr.config for nth htm evsel + * + * Total priv entries: POWERPC_HTM_EVENT_DATA + N * 2 + */ +enum { + POWERPC_HTM_PMU_TYPE = 0, + POWERPC_HTM_NUM_EVENTS, + POWERPC_HTM_EVENT_DATA, /* variable-length: 2 u64 per event */ +}; + +/* Fixed header size (everything before the per-event data) */ +#define HTM_AUXTRACE_PRIV_FIXED (POWERPC_HTM_EVENT_DATA * sizeof(u64)) + +/* Total priv size for N htm evsels */ +#define HTM_AUXTRACE_PRIV_SIZE(n) \ + (HTM_AUXTRACE_PRIV_FIXED + (n) * 2 * sizeof(u64)) + +struct evsel; +struct evlist; +union perf_event; +struct perf_session; +struct auxtrace_record; + +struct auxtrace_record *htm_recording_init(struct evsel *pos, int *err); + +int powerpc_htm_process_auxtrace_info(union perf_event *event, + struct perf_session *session); + +#endif /* __POWERPC_HTM_H */ -- 2.43.0