1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __PERF_HEADER_H
20 #define __PERF_HEADER_H
21 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
22 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
23 enum {
24   HEADER_RESERVED = 0,
25   HEADER_FIRST_FEATURE = 1,
26   HEADER_TRACING_DATA = 1,
27 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
28   HEADER_BUILD_ID,
29   HEADER_HOSTNAME,
30   HEADER_OSRELEASE,
31   HEADER_VERSION,
32 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
33   HEADER_ARCH,
34   HEADER_NRCPUS,
35   HEADER_CPUDESC,
36   HEADER_CPUID,
37 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
38   HEADER_TOTAL_MEM,
39   HEADER_CMDLINE,
40   HEADER_EVENT_DESC,
41   HEADER_CPU_TOPOLOGY,
42 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
43   HEADER_NUMA_TOPOLOGY,
44   HEADER_BRANCH_STACK,
45   HEADER_PMU_MAPPINGS,
46   HEADER_GROUP_DESC,
47 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
48   HEADER_LAST_FEATURE,
49   HEADER_FEAT_BITS = 256,
50 };
51 enum perf_header_version {
52 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
53   PERF_HEADER_VERSION_1,
54   PERF_HEADER_VERSION_2,
55 };
56 struct perf_file_section {
57 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
58   u64 offset;
59   u64 size;
60 };
61 struct perf_file_header {
62 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
63   u64 magic;
64   u64 size;
65   u64 attr_size;
66   struct perf_file_section attrs;
67 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
68   struct perf_file_section data;
69   struct perf_file_section event_types;
70   DECLARE_BITMAP(adds_features, HEADER_FEAT_BITS);
71 };
72 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
73 struct perf_pipe_file_header {
74   u64 magic;
75   u64 size;
76 };
77 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
78 struct perf_header;
79 struct perf_session_env {
80   char * hostname;
81   char * os_release;
82 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
83   char * version;
84   char * arch;
85   int nr_cpus_online;
86   int nr_cpus_avail;
87 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
88   char * cpu_desc;
89   char * cpuid;
90   unsigned long long total_mem;
91   int nr_cmdline;
92 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
93   char * cmdline;
94   int nr_sibling_cores;
95   char * sibling_cores;
96   int nr_sibling_threads;
97 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
98   char * sibling_threads;
99   int nr_numa_nodes;
100   char * numa_nodes;
101   int nr_pmu_mappings;
102 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
103   char * pmu_mappings;
104   int nr_groups;
105 };
106 struct perf_header {
107 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
108   enum perf_header_version version;
109   bool needs_swap;
110   u64 data_offset;
111   u64 data_size;
112 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
113   u64 feat_offset;
114   DECLARE_BITMAP(adds_features, HEADER_FEAT_BITS);
115   struct perf_session_env env;
116 };
117 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
118 struct perf_evlist;
119 struct perf_session;
120 #endif
121 
122