hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/arch/powerpc/perf/hv-gpci.h
....@@ -2,33 +2,6 @@
22 #ifndef LINUX_POWERPC_PERF_HV_GPCI_H_
33 #define LINUX_POWERPC_PERF_HV_GPCI_H_
44
5
-#include <linux/types.h>
6
-
7
-/* From the document "H_GetPerformanceCounterInfo Interface" v1.07 */
8
-
9
-/* H_GET_PERF_COUNTER_INFO argument */
10
-struct hv_get_perf_counter_info_params {
11
- __be32 counter_request; /* I */
12
- __be32 starting_index; /* IO */
13
- __be16 secondary_index; /* IO */
14
- __be16 returned_values; /* O */
15
- __be32 detail_rc; /* O, only needed when called via *_norets() */
16
-
17
- /*
18
- * O, size each of counter_value element in bytes, only set for version
19
- * >= 0x3
20
- */
21
- __be16 cv_element_size;
22
-
23
- /* I, 0 (zero) for versions < 0x3 */
24
- __u8 counter_info_version_in;
25
-
26
- /* O, 0 (zero) if version < 0x3. Must be set to 0 when making hcall */
27
- __u8 counter_info_version_out;
28
- __u8 reserved[0xC];
29
- __u8 counter_value[];
30
-} __packed;
31
-
325 /*
336 * counter info version => fw version/reference (spec version)
347 *
....@@ -53,6 +26,7 @@
5326 #define REQUEST_FILE "../hv-gpci-requests.h"
5427 #define NAME_LOWER hv_gpci
5528 #define NAME_UPPER HV_GPCI
29
+#define ENABLE_EVENTS_COUNTERINFO_V6
5630 #include "req-gen/perf.h"
5731 #undef REQUEST_FILE
5832 #undef NAME_LOWER