Lines Matching refs:text
38 char *text = parse_events_get_text(scanner); in value() local
40 return __value(yylval, text, base, PE_VALUE); in value()
46 char *text = parse_events_get_text(scanner); in str() local
48 if (text[0] != '\'') { in str()
49 yylval->str = strdup(text); in str()
60 yylval->str = strndup(&text[1], strlen(text) - 2); in str()
69 char *text = parse_events_get_text(scanner); in raw() local
71 if (perf_pmu__parse_check(text) == PMU_EVENT_SYMBOL) in raw()
74 return __value(yylval, text + 1, 16, PE_RAW); in raw()
77 static bool isbpf_suffix(char *text) in isbpf_suffix() argument
79 int len = strlen(text); in isbpf_suffix()
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()
93 char *text = parse_events_get_text(scanner); in isbpf() local
96 if (!isbpf_suffix(text)) in isbpf()
99 return stat(text, &st) == 0; in isbpf()
115 char *text = parse_events_get_text(scanner); in drv_str() local
118 yylval->str = strdup(text + 1); in drv_str()
125 char *text = parse_events_get_text(yyscanner); \
128 __yylval->str = strdup(text); \
130 yycolumn -= strlen(text); \
137 char *text = parse_events_get_text(scanner); in pmu_str_check() local
139 yylval->str = strdup(text); in pmu_str_check()
147 switch (perf_pmu__parse_check(text)) { in pmu_str_check()
158 return parse_state->fake_pmu && !strchr(text,'!') in pmu_str_check()