/tools/perf/pmu-events/ |
D | jsmn.c | 47 static void jsmn_fill_token(jsmntok_t *token, jsmntype_t type, in jsmn_fill_token() argument 50 token->type = type; in jsmn_fill_token() 51 token->start = start; in jsmn_fill_token() 52 token->end = end; in jsmn_fill_token() 53 token->size = 0; in jsmn_fill_token() 63 jsmntok_t *token; in jsmn_parse_primitive() local 103 token = jsmn_alloc_token(parser, tokens, num_tokens); in jsmn_parse_primitive() 104 if (token == NULL) { in jsmn_parse_primitive() 108 jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos); in jsmn_parse_primitive() 120 jsmntok_t *token; in jsmn_parse_string() local [all …]
|
/tools/lib/traceevent/ |
D | event-parse.c | 1247 static int test_type_token(enum tep_event_type type, const char *token, in test_type_token() argument 1256 if (strcmp(token, expect_tok) != 0) { in test_type_token() 1258 expect_tok, token); in test_type_token() 1284 char *token; in __read_expected() local 1288 type = read_token(&token); in __read_expected() 1290 type = read_token_item(&token); in __read_expected() 1292 ret = test_type_token(type, token, expect, str); in __read_expected() 1294 free_token(token); in __read_expected() 1311 char *token; in event_read_name() local 1319 if (read_expect_type(TEP_EVENT_ITEM, &token) < 0) in event_read_name() [all …]
|
D | parse-filter.c | 63 char *token = NULL; in filter_read_token() local 66 free_token(token); in filter_read_token() 67 type = read_token(&token); in filter_read_token() 71 if (token && in filter_read_token() 72 (strcmp(token, "=") == 0 || strcmp(token, "!") == 0) && in filter_read_token() 77 free_token(token); in filter_read_token() 80 sprintf(*tok, "%c%c", *token, '~'); in filter_read_token() 81 free_token(token); in filter_read_token() 83 read_token(&token); in filter_read_token() 84 free_token(token); in filter_read_token() [all …]
|
/tools/lib/api/fs/ |
D | cgroup.c | 16 char *token, *saved_ptr = NULL; in cgroupfs_find_mountpoint() local 36 token = strtok_r(tokens, ",", &saved_ptr); in cgroupfs_find_mountpoint() 38 while (token != NULL) { in cgroupfs_find_mountpoint() 39 if (subsys && !strcmp(token, subsys)) { in cgroupfs_find_mountpoint() 43 token = strtok_r(NULL, ",", &saved_ptr); in cgroupfs_find_mountpoint()
|
/tools/testing/selftests/resctrl/ |
D | resctrl_tests.c | 77 char *token; in main() local 81 token = strtok(optarg, ","); in main() 87 while (token) { in main() 88 if (!strncmp(token, MBM_STR, sizeof(MBM_STR))) { in main() 90 } else if (!strncmp(token, MBA_STR, sizeof(MBA_STR))) { in main() 92 } else if (!strncmp(token, CQM_STR, sizeof(CQM_STR))) { in main() 94 } else if (!strncmp(token, CAT_STR, sizeof(CAT_STR))) { in main() 101 token = strtok(NULL, ","); in main()
|
D | mbm_test.c | 66 char *token = strtok(temp, ":\t"); in check_results() local 69 while (token) { in check_results() 70 token_array[i++] = token; in check_results() 71 token = strtok(NULL, ":\t"); in check_results()
|
D | mba_test.c | 119 char *token = strtok(temp, ":\t"); in check_results() local 122 while (token) { in check_results() 123 token_array[fields++] = token; in check_results() 124 token = strtok(NULL, ":\t"); in check_results()
|
D | cqm_test.c | 90 char *token = strtok(temp, ":\t"); in check_results() local 93 while (token) { in check_results() 94 token_array[fields++] = token; in check_results() 95 token = strtok(NULL, ":\t"); in check_results()
|
D | cat_test.c | 92 char *token = strtok(temp, ":\t"); in check_results() local 95 while (token) { in check_results() 96 token_array[fields++] = token; in check_results() 97 token = strtok(NULL, ":\t"); in check_results()
|
D | resctrl_val.c | 102 char *token[MAX_TOKENS]; in get_event_and_umask() local 106 token[0] = strtok(cas_count_cfg, "=,"); in get_event_and_umask() 109 token[i] = strtok(NULL, "=,"); in get_event_and_umask() 112 if (!token[i]) in get_event_and_umask() 114 if (strcmp(token[i], "event") == 0) { in get_event_and_umask() 117 strtol(token[i + 1], NULL, 16); in get_event_and_umask() 120 strtol(token[i + 1], NULL, 16); in get_event_and_umask() 122 if (strcmp(token[i], "umask") == 0) { in get_event_and_umask() 125 strtol(token[i + 1], NULL, 16); in get_event_and_umask() 128 strtol(token[i + 1], NULL, 16); in get_event_and_umask()
|
D | resctrlfs.c | 266 char *token = strtok(cpu_list_str, "-,"); in get_core_sibling() local 268 while (token) { in get_core_sibling() 269 sibling_cpu_no = atoi(token); in get_core_sibling() 273 token = strtok(NULL, "-,"); in get_core_sibling()
|
/tools/wmi/ |
D | dell-smbios-example.c | 53 static int find_token(__u16 token, __u16 *location, __u16 *value) in find_token() argument 61 ret = sprintf(value_sysfs, "%s/%04x_value", token_sysfs, token); in find_token() 75 ret = sprintf(location_sysfs, "%s/%04x_location", token_sysfs, token); in find_token() 109 static int query_token(__u16 token, struct dell_wmi_smbios_buffer *buffer) in query_token() argument 115 ret = find_token(token, &location, &value); in query_token() 117 printf("unable to find token %04x\n", token); in query_token() 124 __u16 token) in activate_token() argument 130 ret = find_token(token, &location, &value); in activate_token() 132 printf("unable to find token %04x\n", token); in activate_token()
|
/tools/perf/util/ |
D | expr.y | 35 %token EXPR_PARSE EXPR_OTHER EXPR_ERROR 36 %token <num> NUMBER 37 %token <str> ID 39 %token MIN MAX IF ELSE SMT_ON D_RATIO
|
D | expr.l | 13 static double __value(YYSTYPE *yylval, char *str, int token) in __value() argument 23 return token; in __value() 70 static int str(yyscan_t scanner, int token, int runtime) in str() argument 80 return token; in str()
|
D | pmu.y | 23 %token PP_CONFIG 24 %token PP_VALUE PP_ERROR
|
D | parse-events.y | 62 %token PE_START_EVENTS PE_START_TERMS 63 %token PE_VALUE PE_VALUE_SYM_HW PE_VALUE_SYM_SW PE_RAW PE_TERM 64 %token PE_VALUE_SYM_TOOL 65 %token PE_EVENT_NAME 66 %token PE_NAME 67 %token PE_BPF_OBJECT PE_BPF_SOURCE 68 %token PE_MODIFIER_EVENT PE_MODIFIER_BP 69 %token PE_NAME_CACHE_TYPE PE_NAME_CACHE_OP_RESULT 70 %token PE_PREFIX_MEM PE_PREFIX_RAW PE_PREFIX_GROUP 71 %token PE_ERROR [all …]
|
D | parse-events.l | 23 static int __value(YYSTYPE *yylval, char *str, int base, int token) in __value() argument 33 return token; in __value() 44 static int str(yyscan_t scanner, int token) in str() argument 64 return token; in str() 113 static int drv_str(yyscan_t scanner, int token) in drv_str() argument 120 return token; in drv_str()
|
/tools/testing/selftests/powerpc/syscalls/ |
D | rtas_filter.c | 40 __be32 token; member 174 int i, rc, token; in rtas_call() local 179 token = rtas_token(name); in rtas_call() 180 if (token == RTAS_UNKNOWN_OP) { in rtas_call() 187 args.token = cpu_to_be32(token); in rtas_call()
|
/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.c | 224 char *tmp = param, *token; in parse_monitor_param() local 229 token = strtok(tmp, ","); in parse_monitor_param() 230 if (token == NULL) in parse_monitor_param() 232 if (strlen(token) >= MONITOR_NAME_LEN) { in parse_monitor_param() 234 " (%d) exceeded\n"), token, MONITOR_NAME_LEN); in parse_monitor_param() 239 if (!strcmp(monitors[num]->name, token)) { in parse_monitor_param() 240 dprint("Found requested monitor: %s\n", token); in parse_monitor_param()
|
/tools/bpf/ |
D | bpf_exp.y | 54 %token OP_LDB OP_LDH OP_LD OP_LDX OP_ST OP_STX OP_JMP OP_JEQ OP_JGT OP_JGE 55 %token OP_JSET OP_ADD OP_SUB OP_MUL OP_DIV OP_AND OP_OR OP_XOR OP_LSH OP_RSH 56 %token OP_RET OP_TAX OP_TXA OP_LDXB OP_MOD OP_NEG OP_JNEQ OP_JLT OP_JLE OP_LDI 57 %token OP_LDXI 59 %token K_PKT_LEN 61 %token ':' ',' '[' ']' '(' ')' 'x' 'a' '+' 'M' '*' '&' '#' '%' 63 %token extension number label
|
D | bpf_dbg.c | 1006 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()
|
/tools/testing/selftests/arm64/signal/ |
D | test_signals_utils.c | 128 si->si_addr, si->si_code, td->token, td->token - si->si_addr); in handle_signal_ok() 135 if (!td->sanity_disabled && !td->token) { in handle_signal_ok()
|
D | test_signals.h | 49 void *token; member
|
/tools/testing/selftests/netfilter/ |
D | nft_concat_range.sh | 1103 for token in $(nft list counter inet filter test); do 1104 [ ${found} -eq 1 ] && echo "${token}" && return 1105 [ "${token}" = "packets" ] && found=1 1112 for token in $(nft list counter netdev perf test); do 1113 [ ${found} -eq 1 ] && echo "${token}" && return 1114 [ "${token}" = "packets" ] && found=1
|
/tools/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 363 __u64 token; /* Use a token of 0 to undefine a mapping */ member
|