Lines Matching +full:a +full:- +full:z0 +full:- +full:9
3 %option bison-bridge
6 %option bison-locations
16 #include "parse-events.h"
17 #include "parse-events-bison.h"
32 yylval->num = num; in __value()
50 yylval->str = strdup(text); in str()
53 * If a text tag specified on the command line in str()
61 yylval->str = strndup(&text[1], strlen(text) - 2); in str()
84 if ((text[len - 1] == 'c' || text[len - 1] == 'o') && in isbpf_suffix()
85 text[len - 2] == '.') in isbpf_suffix()
87 if (len > 4 && !strcmp(text + len - 4, ".obj")) in isbpf_suffix()
119 yylval->str = strdup(text + 1); in drv_str()
129 __yylval->str = strdup(text); \
131 yycolumn -= strlen(text); \
140 yylval->str = strdup(text); in pmu_str_check()
142 if (parse_state->fake_pmu) in pmu_str_check()
161 yylval->num = (type << 16) + config; in sym()
169 yylval->num = event; in tool()
177 yylval->num = type; in term()
183 yylloc->last_column = yylloc->first_column; \
184 yylloc->first_column = yycolumn; \
189 yycolumn -= yyleng; \
202 bpf_object [^,{}]+\.(o|bpf)[a-zA-Z0-9._]*
203 bpf_source [^,{}]+\.c[a-zA-Z0-9._]*
205 num_dec [0-9]+
206 num_hex 0x[a-fA-F0-9]+
207 num_raw_hex [a-fA-F0-9]+
208 name [a-zA-Z_*?\[\]][a-zA-Z0-9_*?.\[\]]*
209 name_tag [\'][a-zA-Z_*?\[\]][a-zA-Z0-9_*?\-,\.\[\]:=]*[\']
210 name_minus [a-zA-Z_*?][a-zA-Z0-9\-_*?.:]*
211 drv_cfg_term [a-zA-Z0-9_\.]+(=[a-zA-Z0-9_*?\.:]+)?
212 /* If you add a modifier you need to update check_modifier() */
222 int start_token = _parse_state->stoken;
230 _parse_state->stoken = 0;
287 call-graph { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CALLGRAPH); }
288 stack-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_STACKSIZE); }
289 max-stack { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_MAX_STACK); }
292 no-inherit { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOINHERIT); }
294 no-overwrite { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOOVERWRITE); }
296 aux-output { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_OUTPUT); }
297 aux-sample-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_SAMPLE_SIZE); }
328 cpu-cycles|cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); }
329 stalled-cycles-frontend|idle-cycles-frontend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT…
330 stalled-cycles-backend|idle-cycles-backend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_H…
332 cache-references { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_REFERENCES); }
333 cache-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_MISSES); }
334 branch-instructions|branches { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_INS…
335 branch-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_MISSES); }
336 bus-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES); }
337 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
338 cpu-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK); }
339 task-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_TASK_CLOCK); }
340 page-faults|faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS); }
341 minor-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MIN); }
342 major-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MAJ); }
343 context-switches|cs { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CONTEXT_SWITCHES);…
344 cpu-migrations|migrations { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_MIGRATION…
345 alignment-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_ALIGNMENT_FAULTS); }
346 emulation-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_EMULATION_FAULTS); }
349 bpf-output { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_BPF_OUTPUT); }
352 * We have to handle the kernel PMU event cycles-ct/cycles-t/mem-loads/mem-stores separately.
353 * Because the prefix cycles is mixed up with cpu-cycles.
356 cycles-ct |
357 cycles-t |
358 mem-loads |
359 mem-stores |
360 topdown-[a-z-]+ |
361 tx-capacity-[a-z-]+ |
362 el-capacity-[a-z-]+ { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
364 L1-dcache|l1-d|l1d|L1-data |
365 L1-icache|l1-i|l1i|L1-instruction |
367 dTLB|d-tlb|Data-TLB |
368 iTLB|i-tlb|Instruction-TLB |
375 speculative-read|speculative-load |
390 - { return '-'; }