Home
last modified time | relevance | path

Searched refs:token (Results 1 – 10 of 10) sorted by relevance

/tools/lib/traceevent/
Devent-parse.c1093 void pevent_free_token(char *token) in pevent_free_token() argument
1095 free_token(token); in pevent_free_token()
1126 static int test_type_token(enum event_type type, const char *token, in test_type_token() argument
1135 if (strcmp(token, expect_tok) != 0) { in test_type_token()
1137 expect_tok, token); in test_type_token()
1163 char *token; in __read_expected() local
1167 type = read_token(&token); in __read_expected()
1169 type = read_token_item(&token); in __read_expected()
1171 ret = test_type_token(type, token, expect, str); in __read_expected()
1173 free_token(token); in __read_expected()
[all …]
Dparse-filter.c68 static void free_token(char *token) in free_token() argument
70 pevent_free_token(token); in free_token()
76 char *token = NULL; in read_token() local
79 free_token(token); in read_token()
80 type = pevent_read_token(&token); in read_token()
84 if (token && in read_token()
85 (strcmp(token, "=") == 0 || strcmp(token, "!") == 0) && in read_token()
90 free_token(token); in read_token()
93 sprintf(*tok, "%c%c", *token, '~'); in read_token()
94 free_token(token); in read_token()
[all …]
Devent-parse.h755 void pevent_free_token(char *token);
/tools/perf/util/
Dcgroup.c15 char *token, *saved_ptr = NULL; in cgroupfs_find_mountpoint() local
33 token = strtok_r(tokens, ",", &saved_ptr); in cgroupfs_find_mountpoint()
35 while (token != NULL) { in cgroupfs_find_mountpoint()
36 if (!strcmp(token, "perf_event")) { in cgroupfs_find_mountpoint()
40 token = strtok_r(NULL, ",", &saved_ptr); in cgroupfs_find_mountpoint()
Dparse-events.y42 %token PE_START_EVENTS PE_START_TERMS
43 %token PE_VALUE PE_VALUE_SYM_HW PE_VALUE_SYM_SW PE_RAW PE_TERM
44 %token PE_EVENT_NAME
45 %token PE_NAME
46 %token PE_MODIFIER_EVENT PE_MODIFIER_BP
47 %token PE_NAME_CACHE_TYPE PE_NAME_CACHE_OP_RESULT
48 %token PE_PREFIX_MEM PE_PREFIX_RAW PE_PREFIX_GROUP
49 %token PE_ERROR
50 %token PE_PMU_EVENT_PRE PE_PMU_EVENT_SUF PE_KERNEL_PMU_EVENT
Dpmu.y23 %token PP_CONFIG PP_CONFIG1 PP_CONFIG2
24 %token PP_VALUE PP_ERROR
Dparse-events.l16 static int __value(YYSTYPE *yylval, char *str, int base, int token) in __value() argument
26 return token; in __value()
45 static int str(yyscan_t scanner, int token) in str() argument
51 return token; in str()
/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.c215 char *tmp = param, *token; in parse_monitor_param() local
220 token = strtok(tmp, ","); in parse_monitor_param()
221 if (token == NULL) in parse_monitor_param()
223 if (strlen(token) >= MONITOR_NAME_LEN) { in parse_monitor_param()
225 " (%d) exceeded\n"), token, MONITOR_NAME_LEN); in parse_monitor_param()
230 if (!strcmp(monitors[num]->name, token)) { in parse_monitor_param()
231 dprint("Found requested monitor: %s\n", token); in parse_monitor_param()
/tools/net/
Dbpf_exp.y53 %token OP_LDB OP_LDH OP_LD OP_LDX OP_ST OP_STX OP_JMP OP_JEQ OP_JGT OP_JGE
54 %token OP_JSET OP_ADD OP_SUB OP_MUL OP_DIV OP_AND OP_OR OP_XOR OP_LSH OP_RSH
55 %token OP_RET OP_TAX OP_TXA OP_LDXB OP_MOD OP_NEG OP_JNEQ OP_JLT OP_JLE OP_LDI
56 %token OP_LDXI
58 %token K_PKT_LEN K_PROTO K_TYPE K_NLATTR K_NLATTR_NEST K_MARK K_QUEUE K_HATYPE
59 %token K_RXHASH K_CPU K_IFIDX K_VLANT K_VLANP K_POFF K_RAND
61 %token ':' ',' '[' ']' '(' ')' 'x' 'a' '+' 'M' '*' '&' '#' '%'
63 %token number label
Dbpf_dbg.c1006 char sp, *token, separator = ','; in cmd_load_bpf() local
1019 token = bpf_string; in cmd_load_bpf()
1020 while ((token = strchr(token, separator)) && (++token)[0]) { in cmd_load_bpf()
1026 if (sscanf(token, "%hu %hhu %hhu %u,", in cmd_load_bpf()