| /tools/tracing/rtla/src/ |
| A D | actions.c | 133 char *token; in actions_parse() local 157 token = strtok(NULL, ","); in actions_parse() 162 if (token == NULL) in actions_parse() 165 if (strlen(token) > 5 && strncmp(token, "file=", 5) == 0) { in actions_parse() 173 if (token != NULL) in actions_parse() 180 while (token != NULL) { in actions_parse() 181 if (strlen(token) > 4 && strncmp(token, "num=", 4) == 0) { in actions_parse() 183 } else if (strlen(token) > 4 && strncmp(token, "pid=", 4) == 0) { in actions_parse() 202 if (token == NULL) in actions_parse() 204 if (strlen(token) > 8 && strncmp(token, "command=", 8) == 0) in actions_parse() [all …]
|
| /tools/testing/selftests/net/mptcp/ |
| A D | userspace_pm.sh | 286 local token 292 token=$(mptcp_lib_evts_get_info token "$evt" $e_type) 394 local token 398 token=$(mptcp_lib_evts_get_info token "$evt" $e_type) 506 local token 541 token=$(mptcp_lib_evts_get_info token "$evt" $e_type) 655 $new4_port token "$server4_token" 669 $new4_port token "$server4_token" 694 $app4_port token "$client4_token" 707 $app4_port token "$client4_token" [all …]
|
| A D | diag.sh | 206 local token 210 mptcp_lib_get_info_value "token" "token")" 212 token="$(ip netns exec $ns ./mptcp_diag -t $ss_token |\ 218 if [ -n "$ss_token" ] && [ "$ss_token" = "$token" ]; then 222 mptcp_lib_pr_fail "expected $ss_token found $token"
|
| A D | pm_nl_ctl.c | 341 u_int32_t token; in dsf() local 437 memcpy(RTA_DATA(rta), &token, 4); in dsf() 456 u_int32_t token; in csf() local 586 u_int32_t token; in remove_addr() local 634 u_int32_t token = UINT_MAX; in announce_addr() local 1084 u_int32_t token = 0; in get_addr() local 1117 if (token) { in get_addr() 1136 u_int32_t token = 0; in dump_addrs() local 1156 if (token) { in dump_addrs() 1324 u_int32_t token = 0; in set_flags() local [all …]
|
| /tools/testing/selftests/bpf/progs/ |
| A D | mptcp_sock.c | 10 __u32 token = 0; variable 16 __u32 token; member 56 storage->token = 0; in _sockops() 69 storage->token = msk->token; in _sockops() 85 token = msk->token; in BPF_PROG()
|
| A D | token_lsm.c | 15 int BPF_PROG(token_capable, struct bpf_token *token, int cap) in BPF_PROG() argument 25 int BPF_PROG(token_cmd, struct bpf_token *token, enum bpf_cmd cmd) in BPF_PROG() argument
|
| /tools/wmi/ |
| A 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/testing/selftests/bpf/prog_tests/ |
| A D | user_ringbuf.c | 378 __u64 *token; in test_user_ringbuf_discards_properly_ignored() local 388 token = user_ring_buffer__reserve(ringbuf, sizeof(*token)); in test_user_ringbuf_discards_properly_ignored() 389 if (!token) in test_user_ringbuf_discards_properly_ignored() 407 token = user_ring_buffer__reserve(ringbuf, sizeof(*token)); in test_user_ringbuf_discards_properly_ignored() 409 if (!ASSERT_OK_PTR(token, "new_token")) in test_user_ringbuf_discards_properly_ignored() 612 __u64 *token; in test_user_ringbuf_blocking_reserve() local 622 token = user_ring_buffer__reserve(ringbuf, sizeof(*token)); in test_user_ringbuf_blocking_reserve() 623 if (!token) in test_user_ringbuf_blocking_reserve() 626 *token = 0xdeadbeef; in test_user_ringbuf_blocking_reserve() 639 token = user_ring_buffer__reserve_blocking(ringbuf, sizeof(*token), 1000); in test_user_ringbuf_blocking_reserve() [all …]
|
| A D | lwt_helpers.h | 20 struct nstoken *token = open_netns(NETNS); \ 21 if (ASSERT_OK_PTR(token, "setns")) { \ 23 close_netns(token); \
|
| A D | cgroup_storage.c | 12 static int setup_network(struct nstoken **token) in setup_network() argument 15 *token = open_netns(TEST_NS); in setup_network() 16 if (!ASSERT_OK_PTR(*token, "open netns")) in setup_network()
|
| A D | mptcp.c | 67 __u32 token; member 121 static int verify_msk(int map_fd, int client_fd, __u32 token) in verify_msk() argument 127 if (!ASSERT_GT(token, 0, "invalid token")) in verify_msk() 142 if (!ASSERT_EQ(val.token, token, "unexpected token")) in verify_msk() 179 err += is_mptcp ? verify_msk(map_fd, client_fd, sock_skel->bss->token) : in run_test()
|
| /tools/testing/selftests/resctrl/ |
| A D | resctrl_tests.c | 249 char *token; in main() local 269 token = strtok(optarg, ","); in main() 277 while (token) { in main() 281 if (!strcasecmp(token, resctrl_tests[i]->name) || in main() 283 !strcasecmp(token, resctrl_tests[i]->group))) { in main() 292 printf("invalid test: %s\n", token); in main() 296 token = strtok(NULL, ","); in main()
|
| A D | cmt_test.c | 93 char *token = strtok(temp, ":\t"); in check_results() local 96 while (token) { in check_results() 97 token_array[fields++] = token; in check_results() 98 token = strtok(NULL, ":\t"); in check_results()
|
| A 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()
|
| A D | resctrl_val.c | 79 char *token[MAX_TOKENS]; in get_read_event_and_umask() local 82 token[0] = strtok(cas_count_cfg, "=,"); in get_read_event_and_umask() 85 token[i] = strtok(NULL, "=,"); in get_read_event_and_umask() 88 if (!token[i]) in get_read_event_and_umask() 90 if (strcmp(token[i], "event") == 0) in get_read_event_and_umask() 91 imc_counters_config[count].event = strtol(token[i + 1], NULL, 16); in get_read_event_and_umask() 92 if (strcmp(token[i], "umask") == 0) in get_read_event_and_umask() 93 imc_counters_config[count].umask = strtol(token[i + 1], NULL, 16); in get_read_event_and_umask()
|
| A D | mba_test.c | 145 char *token = strtok(temp, ":\t"); in check_results() local 148 while (token) { in check_results() 149 token_array[fields++] = token; in check_results() 150 token = strtok(NULL, ":\t"); in check_results()
|
| /tools/testing/selftests/powerpc/syscalls/ |
| A D | rtas_filter.c | 41 __be32 token; member 113 int i, rc, token; in rtas_call() local 118 token = rtas_token(name); in rtas_call() 119 if (token == RTAS_UNKNOWN_OP) { in rtas_call() 126 args.token = cpu_to_be32(token); in rtas_call()
|
| /tools/perf/util/ |
| A D | expr.l | 14 static double __value(YYSTYPE *yylval, char *str, int token) in __value() argument 24 return token; in __value() 72 static int str(yyscan_t scanner, int token, int runtime) in str() argument 82 return token; in str()
|
| A D | parse-events.y | 57 %token PE_START_EVENTS PE_START_TERMS 58 %token PE_VALUE PE_VALUE_SYM_HW PE_TERM 59 %token PE_EVENT_NAME 60 %token PE_RAW PE_NAME 61 %token PE_MODIFIER_EVENT PE_MODIFIER_BP PE_BP_COLON PE_BP_SLASH 62 %token PE_LEGACY_CACHE 63 %token PE_PREFIX_MEM 64 %token PE_ERROR 65 %token PE_DRV_CFG_TERM 66 %token PE_TERM_HW
|
| A D | pmu.y | 43 %token PP_CONFIG 44 %token PP_VALUE PP_ERROR
|
| A D | parse-events.l | 51 static int str(yyscan_t scanner, int token) in str() argument 57 return token; in str() 60 static int quoted_str(yyscan_t scanner, int token) in quoted_str() argument 75 return token; in quoted_str() 93 static int drv_str(yyscan_t scanner, int token) in drv_str() argument 100 return token; in drv_str()
|
| /tools/perf/tests/ |
| A D | code-reading.c | 194 char *version = 0, *token; in objdump_version() local 215 token = strsep(&line, " "); in objdump_version() 216 if (token != NULL && !strcmp(token, "GNU")) { in objdump_version() 219 version = token; in objdump_version() 222 token = strsep(&version, "."); in objdump_version() 223 version_num = atoi(token); in objdump_version() 227 token = strsep(&version, "."); in objdump_version() 228 version_tmp = atoi(token); in objdump_version() 229 if (token) in objdump_version() 233 version_tmp = atoi(token); in objdump_version() [all …]
|
| /tools/power/cpupower/utils/idle_monitor/ |
| A D | cpupower-monitor.c | 239 char *tmp = param, *token; in parse_monitor_param() local 244 token = strtok(tmp, ","); in parse_monitor_param() 245 if (token == NULL) in parse_monitor_param() 247 if (strlen(token) >= MONITOR_NAME_LEN) { in parse_monitor_param() 249 " (%d) exceeded\n"), token, MONITOR_NAME_LEN); in parse_monitor_param() 254 if (!strcmp(monitors[num]->name, token)) { in parse_monitor_param() 255 dprint("Found requested monitor: %s\n", token); in parse_monitor_param()
|
| /tools/testing/selftests/kvm/x86/ |
| A D | nx_huge_pages_test.c | 233 int reclaim_period_ms = 0, token = 0, opt; in main() local 242 token = atoi_paranoid(optarg); in main() 256 __TEST_REQUIRE(token == MAGIC_TOKEN, in main()
|
| /tools/testing/selftests/bpf/ |
| A D | network_helpers.c | 521 struct nstoken *token; in open_netns() local 524 if (!token) { in open_netns() 530 if (token->orig_netns_fd == -1) { in open_netns() 549 return token; in open_netns() 551 if (token->orig_netns_fd != -1) in open_netns() 552 close(token->orig_netns_fd); in open_netns() 553 free(token); in open_netns() 557 void close_netns(struct nstoken *token) in close_netns() argument 559 if (!token) in close_netns() 564 close(token->orig_netns_fd); in close_netns() [all …]
|