Lines Matching +full:a +full:- +full:za +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"
31 yylval->num = num; in __value()
49 yylval->str = strdup(text); in str()
52 * If a text tag specified on the command line in str()
60 yylval->str = strndup(&text[1], strlen(text) - 2); in str()
68 return str(scanner, state->match_legacy_cache_terms ? PE_LEGACY_CACHE : PE_NAME); in lc_str()
87 yylval->str = strdup(text + 1); in drv_str()
97 __yylval->str = strdup(text); \
99 yycolumn -= strlen(text); \
107 yylval->num = (type << 16) + config; in sym()
115 yylval->num = event; in tool()
123 yylval->num = type; in term()
132 yylval->hardware_term.str = strdup(text); in hw_term()
133 yylval->hardware_term.num = PERF_TYPE_HARDWARE + config; in hw_term()
139 yylloc->last_column = yylloc->first_column; \
140 yylloc->first_column = yycolumn; \
145 yycolumn -= yyleng; \
158 num_dec [0-9]+
159 num_hex 0x[a-fA-F0-9]+
160 num_raw_hex [a-fA-F0-9]+
161 name [a-zA-Z_*?\[\]][a-zA-Z0-9_*?.\[\]!\-]*
162 name_tag [\'][a-zA-Z_*?\[\]][a-zA-Z0-9_*?\-,\.\[\]:=]*[\']
163 name_minus [a-zA-Z_*?][a-zA-Z0-9\-_*?.:]*
164 drv_cfg_term [a-zA-Z0-9_\.]+(=[a-zA-Z0-9_*?\.:]+)?
166 * If you add a modifier you need to update check_modifier().
171 lc_type (L1-dcache|l1-d|l1d|L1-data|L1-icache|l1-i|l1i|L1-instruction|LLC|L2|dTLB|d-tlb|Data-TLB|i…
172 lc_op_result (load|loads|read|store|stores|write|prefetch|prefetches|speculative-read|speculative-l…
173 digit [0-9]
174 non_digit [^0-9]
181 int start_token = _parse_state->stoken;
189 _parse_state->stoken = 0;
237 call-graph { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CALLGRAPH); }
238 stack-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_STACKSIZE); }
239 max-stack { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_MAX_STACK); }
242 no-inherit { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOINHERIT); }
244 no-overwrite { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOOVERWRITE); }
246 aux-output { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_OUTPUT); }
247 aux-sample-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_SAMPLE_SIZE); }
248 metric-id { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_METRIC_ID); }
249 cpu-cycles|cycles { return hw_term(yyscanner, PERF_COUNT_HW_CPU_CYCLES); }
250 stalled-cycles-frontend|idle-cycles-frontend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCL…
251 stalled-cycles-backend|idle-cycles-backend { return hw_term(yyscanner, PERF_COUNT_HW_STALLED_CYCLES…
253 cache-references { return hw_term(yyscanner, PERF_COUNT_HW_CACHE_REFERENCES); }
254 cache-misses { return hw_term(yyscanner, PERF_COUNT_HW_CACHE_MISSES); }
255 branch-instructions|branches { return hw_term(yyscanner, PERF_COUNT_HW_BRANCH_INSTRUCTIONS); }
256 branch-misses { return hw_term(yyscanner, PERF_COUNT_HW_BRANCH_MISSES); }
257 bus-cycles { return hw_term(yyscanner, PERF_COUNT_HW_BUS_CYCLES); }
258 ref-cycles { return hw_term(yyscanner, PERF_COUNT_HW_REF_CPU_CYCLES); }
264 {lc_type}-{lc_op_result} { return lc_str(yyscanner, _parse_state); }
265 {lc_type}-{lc_op_result}-{lc_op_result} { return lc_str(yyscanner, _parse_state); }
281 * config terms. Fortunately config terms do not start with a numeric
302 cpu-cycles|cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); }
303 stalled-cycles-frontend|idle-cycles-frontend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT…
304 stalled-cycles-backend|idle-cycles-backend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_H…
306 cache-references { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_REFERENCES); }
307 cache-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_MISSES); }
308 branch-instructions|branches { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_INS…
309 branch-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_MISSES); }
310 bus-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES); }
311 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
312 cpu-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK); }
313 task-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_TASK_CLOCK); }
314 page-faults|faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS); }
315 minor-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MIN); }
316 major-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MAJ); }
317 context-switches|cs { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CONTEXT_SWITCHES);…
318 cpu-migrations|migrations { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_MIGRATION…
319 alignment-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_ALIGNMENT_FAULTS); }
320 emulation-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_EMULATION_FAULTS); }
325 bpf-output { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_BPF_OUTPUT); }
326 cgroup-switches { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CGROUP_SWITCHES); }
329 {lc_type}-{lc_op_result} { return str(yyscanner, PE_LEGACY_CACHE); }
330 {lc_type}-{lc_op_result}-{lc_op_result} { return str(yyscanner, PE_LEGACY_CACHE); }