[PATCH 01/20] selftest/powerpc/pmu: Include mmap_buffer field as part of struct event
Kajol Jain
kjain at linux.ibm.com
Thu Jan 27 18:19:53 AEDT 2022
From: Athira Rajeev <atrajeev at linux.vnet.ibm.com>
To enable the capturing of samples as part of perf event,
add a new field "mmap_buffer" to "struct event". This
field is a place-holder for sample collection
Signed-off-by: Athira Rajeev <atrajeev at linux.vnet.ibm.com>
---
tools/testing/selftests/powerpc/pmu/event.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/testing/selftests/powerpc/pmu/event.h b/tools/testing/selftests/powerpc/pmu/event.h
index 302eaab51706..23d20340a160 100644
--- a/tools/testing/selftests/powerpc/pmu/event.h
+++ b/tools/testing/selftests/powerpc/pmu/event.h
@@ -22,6 +22,11 @@ struct event {
u64 running;
u64 enabled;
} result;
+ /*
+ * mmap buffer used while recording sample.
+ * Accessed as "struct perf_event_mmap_page"
+ */
+ void *mmap_buffer;
};
void event_init(struct event *e, u64 config);
--
2.27.0
More information about the Linuxppc-dev
mailing list