1 #line 2 "util/pmu-flex.c" 3 #line 4 "util/pmu-flex.c" 5 #define YY_INT_ALIGNED short int 9 #define yy_create_buffer perf_pmu__create_buffer 10 #define yy_delete_buffer perf_pmu__delete_buffer 11 #define yy_flex_debug perf_pmu__flex_debug 12 #define yy_init_buffer perf_pmu__init_buffer 13 #define yy_flush_buffer perf_pmu__flush_buffer 14 #define yy_load_buffer_state perf_pmu__load_buffer_state 15 #define yy_switch_to_buffer perf_pmu__switch_to_buffer 16 #define yyin perf_pmu_in 17 #define yyleng perf_pmu_leng 18 #define yylex perf_pmu_lex 19 #define yylineno perf_pmu_lineno 20 #define yyout perf_pmu_out 21 #define yyrestart perf_pmu_restart 22 #define yytext perf_pmu_text 23 #define yywrap perf_pmu_wrap 24 #define yyalloc perf_pmu_alloc 25 #define yyrealloc perf_pmu_realloc 26 #define yyfree perf_pmu_free 29 #define YY_FLEX_MAJOR_VERSION 2 30 #define YY_FLEX_MINOR_VERSION 6 31 #define YY_FLEX_SUBMINOR_VERSION 0 32 #if YY_FLEX_SUBMINOR_VERSION > 0 53 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 58 #ifndef __STDC_LIMIT_MACROS 59 #define __STDC_LIMIT_MACROS 1 79 #define INT8_MIN (-128) 82 #define INT16_MIN (-32767-1) 85 #define INT32_MIN (-2147483647-1) 88 #define INT8_MAX (127) 91 #define INT16_MAX (32767) 94 #define INT32_MAX (2147483647) 97 #define UINT8_MAX (255U) 100 #define UINT16_MAX (65535U) 103 #define UINT32_MAX (4294967295U) 118 #if defined (__STDC__) 126 #define yyconst const 139 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) 145 #define BEGIN (yy_start) = 1 + 2 * 151 #define YY_START (((yy_start) - 1) / 2) 152 #define YYSTATE YY_START 155 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) 158 #define YY_NEW_FILE perf_pmu_restart(perf_pmu_in ) 160 #define YY_END_OF_BUFFER_CHAR 0 169 #define YY_BUF_SIZE 32768 171 #define YY_BUF_SIZE 16384 177 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) 179 #ifndef YY_TYPEDEF_YY_BUFFER_STATE 180 #define YY_TYPEDEF_YY_BUFFER_STATE 184 #ifndef YY_TYPEDEF_YY_SIZE_T 185 #define YY_TYPEDEF_YY_SIZE_T 193 #define EOB_ACT_CONTINUE_SCAN 0 194 #define EOB_ACT_END_OF_FILE 1 195 #define EOB_ACT_LAST_MATCH 2 197 #define YY_LESS_LINENO(n) 198 #define YY_LINENO_REWIND_TO(ptr) 205 yy_size_t yyless_macro_arg = (n); \ 206 YY_LESS_LINENO(yyless_macro_arg);\ 207 *yy_cp = (yy_hold_char); \ 208 YY_RESTORE_YY_MORE_OFFSET \ 209 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ 210 YY_DO_BEFORE_ACTION; \ 214 #define unput(c) yyunput( c, (yytext_ptr) ) 216 #ifndef YY_STRUCT_YY_BUFFER_STATE 217 #define YY_STRUCT_YY_BUFFER_STATE 264 #define YY_BUFFER_NEW 0 265 #define YY_BUFFER_NORMAL 1 276 #define YY_BUFFER_EOF_PENDING 2 292 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ 293 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ 299 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] 328 #define YY_FLUSH_BUFFER perf_pmu__flush_buffer(YY_CURRENT_BUFFER ) 338 #define yy_new_buffer perf_pmu__create_buffer 340 #define yy_set_interactive(is_interactive) \ 342 if ( ! YY_CURRENT_BUFFER ){ \ 343 perf_pmu_ensure_buffer_stack (); \ 344 YY_CURRENT_BUFFER_LVALUE = \ 345 perf_pmu__create_buffer(perf_pmu_in,YY_BUF_SIZE ); \ 347 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ 350 #define yy_set_bol(at_bol) \ 352 if ( ! YY_CURRENT_BUFFER ){\ 353 perf_pmu_ensure_buffer_stack (); \ 354 YY_CURRENT_BUFFER_LVALUE = \ 355 perf_pmu__create_buffer(perf_pmu_in,YY_BUF_SIZE ); \ 357 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ 360 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) 372 int perf_pmu_lineno = 1;
378 #define yytext_ptr perf_pmu_text 383 #if defined(__GNUC__) && __GNUC__ >= 3 391 #define YY_DO_BEFORE_ACTION \ 392 (yytext_ptr) = yy_bp; \ 393 perf_pmu_leng = (size_t) (yy_cp - yy_bp); \ 394 (yy_hold_char) = *yy_cp; \ 396 (yy_c_buf_p) = yy_cp; 398 #define YY_NUM_RULES 10 399 #define YY_END_OF_BUFFER 11 409 0, 0, 11, 8, 9, 7, 5, 1, 6, 8,
410 1, 0, 0, 0, 0, 2, 3, 4, 0
415 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
416 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
417 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
418 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
419 1, 1, 1, 3, 4, 1, 1, 5, 6, 7,
420 5, 5, 5, 5, 5, 5, 5, 8, 1, 1,
421 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
422 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
423 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
424 1, 1, 1, 1, 1, 1, 1, 1, 9, 1,
426 1, 10, 11, 1, 12, 1, 1, 1, 1, 13,
427 14, 1, 1, 1, 1, 1, 1, 1, 1, 1,
428 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
429 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
430 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
439 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
440 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
441 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
447 1, 1, 1, 1, 2, 2, 2, 1, 1, 1,
453 0, 0, 23, 24, 24, 24, 24, 0, 24, 8,
454 0, 8, 10, 7, 7, 9, 24, 24, 24, 15
459 19, 1, 19, 19, 19, 19, 19, 20, 19, 19,
460 20, 19, 19, 19, 19, 19, 19, 19, 0, 19
465 4, 5, 6, 7, 8, 8, 8, 9, 10, 4,
466 4, 4, 4, 4, 17, 18, 11, 16, 15, 14,
467 13, 12, 19, 3, 19, 19, 19, 19, 19, 19,
468 19, 19, 19, 19, 19, 19, 19, 19
473 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
474 1, 1, 1, 1, 16, 16, 20, 15, 14, 13,
475 12, 10, 3, 19, 19, 19, 19, 19, 19, 19,
476 19, 19, 19, 19, 19, 19, 19, 19
483 int perf_pmu__flex_debug = 0;
488 #define REJECT reject_used_but_not_detected 489 #define yymore() yymore_used_but_not_detected 490 #define YY_MORE_ADJ 0 491 #define YY_RESTORE_YY_MORE_OFFSET 496 #include <linux/bitops.h> 505 num = strtoul(perf_pmu_text, NULL, base);
513 #line 514 "util/pmu-flex.c" 517 #ifndef YY_NO_UNISTD_H 525 #ifndef YY_EXTRA_TYPE 526 #define YY_EXTRA_TYPE void * 564 #ifndef YY_SKIP_YYWRAP 574 static void yyunput (
int c,
char *buf_ptr );
579 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
582 #ifdef YY_NEED_STRLEN 583 static int yy_flex_strlen (
yyconst char * );
589 static int yyinput (
void );
591 static int input (
void );
597 #ifndef YY_READ_BUF_SIZE 600 #define YY_READ_BUF_SIZE 16384 602 #define YY_READ_BUF_SIZE 8192 611 #define ECHO do { if (fwrite( perf_pmu_text, perf_pmu_leng, 1, perf_pmu_out )) {} } while (0) 618 #define YY_INPUT(buf,result,max_size) \ 619 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ 623 for ( n = 0; n < max_size && \ 624 (c = getc( perf_pmu_in )) != EOF && c != '\n'; ++n ) \ 627 buf[n++] = (char) c; \ 628 if ( c == EOF && ferror( perf_pmu_in ) ) \ 629 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 635 while ( (result = fread(buf, 1, max_size, perf_pmu_in))==0 && ferror(perf_pmu_in)) \ 637 if( errno != EINTR) \ 639 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 643 clearerr(perf_pmu_in); \ 655 #define yyterminate() return YY_NULL 659 #ifndef YY_START_STACK_INCR 660 #define YY_START_STACK_INCR 25 664 #ifndef YY_FATAL_ERROR 665 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) 674 #define YY_DECL_IS_OURS 1 678 #define YY_DECL int perf_pmu_lex (void) 684 #ifndef YY_USER_ACTION 685 #define YY_USER_ACTION 690 #define YY_BREAK break; 693 #define YY_RULE_SETUP \ 700 yy_state_type yy_current_state;
731 #line 26 "util/pmu.l" 734 #line 735 "util/pmu-flex.c" 753 if ( yy_accept[yy_current_state] )
758 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
760 yy_current_state = (int) yy_def[yy_current_state];
761 if ( yy_current_state >= 20 )
762 yy_c = yy_meta[(
unsigned int) yy_c];
764 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
767 while ( yy_base[yy_current_state] != 24 );
770 yy_act = yy_accept[yy_current_state];
775 yy_act = yy_accept[yy_current_state];
793 #line 28 "util/pmu.l" 794 {
return value(10); }
798 #line 29 "util/pmu.l" 803 #line 30 "util/pmu.l" 808 #line 31 "util/pmu.l" 813 #line 32 "util/pmu.l" 818 #line 33 "util/pmu.l" 823 #line 34 "util/pmu.l" 828 #line 35 "util/pmu.l" 834 #line 36 "util/pmu.l" 839 #line 38 "util/pmu.l" 842 #line 843 "util/pmu-flex.c" 849 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
880 yy_state_type yy_next_state;
903 yy_current_state = yy_next_state;
970 "fatal flex scanner internal error--no action found" );
992 "fatal flex scanner internal error--end of buffer missed" );
1018 for ( i = 0; i < number_to_move; ++i )
1019 *(dest++) = *(source++);
1032 while ( num_to_read <= 0 )
1038 int yy_c_buf_p_offset =
1045 if ( new_size <= 0 )
1060 "fatal error - scanner input buffer overflow" );
1103 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1119 yy_state_type yy_current_state;
1127 if ( yy_accept[yy_current_state] )
1132 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1134 yy_current_state = (int) yy_def[yy_current_state];
1135 if ( yy_current_state >= 20 )
1136 yy_c = yy_meta[(
unsigned int) yy_c];
1138 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1141 return yy_current_state;
1155 if ( yy_accept[yy_current_state] )
1160 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1162 yy_current_state = (int) yy_def[yy_current_state];
1163 if ( yy_current_state >= 20 )
1164 yy_c = yy_meta[(
unsigned int) yy_c];
1166 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1167 yy_is_jam = (yy_current_state == 19);
1169 return yy_is_jam ? 0 : yy_current_state;
1174 static void yyunput (
int c,
char * yy_bp )
1183 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->
yy_ch_buf + 2 )
1195 yy_cp += (int) (dest - source);
1196 yy_bp += (int) (dest - source);
1200 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->
yy_ch_buf + 2 )
1204 *--yy_cp = (char) c;
1215 static int yyinput (
void)
1217 static int input (
void)
1360 YY_FATAL_ERROR(
"out of dynamic memory in perf_pmu__create_buffer()" );
1369 YY_FATAL_ERROR(
"out of dynamic memory in perf_pmu__create_buffer()" );
1460 if (new_buffer == NULL)
1511 if (!(yy_buffer_stack)) {
1521 if ( ! (yy_buffer_stack) )
1522 YY_FATAL_ERROR(
"out of dynamic memory in perf_pmu_ensure_buffer_stack()" );
1541 if ( ! (yy_buffer_stack) )
1542 YY_FATAL_ERROR(
"out of dynamic memory in perf_pmu_ensure_buffer_stack()" );
1568 YY_FATAL_ERROR(
"out of dynamic memory in perf_pmu__scan_buffer()" );
1614 n = _yybytes_len + 2;
1617 YY_FATAL_ERROR(
"out of dynamic memory in perf_pmu__scan_bytes()" );
1619 for ( i = 0; i < _yybytes_len; ++i )
1620 buf[i] = yybytes[i];
1636 #ifndef YY_EXIT_FAILURE 1637 #define YY_EXIT_FAILURE 2 1642 (void) fprintf( stderr,
"%s\n", msg );
1653 yy_size_t yyless_macro_arg = (n); \ 1654 YY_LESS_LINENO(yyless_macro_arg);\ 1655 perf_pmu_text[perf_pmu_leng] = (yy_hold_char); \ 1656 (yy_c_buf_p) = perf_pmu_text + yyless_macro_arg; \ 1657 (yy_hold_char) = *(yy_c_buf_p); \ 1658 *(yy_c_buf_p) = '\0'; \ 1659 perf_pmu_leng = yyless_macro_arg; \ 1714 perf_pmu_lineno = _line_number;
1740 perf_pmu__flex_debug = _bdebug ;
1798 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
1802 for ( i = 0; i < n; ++i )
1807 #ifdef YY_NEED_STRLEN 1808 static int yy_flex_strlen (
yyconst char * s )
1811 for ( n = 0; s[n]; ++n )
1820 return (
void *)
malloc( size );
1833 return (
void *) realloc( (
char *) ptr, size );
1838 free( (
char *) ptr );
1841 #define YYTABLES_NAME "yytables" 1843 #line 38 "util/pmu.l"
YY_BUFFER_STATE perf_pmu__scan_string(yyconst char *yy_str)
#define YY_STATE_EOF(state)
static void perf_pmu__init_buffer(YY_BUFFER_STATE b, FILE *file)
void * perf_pmu_realloc(void *, yy_size_t)
unsigned char flex_uint8_t
static void yy_fatal_error(yyconst char msg[])
unsigned short int flex_uint16_t
void perf_pmu__flush_buffer(YY_BUFFER_STATE b)
static int yy_init_globals(void)
#define EOB_ACT_END_OF_FILE
#define YY_CURRENT_BUFFER
yy_size_t perf_pmu_get_leng(void)
char * perf_pmu_get_text(void)
static int yy_did_buffer_switch_on_eof
static void perf_pmu__load_buffer_state(void)
static yy_state_type yy_last_accepting_state
static yyconst flex_int16_t yy_chk[39]
static size_t yy_buffer_stack_max
YY_BUFFER_STATE perf_pmu__scan_buffer(char *base, yy_size_t size)
int perf_pmu_get_debug(void)
static yyconst flex_int16_t yy_accept[20]
x86 movsq based memset() in arch/x86/lib/memset_64.S") MEMSET_FN(memset_erms
static YY_BUFFER_STATE * yy_buffer_stack
#define EOB_ACT_LAST_MATCH
void perf_pmu_set_in(FILE *_in_str)
YY_EXTRA_TYPE perf_pmu_get_extra(void)
unsigned int flex_uint32_t
static void perf_pmu_ensure_buffer_stack(void)
static int value(int base)
static yyconst YY_CHAR yy_ec[256]
#define YY_CURRENT_BUFFER_LVALUE
static yyconst YY_CHAR yy_meta[15]
void perf_pmu_set_extra(YY_EXTRA_TYPE user_defined)
#define YY_END_OF_BUFFER_CHAR
#define YY_FATAL_ERROR(msg)
FILE * perf_pmu_get_in(void)
YY_BUFFER_STATE perf_pmu__scan_bytes(yyconst char *bytes, yy_size_t len)
void perf_pmu_set_debug(int debug_flag)
unsigned short int flex_uint16_t
#define YY_INPUT(buf, result, max_size)
static yyconst flex_uint16_t yy_nxt[39]
#define EOB_ACT_CONTINUE_SCAN
static yyconst flex_int16_t yy_def[21]
void perf_pmu__switch_to_buffer(YY_BUFFER_STATE new_buffer)
static char * yy_last_accepting_cpos
void perf_pmu_set_lineno(int _line_number)
static void yyunput(int c, char *buf_ptr)
void * perf_pmu_alloc(yy_size_t)
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
void perf_pmu__delete_buffer(YY_BUFFER_STATE b)
#define YY_RESTORE_YY_MORE_OFFSET
void perf_pmu_free(void *)
static int yy_get_next_buffer(void)
void perf_pmu_set_out(FILE *_out_str)
#define YY_DO_BEFORE_ACTION
static yyconst flex_uint16_t yy_base[21]
void perf_pmu_pop_buffer_state(void)
void perf_pmu_restart(FILE *input_file)
void perf_pmu_push_buffer_state(YY_BUFFER_STATE new_buffer)
int perf_pmu_lex_destroy(void)
FILE * perf_pmu_get_out(void)
int perf_pmu_get_lineno(void)
static size_t yy_buffer_stack_top
static yy_state_type yy_get_previous_state(void)
struct yy_buffer_state * YY_BUFFER_STATE
#define YY_BUFFER_EOF_PENDING
YY_BUFFER_STATE perf_pmu__create_buffer(FILE *file, int size)