selftests/powerpc/pmu: Include mmap_buffer field as part of struct event
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Thu, 27 Jan 2022 07:19:53 +0000 (12:49 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 28 Feb 2022 00:25:52 +0000 (11:25 +1100)
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@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220127072012.662451-2-kjain@linux.ibm.com
tools/testing/selftests/powerpc/pmu/event.h

index 302eaab51706667673a9d95381266de92c801deb..23d20340a1605de1e41dc1ae15a65660d65d109a 100644 (file)
@@ -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);