Lines Matching +full:a +full:- +full:z0 +full:- +full:9 +full:-
3 %option bison-bridge
6 %option bison-locations
15 #include "parse-events.h"
16 #include "parse-events-bison.h"
26 return parse_events_get_column(scanner) - parse_events_get_leng(scanner); in get_column()
38 struct parse_events_error *error = parse_state->error; in value()
47 yylval->num = num; in value()
57 yylval->str = strdup(text); in str()
60 * If a text tag specified on the command line in str()
68 yylval->str = strndup(&text[1], strlen(text) - 2); in str()
76 return str(scanner, state->match_legacy_cache_terms ? PE_LEGACY_CACHE : PE_NAME); in lc_str()
95 yylval->str = strdup(text + 1); in drv_str()
101 * location debugging. If __alloc is non-zero set yylval to the text for the
110 __yylval->str = strdup(text); \
112 yycolumn -= strlen(text); \
120 yylval->num = (type << 16) + config; in sym()
128 yylval->num = event; in tool()
136 yylval->term_type = type; in term()
145 yylval->hardware_term.str = strdup(text); in hw_term()
146 yylval->hardware_term.num = PERF_TYPE_HARDWARE + config; in hw_term()
153 struct parse_events_error *error = parse_state->error; in modifiers_error()
188 * 0 - SAMPLE_IP can have arbitrary skid in modifiers()
189 * 1 - SAMPLE_IP must have constant skid in modifiers()
190 * 2 - SAMPLE_IP requested to have 0 skid in modifiers()
191 * 3 - SAMPLE_IP must have 0 skid in modifiers()
196 struct parse_events_error *error = parse_state->error; in modifiers()
218 yylval->mod = mod; in modifiers()
224 yylloc->last_column = yylloc->first_column; \
225 yylloc->first_column = yycolumn; \
230 yycolumn -= yyleng; \
243 num_dec [0-9]+
244 num_hex 0x[a-fA-F0-9]{1,16}
245 num_raw_hex [a-fA-F0-9]{1,16}
246 name [a-zA-Z0-9_*?\[\]][a-zA-Z0-9_*?.\[\]!\-]*
247 name_tag [\'][a-zA-Z0-9_*?\[\]][a-zA-Z0-9_*?\-,\.\[\]:=]*[\']
248 name_minus [a-zA-Z_*?][a-zA-Z0-9\-_*?.:]*
249 drv_cfg_term [a-zA-Z0-9_\.]+(=[a-zA-Z0-9_*?\.:]+)?
251 * If you add a modifier you need to update check_modifier().
256 lc_type (L1-dcache|l1-d|l1d|L1-data|L1-icache|l1-i|l1i|L1-instruction|LLC|L2|dTLB|d-tlb|Data-TLB|i…
257 lc_op_result (load|loads|read|store|stores|write|prefetch|prefetches|speculative-read|speculative-l…
258 digit [0-9]
259 non_digit [^0-9]
266 int start_token = _parse_state->stoken;
274 _parse_state->stoken = 0;
322 call-graph { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CALLGRAPH); }
323 stack-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_STACKSIZE); }
324 max-stack { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_MAX_STACK); }
327 no-inherit { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOINHERIT); }
329 no-overwrite { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOOVERWRITE); }
331 aux-output { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_OUTPUT); }
332 aux-sample-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_SAMPLE_SIZE); }
333 metric-id { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_METRIC_ID); }
334 cpu-cycles|cycles { return hw_term(yyscanner, PERF_COUNT_HW_CPU_CYCLES); }
335 stalled-cycles-frontend|idle-cycles-frontend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCL…
336 stalled-cycles-backend|idle-cycles-backend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCLES…
338 cache-references { return hw_term(yyscanner, PERF_COUNT_HW_CACHE_REFERENCES); }
339 cache-misses { return hw_term(yyscanner, PERF_COUNT_HW_CACHE_MISSES); }
340 branch-instructions|branches { return hw_term(yyscanner, PERF_COUNT_HW_BRANCH_INSTRUCTIONS); }
341 branch-misses { return hw_term(yyscanner, PERF_COUNT_HW_BRANCH_MISSES); }
342 bus-cycles { return hw_term(yyscanner, PERF_COUNT_HW_BUS_CYCLES); }
343 ref-cycles { return hw_term(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); }
349 {lc_type}-{lc_op_result} { return lc_str(yyscanner, _parse_state); }
350 {lc_type}-{lc_op_result}-{lc_op_result} { return lc_str(yyscanner, _parse_state); }
366 * config terms. Fortunately config terms do not start with a numeric
387 cpu-cycles|cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); }
388 stalled-cycles-frontend|idle-cycles-frontend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT…
389 stalled-cycles-backend|idle-cycles-backend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_H…
391 cache-references { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_REFERENCES); }
392 cache-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_MISSES); }
393 branch-instructions|branches { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_INS…
394 branch-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_MISSES); }
395 bus-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES); }
396 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
397 cpu-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK); }
398 task-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_TASK_CLOCK); }
399 page-faults|faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS); }
400 minor-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MIN); }
401 major-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MAJ); }
402 context-switches|cs { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CONTEXT_SWITCHES);…
403 cpu-migrations|migrations { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_MIGRATION…
404 alignment-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_ALIGNMENT_FAULTS); }
405 emulation-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_EMULATION_FAULTS); }
410 bpf-output { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_BPF_OUTPUT); }
411 cgroup-switches { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CGROUP_SWITCHES); }
414 {lc_type}-{lc_op_result} { return str(yyscanner, PE_LEGACY_CACHE); }
415 {lc_type}-{lc_op_result}-{lc_op_result} { return str(yyscanner, PE_LEGACY_CACHE); }