Home
last modified time | relevance | path

Searched refs:sd (Results 1 – 4 of 4) sorted by relevance

/tools/testing/selftests/net/
Dnettest.c203 static int tcp_md5sig(int sd, void *addr, socklen_t alen, const char *password) in tcp_md5sig() argument
216 rc = setsockopt(sd, IPPROTO_TCP, TCP_MD5SIG, &md5sig, sizeof(md5sig)); in tcp_md5sig()
228 static int tcp_md5_remote(int sd, struct sock_args *args) in tcp_md5_remote() argument
257 if (tcp_md5sig(sd, addr, alen, args->password)) in tcp_md5_remote()
266 int sd, rc; in get_ifidx() local
275 sd = socket(PF_INET, SOCK_DGRAM, IPPROTO_IP); in get_ifidx()
276 if (sd < 0) { in get_ifidx()
281 rc = ioctl(sd, SIOCGIFINDEX, (char *)&ifdata); in get_ifidx()
282 close(sd); in get_ifidx()
291 static int bind_to_device(int sd, const char *name) in bind_to_device() argument
[all …]
/tools/perf/util/
Dsort.c1878 __sort_dimension__alloc_hpp(struct sort_dimension *sd, int level) in __sort_dimension__alloc_hpp() argument
1888 hse->se = sd->entry; in __sort_dimension__alloc_hpp()
1889 hse->hpp.name = sd->entry->se_header; in __sort_dimension__alloc_hpp()
1962 static int __sort_dimension__add_hpp_sort(struct sort_dimension *sd, in __sort_dimension__add_hpp_sort() argument
1966 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, level); in __sort_dimension__add_hpp_sort()
1975 static int __sort_dimension__add_hpp_output(struct sort_dimension *sd, in __sort_dimension__add_hpp_output() argument
1978 struct hpp_sort_entry *hse = __sort_dimension__alloc_hpp(sd, 0); in __sort_dimension__add_hpp_output()
2499 static int __sort_dimension__add(struct sort_dimension *sd, in __sort_dimension__add() argument
2503 if (sd->taken) in __sort_dimension__add()
2506 if (__sort_dimension__add_hpp_sort(sd, list, level) < 0) in __sort_dimension__add()
[all …]
Dstat-display.c1100 double sd = stddev_stats(config->walltime_nsecs_stats) / NSEC_PER_SEC; in print_footer() local
1105 int precision = get_precision(sd) + 2; in print_footer()
1111 precision, avg, precision, sd); in print_footer()
1113 print_noise_pct(config, sd, avg); in print_footer()
/tools/accounting/
Dgetdelays.c119 static int send_cmd(int sd, __u16 nlmsg_type, __u32 nlmsg_pid, in send_cmd() argument
147 while ((r = sendto(sd, buf, buflen, 0, (struct sockaddr *) &nladdr, in send_cmd()
163 static int get_family_id(int sd) in get_family_id() argument
176 rc = send_cmd(sd, GENL_ID_CTRL, getpid(), CTRL_CMD_GETFAMILY, in get_family_id()
182 rep_len = recv(sd, &ans, sizeof(ans), 0); in get_family_id()