Lines Matching +full:- +full:a +full:- +full:z0 +full:- +full:9

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);
38 struct parse_events_error *error = parse_state->error;
47 yylval->num = num;
57 yylval->str = strdup(text);
60 * If a text tag specified on the command line
68 yylval->str = strndup(&text[1], strlen(text) - 2);
76 return str(scanner, state->match_legacy_cache_terms ? PE_LEGACY_CACHE : PE_NAME);
95 yylval->str = strdup(text + 1);
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;
128 yylval->term_type = type;
137 yylval->hardware_term.str = strdup(text);
138 yylval->hardware_term.num = PERF_TYPE_HARDWARE + config;
145 struct parse_events_error *error = parse_state->error;
180 * 0 - SAMPLE_IP can have arbitrary skid
181 * 1 - SAMPLE_IP must have constant skid
182 * 2 - SAMPLE_IP requested to have 0 skid
183 * 3 - SAMPLE_IP must have 0 skid
188 struct parse_events_error *error = parse_state->error;
210 yylval->mod = mod;
216 yylloc->last_column = yylloc->first_column; \
217 yylloc->first_column = yycolumn; \
222 yycolumn -= yyleng; \
235 num_dec [0-9]+
236 num_hex 0x[a-fA-F0-9]{1,16}
237 num_raw_hex [a-fA-F0-9]{1,16}
238 name [a-zA-Z0-9_*?\[\]][a-zA-Z0-9_*?.\[\]!\-]*
239 name_tag [\'][a-zA-Z0-9_*?\[\]][a-zA-Z0-9_*?\-,\.\[\]:=]*[\']
240 name_minus [a-zA-Z_*?][a-zA-Z0-9\-_*?.:]*
241 drv_cfg_term [a-zA-Z0-9_\.]+(=[a-zA-Z0-9_*?\.:]+)?
243 * If you add a modifier you need to update check_modifier().
248 lc_type (L1-dcache|l1-d|l1d|L1-data|L1-icache|l1-i|l1i|L1-instruction|LLC|L2|dTLB|d-tlb|Data-TLB|iTLB|i-tlb|Instruction-TLB|branch|branches|bpu|btb|bpc|node)
249 lc_op_result (load|loads|read|store|stores|write|prefetch|prefetches|speculative-read|speculative-load|refs|Reference|ops|access|misses|miss)
250 digit [0-9]
251 non_digit [^0-9]
258 int start_token = _parse_state->stoken;
266 _parse_state->stoken = 0;
314 call-graph { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CALLGRAPH); }
315 stack-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_STACKSIZE); }
316 max-stack { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_MAX_STACK); }
319 no-inherit { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOINHERIT); }
321 no-overwrite { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOOVERWRITE); }
323 aux-output { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_OUTPUT); }
324 aux-sample-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_SAMPLE_SIZE); }
325 metric-id { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_METRIC_ID); }
326 cpu-cycles|cycles { return hw_term(yyscanner, PERF_COUNT_HW_CPU_CYCLES); }
327 stalled-cycles-frontend|idle-cycles-frontend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCLES_FRONTEND); }
328 stalled-cycles-backend|idle-cycles-backend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCLES_BACKEND); }
330 cache-references { return hw_term(yyscanner, PERF_COUNT_HW_CACHE_REFERENCES); }
331 cache-misses { return hw_term(yyscanner, PERF_COUNT_HW_CACHE_MISSES); }
332 branch-instructions|branches { return hw_term(yyscanner, PERF_COUNT_HW_BRANCH_INSTRUCTIONS); }
333 branch-misses { return hw_term(yyscanner, PERF_COUNT_HW_BRANCH_MISSES); }
334 bus-cycles { return hw_term(yyscanner, PERF_COUNT_HW_BUS_CYCLES); }
335 ref-cycles { return hw_term(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); }
341 {lc_type}-{lc_op_result} { return lc_str(yyscanner, _parse_state); }
342 {lc_type}-{lc_op_result}-{lc_op_result} { return lc_str(yyscanner, _parse_state); }
358 * config terms. Fortunately config terms do not start with a numeric
379 cpu-cycles|cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); }
380 stalled-cycles-frontend|idle-cycles-frontend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_STALLED_CYCLES_FRONTEND); }
381 stalled-cycles-backend|idle-cycles-backend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_STALLED_CYCLES_BACKEND); }
383 cache-references { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_REFERENCES); }
384 cache-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_MISSES); }
385 branch-instructions|branches { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_INSTRUCTIONS); }
386 branch-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_MISSES); }
387 bus-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES); }
388 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
389 cpu-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK); }
390 task-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_TASK_CLOCK); }
391 page-faults|faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS); }
392 minor-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MIN); }
393 major-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MAJ); }
394 context-switches|cs { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CONTEXT_SWITCHES); }
395 cpu-migrations|migrations { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_MIGRATIONS); }
396 alignment-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_ALIGNMENT_FAULTS); }
397 emulation-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_EMULATION_FAULTS); }
399 bpf-output { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_BPF_OUTPUT); }
400 cgroup-switches { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CGROUP_SWITCHES); }
403 {lc_type}-{lc_op_result} { return str(yyscanner, PE_LEGACY_CACHE); }
404 {lc_type}-{lc_op_result}-{lc_op_result} { return str(yyscanner, PE_LEGACY_CACHE); }