1 /****************************************************************************
2 ****************************************************************************
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.
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
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
17 ****************************************************************************
18 ****************************************************************************/
22 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
23 #define rmb() asm volatile("lock; addl $0,0(%%esp)" : : : "memory")
24 #define cpu_relax() asm volatile("rep; nop" : : : "memory");
25 #define CPUINFO_PROC "model name"
26 #ifndef __NR_perf_event_open
27 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
28 #define __NR_perf_event_open 336
32 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
33 #define rmb() asm volatile("lfence" : : : "memory")
34 #define cpu_relax() asm volatile("rep; nop" : : : "memory");
35 #define CPUINFO_PROC "model name"
36 #ifndef __NR_perf_event_open
37 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
38 #define __NR_perf_event_open 298
42 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
43 #define rmb() asm volatile("sync" : : : "memory")
44 #define cpu_relax() asm volatile("" : : : "memory");
45 #define CPUINFO_PROC "cpu"
46 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define rmb() asm volatile("bcr 15,0" : : : "memory")
50 #define cpu_relax() asm volatile("" : : : "memory");
51 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #if defined(__SH4A__) || defined(__SH5__)
55 #define rmb() asm volatile("synco" : : : "memory")
56 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
58 #define rmb() asm volatile("" : : : "memory")
60 #define cpu_relax() asm volatile("" : : : "memory")
61 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
62 #define CPUINFO_PROC "cpu type"
65 #define rmb() asm volatile("" : : : "memory")
66 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
67 #define cpu_relax() asm volatile("" : : : "memory");
68 #define CPUINFO_PROC "cpu"
71 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
72 #define rmb() asm volatile("" : : : "memory")
73 #define cpu_relax() asm volatile("" : : : "memory")
74 #define CPUINFO_PROC "cpu"
76 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
78 #define rmb() asm volatile("mb" : : : "memory")
79 #define cpu_relax() asm volatile("" : : : "memory")
80 #define CPUINFO_PROC "cpu model"
81 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define rmb() asm volatile("mf" : : : "memory")
85 #define cpu_relax() asm volatile("hint @pause" : : : "memory")
86 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
87 #define CPUINFO_PROC "model name"
90 #define rmb() ((void(*) (void)) 0xffff0fa0) ()
91 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
92 #define cpu_relax() asm volatile("" : : : "memory")
93 #define CPUINFO_PROC "Processor"
96 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
97 #define rmb() asm volatile("dmb ld" : : : "memory")
98 #define cpu_relax() asm volatile("yield" : : : "memory")
101 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
102 #define rmb() asm volatile(".set mips2\n\t" "sync\n\t" ".set mips0" : : : "memory")
103 #define cpu_relax() asm volatile("" : : : "memory")
104 #define CPUINFO_PROC "cpu model"
106 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
108 #define rmb() asm volatile("" : : : "memory")
109 #define cpu_relax() rmb()
110 #define CPUINFO_PROC "Processor"
111 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define rmb() asm volatile("" : : : "memory")
115 #define cpu_relax() asm volatile("" : : : "memory")
116 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
117 #define CPUINFO_PROC "CPU"
119 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
120 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
121 #define PR_TASK_PERF_EVENTS_DISABLE 31
122 #define PR_TASK_PERF_EVENTS_ENABLE 32
124 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
125 #define NSEC_PER_SEC 1000000000ULL
127 #ifndef NSEC_PER_USEC
128 #define NSEC_PER_USEC 1000ULL
129 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
133 #define unlikely(x) __builtin_expect(! ! (x), 0)
134 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
135 #define min(x,y) ({ typeof(x) _min1 = (x); typeof(y) _min2 = (y); (void) (& _min1 == & _min2); _min1 < _min2 ? _min1 : _min2; })
136 #define MAX_COUNTERS 256
137 #define MAX_NR_CPUS 256
138 struct ip_callchain {
139 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
143 struct branch_flags {
144 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
150 struct branch_entry {
153 struct branch_flags flags;
154 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
156 struct branch_stack {
158 struct branch_entry entries[0];
159 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
161 enum perf_call_graph_mode {
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
167 struct perf_record_opts {
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 struct perf_target target;
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
186 unsigned int mmap_pages;
187 unsigned int user_freq;
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
190 u64 default_interval;
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */