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()
83 if ((text[len - 1] == 'c' || text[len - 1] == 'o') && in isbpf_suffix()
84 text[len - 2] == '.') in isbpf_suffix()
86 if (len > 4 && !strcmp(text + len - 4, ".obj")) in isbpf_suffix()
118 yylval->str = strdup(text + 1); in drv_str()
128 __yylval->str = strdup(text); \
130 yycolumn -= strlen(text); \
139 yylval->str = strdup(text); in pmu_str_check()
143 * which if it isn't a PMU returns PE_NAME. When testing the result of in pmu_str_check()
145 * an '!' is present in which case the text can't be a PMU name. in pmu_str_check()
155 return parse_state->fake_pmu in pmu_str_check()
158 return parse_state->fake_pmu && !strchr(text,'!') in pmu_str_check()
167 yylval->num = (type << 16) + config; in sym()
175 yylval->num = event; in tool()
183 yylval->num = type; in term()
189 yylloc->last_column = yylloc->first_column; \
190 yylloc->first_column = yycolumn; \
195 yycolumn -= yyleng; \
208 bpf_object [^,{}]+\.(o|bpf)[a-zA-Z0-9._]*
209 bpf_source [^,{}]+\.c[a-zA-Z0-9._]*
211 num_dec [0-9]+
212 num_hex 0x[a-fA-F0-9]+
213 num_raw_hex [a-fA-F0-9]+
214 name [a-zA-Z_*?\[\]][a-zA-Z0-9_*?.\[\]!]*
215 name_tag [\'][a-zA-Z_*?\[\]][a-zA-Z0-9_*?\-,\.\[\]:=]*[\']
216 name_minus [a-zA-Z_*?][a-zA-Z0-9\-_*?.:]*
217 drv_cfg_term [a-zA-Z0-9_\.]+(=[a-zA-Z0-9_*?\.:]+)?
218 /* If you add a modifier you need to update check_modifier() */
228 int start_token = _parse_state->stoken;
236 _parse_state->stoken = 0;
293 call-graph { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_CALLGRAPH); }
294 stack-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_STACKSIZE); }
295 max-stack { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_MAX_STACK); }
298 no-inherit { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOINHERIT); }
300 no-overwrite { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_NOOVERWRITE); }
302 aux-output { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_OUTPUT); }
303 aux-sample-size { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_AUX_SAMPLE_SIZE); }
304 metric-id { return term(yyscanner, PARSE_EVENTS__TERM_TYPE_METRIC_ID); }
335 cpu-cycles|cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); }
336 stalled-cycles-frontend|idle-cycles-frontend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT…
337 stalled-cycles-backend|idle-cycles-backend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_H…
339 cache-references { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_REFERENCES); }
340 cache-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_MISSES); }
341 branch-instructions|branches { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_INS…
342 branch-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_MISSES); }
343 bus-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES); }
344 ref-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_REF_CPU_CYCLES); }
345 cpu-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_CLOCK); }
346 task-clock { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_TASK_CLOCK); }
347 page-faults|faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS); }
348 minor-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MIN); }
349 major-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_PAGE_FAULTS_MAJ); }
350 context-switches|cs { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CONTEXT_SWITCHES);…
351 cpu-migrations|migrations { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CPU_MIGRATION…
352 alignment-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_ALIGNMENT_FAULTS); }
353 emulation-faults { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_EMULATION_FAULTS); }
358 bpf-output { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_BPF_OUTPUT); }
359 cgroup-switches { return sym(yyscanner, PERF_TYPE_SOFTWARE, PERF_COUNT_SW_CGROUP_SWITCHES); }
362 * We have to handle the kernel PMU event cycles-ct/cycles-t/mem-loads/mem-stores separately.
363 * Because the prefix cycles is mixed up with cpu-cycles.
366 cycles-ct |
367 cycles-t |
368 mem-loads |
369 mem-loads-aux |
370 mem-stores |
371 topdown-[a-z-]+ |
372 tx-capacity-[a-z-]+ |
373 el-capacity-[a-z-]+ { return str(yyscanner, PE_KERNEL_PMU_EVENT); }
375 L1-dcache|l1-d|l1d|L1-data |
376 L1-icache|l1-i|l1i|L1-instruction |
378 dTLB|d-tlb|Data-TLB |
379 iTLB|i-tlb|Instruction-TLB |
386 speculative-read|speculative-load |
401 - { return '-'; }