Linux Perf
pmu-flex.h
Go to the documentation of this file.
1 #ifndef perf_pmu_HEADER_H
2 #define perf_pmu_HEADER_H 1
3 #define perf_pmu_IN_HEADER 1
4 
5 #line 6 "util/pmu-flex.h"
6 
7 #line 8 "util/pmu-flex.h"
8 
9 #define YY_INT_ALIGNED short int
10 
11 /* A lexical scanner generated by flex */
12 
13 #define FLEX_SCANNER
14 #define YY_FLEX_MAJOR_VERSION 2
15 #define YY_FLEX_MINOR_VERSION 6
16 #define YY_FLEX_SUBMINOR_VERSION 0
17 #if YY_FLEX_SUBMINOR_VERSION > 0
18 #define FLEX_BETA
19 #endif
20 
21 /* First, we deal with platform-specific or compiler-specific issues. */
22 
23 /* begin standard C headers. */
24 #include <stdio.h>
25 #include <string.h>
26 #include <errno.h>
27 #include <stdlib.h>
28 
29 /* end standard C headers. */
30 
31 /* flex integer type definitions */
32 
33 #ifndef FLEXINT_H
34 #define FLEXINT_H
35 
36 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
37 
38 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
39 
40 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
41  * if you want the limit (max/min) macros for int types.
42  */
43 #ifndef __STDC_LIMIT_MACROS
44 #define __STDC_LIMIT_MACROS 1
45 #endif
46 
47 #include <inttypes.h>
48 typedef int8_t flex_int8_t;
49 typedef uint8_t flex_uint8_t;
50 typedef int16_t flex_int16_t;
51 typedef uint16_t flex_uint16_t;
52 typedef int32_t flex_int32_t;
53 typedef uint32_t flex_uint32_t;
54 #else
55 typedef signed char flex_int8_t;
56 typedef short int flex_int16_t;
57 typedef int flex_int32_t;
58 typedef unsigned char flex_uint8_t;
59 typedef unsigned short int flex_uint16_t;
60 typedef unsigned int flex_uint32_t;
61 
62 /* Limits of integral types. */
63 #ifndef INT8_MIN
64 #define INT8_MIN (-128)
65 #endif
66 #ifndef INT16_MIN
67 #define INT16_MIN (-32767-1)
68 #endif
69 #ifndef INT32_MIN
70 #define INT32_MIN (-2147483647-1)
71 #endif
72 #ifndef INT8_MAX
73 #define INT8_MAX (127)
74 #endif
75 #ifndef INT16_MAX
76 #define INT16_MAX (32767)
77 #endif
78 #ifndef INT32_MAX
79 #define INT32_MAX (2147483647)
80 #endif
81 #ifndef UINT8_MAX
82 #define UINT8_MAX (255U)
83 #endif
84 #ifndef UINT16_MAX
85 #define UINT16_MAX (65535U)
86 #endif
87 #ifndef UINT32_MAX
88 #define UINT32_MAX (4294967295U)
89 #endif
90 
91 #endif /* ! C99 */
92 
93 #endif /* ! FLEXINT_H */
94 
95 #ifdef __cplusplus
96 
97 /* The "const" storage-class-modifier is valid. */
98 #define YY_USE_CONST
99 
100 #else /* ! __cplusplus */
101 
102 /* C99 requires __STDC__ to be defined as 1. */
103 #if defined (__STDC__)
104 
105 #define YY_USE_CONST
106 
107 #endif /* defined (__STDC__) */
108 #endif /* ! __cplusplus */
109 
110 #ifdef YY_USE_CONST
111 #define yyconst const
112 #else
113 #define yyconst
114 #endif
115 
116 /* Size of default input buffer. */
117 #ifndef YY_BUF_SIZE
118 #ifdef __ia64__
119 /* On IA-64, the buffer size is 16k, not 8k.
120  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
121  * Ditto for the __ia64__ case accordingly.
122  */
123 #define YY_BUF_SIZE 32768
124 #else
125 #define YY_BUF_SIZE 16384
126 #endif /* __ia64__ */
127 #endif
128 
129 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
130 #define YY_TYPEDEF_YY_BUFFER_STATE
132 #endif
133 
134 #ifndef YY_TYPEDEF_YY_SIZE_T
135 #define YY_TYPEDEF_YY_SIZE_T
136 typedef size_t yy_size_t;
137 #endif
138 
139 extern yy_size_t perf_pmu_leng;
140 
141 extern FILE *perf_pmu_in, *perf_pmu_out;
142 
143 #ifndef YY_STRUCT_YY_BUFFER_STATE
144 #define YY_STRUCT_YY_BUFFER_STATE
145 struct yy_buffer_state
146  {
147  FILE *yy_input_file;
148 
149  char *yy_ch_buf; /* input buffer */
150  char *yy_buf_pos; /* current position in input buffer */
151 
152  /* Size of input buffer in bytes, not including room for EOB
153  * characters.
154  */
156 
157  /* Number of characters read into yy_ch_buf, not including EOB
158  * characters.
159  */
161 
162  /* Whether we "own" the buffer - i.e., we know we created it,
163  * and can realloc() it to grow it, and should free() it to
164  * delete it.
165  */
166  int yy_is_our_buffer;
167 
168  /* Whether this is an "interactive" input source; if so, and
169  * if we're using stdio for input, then we want to use getc()
170  * instead of fread(), to make sure we stop fetching input after
171  * each newline.
172  */
173  int yy_is_interactive;
174 
175  /* Whether we're considered to be at the beginning of a line.
176  * If so, '^' rules will be active on the next match, otherwise
177  * not.
178  */
179  int yy_at_bol;
180 
181  int yy_bs_lineno;
182  int yy_bs_column;
184  /* Whether to try to fill the input buffer when we reach the
185  * end of it.
186  */
187  int yy_fill_buffer;
188 
189  int yy_buffer_status;
190 
191  };
192 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
193 
194 void perf_pmu_restart (FILE *input_file );
195 void perf_pmu__switch_to_buffer (YY_BUFFER_STATE new_buffer );
196 YY_BUFFER_STATE perf_pmu__create_buffer (FILE *file,int size );
197 void perf_pmu__delete_buffer (YY_BUFFER_STATE b );
198 void perf_pmu__flush_buffer (YY_BUFFER_STATE b );
199 void perf_pmu_push_buffer_state (YY_BUFFER_STATE new_buffer );
200 void perf_pmu_pop_buffer_state (void );
201 
202 YY_BUFFER_STATE perf_pmu__scan_buffer (char *base,yy_size_t size );
203 YY_BUFFER_STATE perf_pmu__scan_string (yyconst char *yy_str );
204 YY_BUFFER_STATE perf_pmu__scan_bytes (yyconst char *bytes,yy_size_t len );
205 
206 void *perf_pmu_alloc (yy_size_t );
207 void *perf_pmu_realloc (void *,yy_size_t );
208 void perf_pmu_free (void * );
209 
210 /* Begin user sect3 */
211 
212 extern int perf_pmu_lineno;
213 
214 extern char *perf_pmu_text;
215 #ifdef yytext_ptr
216 #undef yytext_ptr
217 #endif
218 #define yytext_ptr perf_pmu_text
219 
220 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
221 #define INITIAL 0
222 
223 #endif
224 
225 #ifndef YY_NO_UNISTD_H
226 /* Special case for "unistd.h", since it is non-ANSI. We include it way
227  * down here because we want the user's section 1 to have been scanned first.
228  * The user has a chance to override it with an option.
229  */
230 #include <unistd.h>
231 #endif
232 
233 #ifndef YY_EXTRA_TYPE
234 #define YY_EXTRA_TYPE void *
235 #endif
236 
237 /* Accessor methods to globals.
238  These are made visible to non-reentrant scanners for convenience. */
239 
240 int perf_pmu_lex_destroy (void );
241 
242 int perf_pmu_get_debug (void );
243 
244 void perf_pmu_set_debug (int debug_flag );
245 
247 
248 void perf_pmu_set_extra (YY_EXTRA_TYPE user_defined );
249 
250 FILE *perf_pmu_get_in (void );
251 
252 void perf_pmu_set_in (FILE * _in_str );
253 
254 FILE *perf_pmu_get_out (void );
255 
256 void perf_pmu_set_out (FILE * _out_str );
257 
259 
260 char *perf_pmu_get_text (void );
261 
262 int perf_pmu_get_lineno (void );
263 
264 void perf_pmu_set_lineno (int _line_number );
265 
266 /* Macros after this point can all be overridden by user definitions in
267  * section 1.
268  */
269 
270 #ifndef YY_SKIP_YYWRAP
271 #ifdef __cplusplus
272 extern "C" int perf_pmu_wrap (void );
273 #else
274 extern int perf_pmu_wrap (void );
275 #endif
276 #endif
277 
278 #ifndef yytext_ptr
279 static void yy_flex_strncpy (char *,yyconst char *,int );
280 #endif
281 
282 #ifdef YY_NEED_STRLEN
283 static int yy_flex_strlen (yyconst char * );
284 #endif
285 
286 #ifndef YY_NO_INPUT
287 
288 #endif
289 
290 /* Amount of stuff to slurp up with each read. */
291 #ifndef YY_READ_BUF_SIZE
292 #ifdef __ia64__
293 /* On IA-64, the buffer size is 16k, not 8k */
294 #define YY_READ_BUF_SIZE 16384
295 #else
296 #define YY_READ_BUF_SIZE 8192
297 #endif /* __ia64__ */
298 #endif
299 
300 /* Number of entries by which start-condition stack grows. */
301 #ifndef YY_START_STACK_INCR
302 #define YY_START_STACK_INCR 25
303 #endif
304 
305 /* Default declaration of generated scanner - a define so the user can
306  * easily add parameters.
307  */
308 #ifndef YY_DECL
309 #define YY_DECL_IS_OURS 1
310 
311 extern int perf_pmu_lex (void);
312 
313 #define YY_DECL int perf_pmu_lex (void)
314 #endif /* !YY_DECL */
315 
316 /* yy_get_previous_state - get the state just before the EOB char was reached */
317 
318 #undef YY_NEW_FILE
319 #undef YY_FLUSH_BUFFER
320 #undef yy_set_bol
321 #undef yy_new_buffer
322 #undef yy_set_interactive
323 #undef YY_DO_BEFORE_ACTION
324 
325 #ifdef YY_DECL_IS_OURS
326 #undef YY_DECL_IS_OURS
327 #undef YY_DECL
328 #endif
329 
330 #line 38 "util/pmu.l"
331 
332 
333 #line 334 "util/pmu-flex.h"
334 #undef perf_pmu_IN_HEADER
335 #endif /* perf_pmu_HEADER_H */
FILE * perf_pmu_out
YY_BUFFER_STATE perf_pmu__scan_string(yyconst char *yy_str)
size_t size
Definition: evsel.c:60
void perf_pmu__flush_buffer(YY_BUFFER_STATE b)
void perf_pmu_set_in(FILE *_in_str)
YY_BUFFER_STATE perf_pmu__scan_buffer(char *base, yy_size_t size)
size_t yy_size_t
Definition: pmu-flex.h:136
void perf_pmu_set_out(FILE *_out_str)
char * perf_pmu_text
#define YY_EXTRA_TYPE
Definition: pmu-flex.h:234
FILE * perf_pmu_in
void perf_pmu_set_lineno(int _line_number)
char * perf_pmu_get_text(void)
int flex_int32_t
Definition: pmu-flex.h:57
void * perf_pmu_alloc(yy_size_t)
int perf_pmu_get_lineno(void)
struct yy_buffer_state * YY_BUFFER_STATE
Definition: pmu-flex.h:131
void perf_pmu__delete_buffer(YY_BUFFER_STATE b)
yy_size_t perf_pmu_get_leng(void)
size_t yy_size_t
YY_EXTRA_TYPE perf_pmu_get_extra(void)
int perf_pmu_get_debug(void)
unsigned int flex_uint32_t
Definition: pmu-flex.h:60
unsigned short int flex_uint16_t
Definition: pmu-flex.h:59
signed char flex_int8_t
Definition: pmu-flex.h:55
void perf_pmu_free(void *)
#define yyconst
Definition: pmu-flex.h:113
void perf_pmu__switch_to_buffer(YY_BUFFER_STATE new_buffer)
void perf_pmu_push_buffer_state(YY_BUFFER_STATE new_buffer)
int perf_pmu_lex(void)
yy_size_t perf_pmu_leng
FILE * perf_pmu_get_in(void)
int perf_pmu_lex_destroy(void)
int perf_pmu_lineno
short int flex_int16_t
Definition: pmu-flex.h:56
void perf_pmu_pop_buffer_state(void)
void perf_pmu_restart(FILE *input_file)
unsigned char flex_uint8_t
Definition: pmu-flex.h:58
YY_BUFFER_STATE perf_pmu__create_buffer(FILE *file, int size)
void perf_pmu_set_extra(YY_EXTRA_TYPE user_defined)
FILE * perf_pmu_get_out(void)
YY_BUFFER_STATE perf_pmu__scan_bytes(yyconst char *bytes, yy_size_t len)
void * perf_pmu_realloc(void *, yy_size_t)
void perf_pmu_set_debug(int debug_flag)
int perf_pmu_wrap(void)