Home
last modified time | relevance | path

Searched refs:probe_fd (Results 1 – 5 of 5) sorted by relevance

/external/bcc/src/cc/api/
DBPF.cc173 int probe_fd; in attach_kprobe() local
174 TRY2(load_func(probe_func, BPF_PROG_TYPE_KPROBE, probe_fd)); in attach_kprobe()
176 int res_fd = bpf_attach_kprobe(probe_fd, attach_type, probe_event.c_str(), in attach_kprobe()
206 int probe_fd; in attach_uprobe() local
207 TRY2(load_func(probe_func, BPF_PROG_TYPE_KPROBE, probe_fd)); in attach_uprobe()
209 int res_fd = bpf_attach_uprobe(probe_fd, attach_type, probe_event.c_str(), in attach_uprobe()
280 int probe_fd; in attach_tracepoint() local
281 TRY2(load_func(probe_func, BPF_PROG_TYPE_TRACEPOINT, probe_fd)); in attach_tracepoint()
284 bpf_attach_tracepoint(probe_fd, tp_category.c_str(), tp_name.c_str()); in attach_tracepoint()
308 int probe_fd; in attach_perf_event() local
[all …]
/external/iputils/
Dtraceroute6.c544 int probe_fd = socket(AF_INET6, SOCK_DGRAM, 0); in main() local
546 if (probe_fd < 0) { in main()
551 if (setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(device)+1) == -1) in main()
555 if (connect(probe_fd, (struct sockaddr*)&firsthop, sizeof(firsthop)) == -1) { in main()
560 if (getsockname(probe_fd, (struct sockaddr*)&saddr, &alen) == -1) { in main()
565 close(probe_fd); in main()
Dping.c319 int probe_fd = socket(AF_INET, SOCK_DGRAM, 0); in main() local
321 if (probe_fd < 0) { in main()
333 rc = setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(device)+1); in main()
339 if (ioctl(probe_fd, SIOCGIFINDEX, &ifr) < 0) { in main()
345 if (setsockopt(probe_fd, SOL_IP, IP_MULTICAST_IF, &imr, sizeof(imr)) == -1) { in main()
357 setsockopt(probe_fd, IPPROTO_IP, IP_TOS, (char *)&settos, sizeof(int)) < 0) in main()
364 sock_setmark(probe_fd); in main()
366 if (connect(probe_fd, (struct sockaddr*)&dst, sizeof(dst)) == -1) { in main()
373 if (setsockopt(probe_fd, SOL_SOCKET, SO_BROADCAST, in main()
378 if (connect(probe_fd, (struct sockaddr*)&dst, sizeof(dst)) == -1) { in main()
[all …]
Darping.c1124 int probe_fd = socket(AF_INET, SOCK_DGRAM, 0); in main() local
1126 if (probe_fd < 0) { in main()
1133 if (setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device.name, strlen(device.name)+1) == -1) in main()
1142 if (bind(probe_fd, (struct sockaddr*)&saddr, sizeof(saddr)) == -1) { in main()
1153 if (setsockopt(probe_fd, SOL_SOCKET, SO_DONTROUTE, (char*)&on, sizeof(on)) == -1) in main()
1155 if (connect(probe_fd, (struct sockaddr*)&saddr, sizeof(saddr)) == -1) { in main()
1159 if (getsockname(probe_fd, (struct sockaddr*)&saddr, &alen) == -1) { in main()
1165 close(probe_fd); in main()
Dping6.c962 int probe_fd = socket(AF_INET6, SOCK_DGRAM, 0); in main() local
964 if (probe_fd < 0) { in main()
987 setsockopt(probe_fd, IPPROTO_IPV6, IPV6_PKTINFO, &ipi, sizeof(ipi)) == -1 && in main()
989 setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(device)+1) == -1) { in main()
997 sock_setmark(probe_fd); in main()
999 if (connect(probe_fd, (struct sockaddr*)&firsthop, sizeof(firsthop)) == -1) { in main()
1004 if (getsockname(probe_fd, (struct sockaddr*)&source, &alen) == -1) { in main()
1009 close(probe_fd); in main()