Lines Matching refs:yyscanner
155 #define YY_NEW_FILE parse_events_restart(yyin ,yyscanner )
201 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
288 void parse_events_restart (FILE *input_file ,yyscan_t yyscanner );
289 void parse_events__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
290 YY_BUFFER_STATE parse_events__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
291 void parse_events__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
292 void parse_events__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
293 void parse_events_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
294 void parse_events_pop_buffer_state (yyscan_t yyscanner );
296 static void parse_events_ensure_buffer_stack (yyscan_t yyscanner );
297 static void parse_events__load_buffer_state (yyscan_t yyscanner );
298 static void parse_events__init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
300 #define YY_FLUSH_BUFFER parse_events__flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
302 YY_BUFFER_STATE parse_events__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
303 YY_BUFFER_STATE parse_events__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
304 YY_BUFFER_STATE parse_events__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
306 void *parse_events_alloc (yy_size_t ,yyscan_t yyscanner );
307 void *parse_events_realloc (void *,yy_size_t ,yyscan_t yyscanner );
308 void parse_events_free (void * ,yyscan_t yyscanner );
315 parse_events_ensure_buffer_stack (yyscanner); \
317 parse_events__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
325 parse_events_ensure_buffer_stack (yyscanner); \
327 parse_events__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
342 static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
343 static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
344 static int yy_get_next_buffer (yyscan_t yyscanner );
345 static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
1040 char *parse_events_get_text(yyscan_t yyscanner);
1041 YYSTYPE *parse_events_get_lval(yyscan_t yyscanner);
1156 static int yy_init_globals (yyscan_t yyscanner );
1169 int parse_events_lex_destroy (yyscan_t yyscanner );
1171 int parse_events_get_debug (yyscan_t yyscanner );
1173 void parse_events_set_debug (int debug_flag ,yyscan_t yyscanner );
1175 YY_EXTRA_TYPE parse_events_get_extra (yyscan_t yyscanner );
1177 void parse_events_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
1179 FILE *parse_events_get_in (yyscan_t yyscanner );
1181 void parse_events_set_in (FILE * in_str ,yyscan_t yyscanner );
1183 FILE *parse_events_get_out (yyscan_t yyscanner );
1185 void parse_events_set_out (FILE * out_str ,yyscan_t yyscanner );
1187 int parse_events_get_leng (yyscan_t yyscanner );
1189 char *parse_events_get_text (yyscan_t yyscanner );
1191 int parse_events_get_lineno (yyscan_t yyscanner );
1193 void parse_events_set_lineno (int line_number ,yyscan_t yyscanner );
1195 YYSTYPE * parse_events_get_lval (yyscan_t yyscanner );
1197 void parse_events_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
1205 extern "C" int parse_events_wrap (yyscan_t yyscanner );
1207 extern int parse_events_wrap (yyscan_t yyscanner );
1211 static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner);
1214 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
1218 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
1224 static int yyinput (yyscan_t yyscanner );
1226 static int input (yyscan_t yyscanner );
1231 static void yy_push_state (int new_state ,yyscan_t yyscanner);
1233 static void yy_pop_state (yyscan_t yyscanner );
1235 static int yy_top_state (yyscan_t yyscanner );
1306 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
1318 (YYSTYPE * yylval_param ,yyscan_t yyscanner);
1321 (YYSTYPE * yylval_param , yyscan_t yyscanner)
1346 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1355 start_token = parse_events_get_extra(yyscanner);
1363 parse_events_set_extra(NULL, yyscanner);
1391 parse_events_ensure_buffer_stack (yyscanner);
1393 parse_events__create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1396 parse_events__load_buffer_state(yyscanner );
1470 str(yyscanner, PE_EVENT_NAME);
1487 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); }
1492 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_STALLED_CYCLES_FRONTEND); }
1497 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_STALLED_CYCLES_BACKEND); }
1502 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS); }
1507 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_REFERENCES); }
1512 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_MISSES); }
1517 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_INSTRUCTIONS); }
1522 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_MISSES); }
1527 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES); }
1532 { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
1537 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK); }
1542 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_TASK_CLOCK); }
1547 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS); }
1552 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MIN); }
1557 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MAJ); }
1562 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CONTEXT_SWITCHES); }
1567 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_MIGRATIONS); }
1572 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_ALIGNMENT_FAULTS); }
1577 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_EMULATION_FAULTS); }
1582 { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_DUMMY); }
1599 { return str(yyscanner, PE_NAME_CACHE_TYPE); }
1614 { return str(yyscanner, PE_NAME_CACHE_OP_RESULT); }
1620 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CONFIG); }
1625 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CONFIG1); }
1630 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CONFIG2); }
1635 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NAME); }
1640 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_SAMPLE_PERIOD); }
1645 { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_BRANCH_SAMPLE_TYPE); }
1660 { return str(yyscanner, PE_NAME); }
1671 { return raw(yyscanner); }
1676 { return value(yyscanner, 10); }
1681 { return value(yyscanner, 16); }
1686 { return str(yyscanner, PE_MODIFIER_EVENT); }
1691 { return str(yyscanner, PE_NAME); }
1738 { return str(yyscanner, PE_MODIFIER_BP); }
1748 { return value(yyscanner, 10); }
1753 { return value(yyscanner, 16); }
1823 yy_current_state = yy_get_previous_state( yyscanner );
1834 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1853 else switch ( yy_get_next_buffer( yyscanner ) )
1859 if ( parse_events_wrap(yyscanner ) )
1888 yy_current_state = yy_get_previous_state( yyscanner );
1898 yy_current_state = yy_get_previous_state( yyscanner );
1921 static int yy_get_next_buffer (yyscan_t yyscanner) in yy_get_next_buffer() argument
1923 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_get_next_buffer()
1991 parse_events_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner ); in yy_get_next_buffer()
2023 parse_events_restart(yyin ,yyscanner); in yy_get_next_buffer()
2040 …= (char *) parse_events_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner ); in yy_get_next_buffer()
2056 static yy_state_type yy_get_previous_state (yyscan_t yyscanner) in yy_get_previous_state() argument
2060 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_get_previous_state()
2089 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) in yy_try_NUL_trans() argument
2092 …struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon opti… in yy_try_NUL_trans()
2113 static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner) in yyunput() argument
2116 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyunput()
2153 static int yyinput (yyscan_t yyscanner) in yyinput() argument
2155 static int input (yyscan_t yyscanner) in yyinput()
2160 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yyinput()
2179 switch ( yy_get_next_buffer( yyscanner ) ) in yyinput()
2193 parse_events_restart(yyin ,yyscanner); in yyinput()
2199 if ( parse_events_wrap(yyscanner ) ) in yyinput()
2205 return yyinput(yyscanner); in yyinput()
2207 return input(yyscanner); in yyinput()
2231 void parse_events_restart (FILE * input_file , yyscan_t yyscanner) in parse_events_restart() argument
2233 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_restart()
2236 parse_events_ensure_buffer_stack (yyscanner); in parse_events_restart()
2238 parse_events__create_buffer(yyin,YY_BUF_SIZE ,yyscanner); in parse_events_restart()
2241 parse_events__init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); in parse_events_restart()
2242 parse_events__load_buffer_state(yyscanner ); in parse_events_restart()
2249 void parse_events__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in parse_events__switch_to_buffer() argument
2251 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events__switch_to_buffer()
2258 parse_events_ensure_buffer_stack (yyscanner); in parse_events__switch_to_buffer()
2271 parse_events__load_buffer_state(yyscanner ); in parse_events__switch_to_buffer()
2281 static void parse_events__load_buffer_state (yyscan_t yyscanner) in parse_events__load_buffer_state() argument
2283 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events__load_buffer_state()
2296 YY_BUFFER_STATE parse_events__create_buffer (FILE * file, int size , yyscan_t yyscanner) in parse_events__create_buffer() argument
2300 b = (YY_BUFFER_STATE) parse_events_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); in parse_events__create_buffer()
2309 b->yy_ch_buf = (char *) parse_events_alloc(b->yy_buf_size + 2 ,yyscanner ); in parse_events__create_buffer()
2315 parse_events__init_buffer(b,file ,yyscanner); in parse_events__create_buffer()
2324 void parse_events__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) in parse_events__delete_buffer() argument
2326 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events__delete_buffer()
2335 parse_events_free((void *) b->yy_ch_buf ,yyscanner ); in parse_events__delete_buffer()
2337 parse_events_free((void *) b ,yyscanner ); in parse_events__delete_buffer()
2348 static void parse_events__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) in parse_events__init_buffer() argument
2352 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events__init_buffer()
2354 parse_events__flush_buffer(b ,yyscanner); in parse_events__init_buffer()
2377 void parse_events__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) in parse_events__flush_buffer() argument
2379 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events__flush_buffer()
2398 parse_events__load_buffer_state(yyscanner ); in parse_events__flush_buffer()
2407 void parse_events_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) in parse_events_push_buffer_state() argument
2409 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_push_buffer_state()
2413 parse_events_ensure_buffer_stack(yyscanner); in parse_events_push_buffer_state()
2430 parse_events__load_buffer_state(yyscanner ); in parse_events_push_buffer_state()
2438 void parse_events_pop_buffer_state (yyscan_t yyscanner) in parse_events_pop_buffer_state() argument
2440 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_pop_buffer_state()
2444 parse_events__delete_buffer(YY_CURRENT_BUFFER ,yyscanner); in parse_events_pop_buffer_state()
2450 parse_events__load_buffer_state(yyscanner ); in parse_events_pop_buffer_state()
2458 static void parse_events_ensure_buffer_stack (yyscan_t yyscanner) in parse_events_ensure_buffer_stack() argument
2461 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_ensure_buffer_stack()
2472 , yyscanner); in parse_events_ensure_buffer_stack()
2492 , yyscanner); in parse_events_ensure_buffer_stack()
2508 YY_BUFFER_STATE parse_events__scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) in parse_events__scan_buffer() argument
2518 b = (YY_BUFFER_STATE) parse_events_alloc(sizeof( struct yy_buffer_state ) ,yyscanner ); in parse_events__scan_buffer()
2532 parse_events__switch_to_buffer(b ,yyscanner ); in parse_events__scan_buffer()
2545 YY_BUFFER_STATE parse_events__scan_string (yyconst char * yystr , yyscan_t yyscanner) in parse_events__scan_string() argument
2548 return parse_events__scan_bytes(yystr,strlen(yystr) ,yyscanner); in parse_events__scan_string()
2558 …ER_STATE parse_events__scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner) in parse_events__scan_bytes() argument
2567 buf = (char *) parse_events_alloc(n ,yyscanner ); in parse_events__scan_bytes()
2576 b = parse_events__scan_buffer(buf,n ,yyscanner); in parse_events__scan_bytes()
2588 static void yy_push_state (int new_state , yyscan_t yyscanner) in yy_push_state() argument
2590 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_push_state()
2599 yyg->yy_start_stack = (int *) parse_events_alloc(new_size ,yyscanner ); in yy_push_state()
2602 …->yy_start_stack = (int *) parse_events_realloc((void *) yyg->yy_start_stack,new_size ,yyscanner ); in yy_push_state()
2613 static void yy_pop_state (yyscan_t yyscanner) in yy_pop_state() argument
2615 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_pop_state()
2622 static int yy_top_state (yyscan_t yyscanner) in yy_top_state() argument
2624 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_top_state()
2632 static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) in yy_fatal_error() argument
2660 YY_EXTRA_TYPE parse_events_get_extra (yyscan_t yyscanner) in parse_events_get_extra() argument
2662 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_get_extra()
2669 int parse_events_get_lineno (yyscan_t yyscanner) in parse_events_get_lineno() argument
2671 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_get_lineno()
2682 int parse_events_get_column (yyscan_t yyscanner) in parse_events_get_column() argument
2684 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_get_column()
2695 FILE *parse_events_get_in (yyscan_t yyscanner) in parse_events_get_in() argument
2697 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_get_in()
2704 FILE *parse_events_get_out (yyscan_t yyscanner) in parse_events_get_out() argument
2706 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_get_out()
2713 int parse_events_get_leng (yyscan_t yyscanner) in parse_events_get_leng() argument
2715 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_get_leng()
2723 char *parse_events_get_text (yyscan_t yyscanner) in parse_events_get_text() argument
2725 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_get_text()
2733 void parse_events_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) in parse_events_set_extra() argument
2735 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_set_extra()
2743 void parse_events_set_lineno (int line_number , yyscan_t yyscanner) in parse_events_set_lineno() argument
2745 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_set_lineno()
2749 yy_fatal_error( "parse_events_set_lineno called with no buffer" , yyscanner); in parse_events_set_lineno()
2758 void parse_events_set_column (int column_no , yyscan_t yyscanner) in parse_events_set_column() argument
2760 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_set_column()
2764 yy_fatal_error( "parse_events_set_column called with no buffer" , yyscanner); in parse_events_set_column()
2775 void parse_events_set_in (FILE * in_str , yyscan_t yyscanner) in parse_events_set_in() argument
2777 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_set_in()
2781 void parse_events_set_out (FILE * out_str , yyscan_t yyscanner) in parse_events_set_out() argument
2783 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_set_out()
2787 int parse_events_get_debug (yyscan_t yyscanner) in parse_events_get_debug() argument
2789 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_get_debug()
2793 void parse_events_set_debug (int bdebug , yyscan_t yyscanner) in parse_events_set_debug() argument
2795 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_set_debug()
2801 YYSTYPE * parse_events_get_lval (yyscan_t yyscanner) in parse_events_get_lval() argument
2803 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_get_lval()
2807 void parse_events_set_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) in parse_events_set_lval() argument
2809 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_set_lval()
2877 static int yy_init_globals (yyscan_t yyscanner) in yy_init_globals() argument
2879 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in yy_init_globals()
2911 int parse_events_lex_destroy (yyscan_t yyscanner) in parse_events_lex_destroy() argument
2913 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; in parse_events_lex_destroy()
2917 parse_events__delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); in parse_events_lex_destroy()
2919 parse_events_pop_buffer_state(yyscanner); in parse_events_lex_destroy()
2923 parse_events_free(yyg->yy_buffer_stack ,yyscanner); in parse_events_lex_destroy()
2927 parse_events_free(yyg->yy_start_stack ,yyscanner ); in parse_events_lex_destroy()
2932 yy_init_globals( yyscanner); in parse_events_lex_destroy()
2935 parse_events_free ( yyscanner , yyscanner ); in parse_events_lex_destroy()
2936 yyscanner = NULL; in parse_events_lex_destroy()
2945 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) in yy_flex_strncpy() argument
2954 static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) in yy_flex_strlen() argument
2964 void *parse_events_alloc (yy_size_t size , yyscan_t yyscanner) in parse_events_alloc() argument
2969 void *parse_events_realloc (void * ptr, yy_size_t size , yyscan_t yyscanner) in parse_events_realloc() argument
2981 void parse_events_free (void * ptr , yyscan_t yyscanner) in parse_events_free() argument