1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef LINUX_POWERPC_PERF_HV_24X7_CATALOG_H_
3 #define LINUX_POWERPC_PERF_HV_24X7_CATALOG_H_
5 #include <linux/types.h>
7 /* From document "24x7 Event and Group Catalog Formats Proposal" v0.15 */
9 struct hv_24x7_catalog_page_0
{
10 #define HV_24X7_CATALOG_MAGIC 0x32347837 /* "24x7" in ASCII */
12 __be32 length
; /* In 4096 byte pages */
13 __be64 version
; /* XXX: arbitrary? what's the meaning/useage/purpose? */
14 __u8 build_time_stamp
[16]; /* "YYYYMMDDHHMMSS\0\0" */
16 __be16 schema_data_offs
; /* in 4096 byte pages */
17 __be16 schema_data_len
; /* in 4096 byte pages */
18 __be16 schema_entry_count
;
20 __be16 event_data_offs
;
21 __be16 event_data_len
;
22 __be16 event_entry_count
;
24 __be16 group_data_offs
; /* in 4096 byte pages */
25 __be16 group_data_len
; /* in 4096 byte pages */
26 __be16 group_entry_count
;
28 __be16 formula_data_offs
; /* in 4096 byte pages */
29 __be16 formula_data_len
; /* in 4096 byte pages */
30 __be16 formula_entry_count
;
34 struct hv_24x7_event_data
{
35 __be16 length
; /* in bytes, must be a multiple of 16 */
37 __u8 domain
; /* Chip = 1, Core = 2 */
39 __be16 event_group_record_offs
; /* in bytes, must be 8 byte aligned */
40 __be16 event_group_record_len
; /* in bytes */
42 /* in bytes, offset from event_group_record */
43 __be16 event_counter_offs
;
45 /* verified_state, unverified_state, caveat_state, broken_state, ... */
48 __be16 primary_group_ix
;
50 __be16 event_name_len
;
52 /* __u8 event_name[event_name_len - 2]; */
53 /* __be16 event_description_len; */
54 /* __u8 event_desc[event_description_len - 2]; */
55 /* __be16 detailed_desc_len; */
56 /* __u8 detailed_desc[detailed_desc_len - 2]; */