Linux Perf
parse-events-flex.h
Go to the documentation of this file.
1 #ifndef parse_events_HEADER_H
2 #define parse_events_HEADER_H 1
3 #define parse_events_IN_HEADER 1
4 
5 #line 6 "util/parse-events-flex.h"
6 
7 #line 8 "util/parse-events-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 /* An opaque pointer. */
117 #ifndef YY_TYPEDEF_YY_SCANNER_T
118 #define YY_TYPEDEF_YY_SCANNER_T
119 typedef void* yyscan_t;
120 #endif
121 
122 /* For convenience, these vars (plus the bison vars far below)
123  are macros in the reentrant scanner. */
124 #define yyin yyg->yyin_r
125 #define yyout yyg->yyout_r
126 #define yyextra yyg->yyextra_r
127 #define yyleng yyg->yyleng_r
128 #define yytext yyg->yytext_r
129 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
130 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
131 #define yy_flex_debug yyg->yy_flex_debug_r
132 
133 /* Size of default input buffer. */
134 #ifndef YY_BUF_SIZE
135 #ifdef __ia64__
136 /* On IA-64, the buffer size is 16k, not 8k.
137  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
138  * Ditto for the __ia64__ case accordingly.
139  */
140 #define YY_BUF_SIZE 32768
141 #else
142 #define YY_BUF_SIZE 16384
143 #endif /* __ia64__ */
144 #endif
145 
146 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
147 #define YY_TYPEDEF_YY_BUFFER_STATE
149 #endif
150 
151 #ifndef YY_TYPEDEF_YY_SIZE_T
152 #define YY_TYPEDEF_YY_SIZE_T
153 typedef size_t yy_size_t;
154 #endif
155 
156 #ifndef YY_STRUCT_YY_BUFFER_STATE
157 #define YY_STRUCT_YY_BUFFER_STATE
158 struct yy_buffer_state
159  {
160  FILE *yy_input_file;
161 
162  char *yy_ch_buf; /* input buffer */
163  char *yy_buf_pos; /* current position in input buffer */
164 
165  /* Size of input buffer in bytes, not including room for EOB
166  * characters.
167  */
169 
170  /* Number of characters read into yy_ch_buf, not including EOB
171  * characters.
172  */
174 
175  /* Whether we "own" the buffer - i.e., we know we created it,
176  * and can realloc() it to grow it, and should free() it to
177  * delete it.
178  */
179  int yy_is_our_buffer;
180 
181  /* Whether this is an "interactive" input source; if so, and
182  * if we're using stdio for input, then we want to use getc()
183  * instead of fread(), to make sure we stop fetching input after
184  * each newline.
185  */
186  int yy_is_interactive;
187 
188  /* Whether we're considered to be at the beginning of a line.
189  * If so, '^' rules will be active on the next match, otherwise
190  * not.
191  */
192  int yy_at_bol;
193 
194  int yy_bs_lineno;
195  int yy_bs_column;
197  /* Whether to try to fill the input buffer when we reach the
198  * end of it.
199  */
200  int yy_fill_buffer;
201 
202  int yy_buffer_status;
203 
204  };
205 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
206 
207 void parse_events_restart (FILE *input_file ,yyscan_t yyscanner );
208 void parse_events__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
209 YY_BUFFER_STATE parse_events__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
210 void parse_events__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
211 void parse_events__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
212 void parse_events_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
213 void parse_events_pop_buffer_state (yyscan_t yyscanner );
214 
215 YY_BUFFER_STATE parse_events__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
216 YY_BUFFER_STATE parse_events__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
217 YY_BUFFER_STATE parse_events__scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
218 
219 void *parse_events_alloc (yy_size_t ,yyscan_t yyscanner );
220 void *parse_events_realloc (void *,yy_size_t ,yyscan_t yyscanner );
221 void parse_events_free (void * ,yyscan_t yyscanner );
222 
223 /* Begin user sect3 */
224 
225 #define yytext_ptr yytext_r
226 
227 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
228 #define INITIAL 0
229 #define mem 1
230 #define config 2
231 #define event 3
232 #define array 4
233 
234 #endif
235 
236 #ifndef YY_NO_UNISTD_H
237 /* Special case for "unistd.h", since it is non-ANSI. We include it way
238  * down here because we want the user's section 1 to have been scanned first.
239  * The user has a chance to override it with an option.
240  */
241 #include <unistd.h>
242 #endif
243 
244 #ifndef YY_EXTRA_TYPE
245 #define YY_EXTRA_TYPE void *
246 #endif
247 
248 int parse_events_lex_init (yyscan_t* scanner);
249 
250 int parse_events_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
251 
252 /* Accessor methods to globals.
253  These are made visible to non-reentrant scanners for convenience. */
254 
255 int parse_events_lex_destroy (yyscan_t yyscanner );
256 
257 int parse_events_get_debug (yyscan_t yyscanner );
258 
259 void parse_events_set_debug (int debug_flag ,yyscan_t yyscanner );
260 
262 
263 void parse_events_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
264 
265 FILE *parse_events_get_in (yyscan_t yyscanner );
266 
267 void parse_events_set_in (FILE * _in_str ,yyscan_t yyscanner );
268 
269 FILE *parse_events_get_out (yyscan_t yyscanner );
270 
271 void parse_events_set_out (FILE * _out_str ,yyscan_t yyscanner );
272 
274 
275 char *parse_events_get_text (yyscan_t yyscanner );
276 
277 int parse_events_get_lineno (yyscan_t yyscanner );
278 
279 void parse_events_set_lineno (int _line_number ,yyscan_t yyscanner );
280 
281 int parse_events_get_column (yyscan_t yyscanner );
282 
283 void parse_events_set_column (int _column_no ,yyscan_t yyscanner );
284 
285 YYSTYPE * parse_events_get_lval (yyscan_t yyscanner );
286 
287 void parse_events_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
288 
289  YYLTYPE *parse_events_get_lloc (yyscan_t yyscanner );
290 
291  void parse_events_set_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner );
292 
293 /* Macros after this point can all be overridden by user definitions in
294  * section 1.
295  */
296 
297 #ifndef YY_SKIP_YYWRAP
298 #ifdef __cplusplus
299 extern "C" int parse_events_wrap (yyscan_t yyscanner );
300 #else
301 extern int parse_events_wrap (yyscan_t yyscanner );
302 #endif
303 #endif
304 
305 #ifndef yytext_ptr
306 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
307 #endif
308 
309 #ifdef YY_NEED_STRLEN
310 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
311 #endif
312 
313 #ifndef YY_NO_INPUT
314 
315 #endif
316 
317 /* Amount of stuff to slurp up with each read. */
318 #ifndef YY_READ_BUF_SIZE
319 #ifdef __ia64__
320 /* On IA-64, the buffer size is 16k, not 8k */
321 #define YY_READ_BUF_SIZE 16384
322 #else
323 #define YY_READ_BUF_SIZE 8192
324 #endif /* __ia64__ */
325 #endif
326 
327 /* Number of entries by which start-condition stack grows. */
328 #ifndef YY_START_STACK_INCR
329 #define YY_START_STACK_INCR 25
330 #endif
331 
332 /* Default declaration of generated scanner - a define so the user can
333  * easily add parameters.
334  */
335 #ifndef YY_DECL
336 #define YY_DECL_IS_OURS 1
337 
338 extern int parse_events_lex \
339  (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner);
340 
341 #define YY_DECL int parse_events_lex \
342  (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
343 #endif /* !YY_DECL */
344 
345 /* yy_get_previous_state - get the state just before the EOB char was reached */
346 
347 #undef YY_NEW_FILE
348 #undef YY_FLUSH_BUFFER
349 #undef yy_set_bol
350 #undef yy_new_buffer
351 #undef yy_set_interactive
352 #undef YY_DO_BEFORE_ACTION
353 
354 #ifdef YY_DECL_IS_OURS
355 #undef YY_DECL_IS_OURS
356 #undef YY_DECL
357 #endif
358 
359 #line 323 "util/parse-events.l"
360 
361 
362 #line 363 "util/parse-events-flex.h"
363 #undef parse_events_IN_HEADER
364 #endif /* parse_events_HEADER_H */
void parse_events_set_lval(YYSTYPE *yylval_param, yyscan_t yyscanner)
int parse_events_wrap(yyscan_t yyscanner)
int parse_events_lex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner)
void * parse_events_alloc(yy_size_t, yyscan_t yyscanner)
int flex_int32_t
int parse_events_get_column(yyscan_t yyscanner)
size_t size
Definition: evsel.c:60
void parse_events__flush_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner)
void parse_events__switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
void * yyscan_t
char * parse_events_get_text(yyscan_t yyscanner)
signed char flex_int8_t
short int flex_int16_t
void parse_events_pop_buffer_state(yyscan_t yyscanner)
unsigned int flex_uint32_t
int parse_events_lex_destroy(yyscan_t yyscanner)
void parse_events_set_debug(int debug_flag, yyscan_t yyscanner)
size_t yy_size_t
void parse_events_set_lloc(YYLTYPE *yylloc_param, yyscan_t yyscanner)
YYLTYPE * parse_events_get_lloc(yyscan_t yyscanner)
unsigned short int flex_uint16_t
void parse_events_push_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
unsigned char flex_uint8_t
void parse_events_set_out(FILE *_out_str, yyscan_t yyscanner)
struct yy_buffer_state * YY_BUFFER_STATE
void parse_events_set_column(int _column_no, yyscan_t yyscanner)
int parse_events_get_debug(yyscan_t yyscanner)
void parse_events_free(void *, yyscan_t yyscanner)
int parse_events_lex_init_extra(YY_EXTRA_TYPE user_defined, yyscan_t *scanner)
int parse_events_get_lineno(yyscan_t yyscanner)
FILE * parse_events_get_out(yyscan_t yyscanner)
#define YY_EXTRA_TYPE
FILE * parse_events_get_in(yyscan_t yyscanner)
void parse_events__delete_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner)
#define yyconst
int parse_events_lex_init(yyscan_t *scanner)
YY_BUFFER_STATE parse_events__scan_string(yyconst char *yy_str, yyscan_t yyscanner)
YY_BUFFER_STATE parse_events__scan_buffer(char *base, yy_size_t size, yyscan_t yyscanner)
YY_EXTRA_TYPE parse_events_get_extra(yyscan_t yyscanner)
void parse_events_set_lineno(int _line_number, yyscan_t yyscanner)
size_t yy_size_t
YY_BUFFER_STATE parse_events__scan_bytes(yyconst char *bytes, yy_size_t len, yyscan_t yyscanner)
void parse_events_restart(FILE *input_file, yyscan_t yyscanner)
YY_BUFFER_STATE parse_events__create_buffer(FILE *file, int size, yyscan_t yyscanner)
void * parse_events_realloc(void *, yy_size_t, yyscan_t yyscanner)
void parse_events_set_extra(YY_EXTRA_TYPE user_defined, yyscan_t yyscanner)
void parse_events_set_in(FILE *_in_str, yyscan_t yyscanner)
yy_size_t parse_events_get_leng(yyscan_t yyscanner)
YYSTYPE * parse_events_get_lval(yyscan_t yyscanner)
void * yyscan_t