Home
last modified time | relevance | path

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

/linux-tools/ebpf/kernel-samples-bpf/
H A Dl3lb_cmd.c51 BNode value; in main() local
64 attr_elem.value = ptr_to_u64(&value); in main()
74 value.ifin = if_nametoindex(argv[2]); in main()
75 if (!value.ifin) { in main()
79 value.saddr = parse_ip(argv[3]); in main()
80 if (value.saddr == 0) { in main()
84 value.ifout = if_nametoindex(argv[4]); in main()
85 if (!value.ifout) { in main()
89 value.daddr = parse_ip(argv[5]); in main()
90 if (value.daddr == 0) { in main()
H A Dsockconn4lb_admin.c88 VNode value; in main() local
104 attr_elem.value = ptr_to_u64(&value); in main()
111 n = value[0]; in main()
112 for (i=0; i<n; i++) print_ip(value[i+1]); in main()
121 attr_elem.value = ptr_to_u64(&value); in main()
127 if (value[0]==0) { in main()
131 value[0]-=1; in main()
145 attr_elem.value = ptr_to_u64(&value); in main()
149 value[0]=0; in main()
156 if (value[0]+1>=MAXN) { in main()
[all …]
H A Dl3lb_kern.c82 BNode *value = NULL; in xdp_ipv4_l3lb() local
128 value = _check(iph->saddr); in xdp_ipv4_l3lb()
129 if (!value) return XDP_PASS; in xdp_ipv4_l3lb()
130 if (ctx->ingress_ifindex != value->ifin) return XDP_PASS; in xdp_ipv4_l3lb()
134 fib_params.ipv4_dst = value->daddr; in xdp_ipv4_l3lb()
135 o_ifindex = value->ifout; in xdp_ipv4_l3lb()
136 dsum = (value->daddr&0xffff) + (value->daddr>>16); in xdp_ipv4_l3lb()
138 iph->daddr = value->daddr; in xdp_ipv4_l3lb()
140 value = _check(iph->daddr); in xdp_ipv4_l3lb()
141 if (!value) return XDP_PASS; in xdp_ipv4_l3lb()
[all …]
H A Dsockconn4lb_kern.c23 VNode *value; in bpf_connectlb() local
25 value = bpf_map_lookup_elem(&viprules, &ip); in bpf_connectlb()
26 if (!value) return 1; // let go in bpf_connectlb()
27 n = (*value)[0]; in bpf_connectlb()
31 ip =(*value)[i]; in bpf_connectlb()
H A Dipfirewall_cmd.c48 unsigned int ip, value; in main() local
61 attr_elem.value = ptr_to_u64(&value); in main()
73 value=0; in main()
86 value=1; in main()
H A Dipfirewall_kern.c30 unsigned int *value = NULL; in xdp_ipv4_firewalling() local
67 value=bpf_map_lookup_elem(&rules, &sip); in xdp_ipv4_firewalling()
68 if (value) { in xdp_ipv4_firewalling()
69 if (*value) return XDP_DROP; in xdp_ipv4_firewalling()
/linux-tools/ebpf/libbpf-bootstrap/
H A Dkprobe_client.c35 unsigned long long value, b=1; in main() local
45 attr_elem.value = ptr_to_u64(&value); in main()
53 if (b>=1024*1024) printf("%6lldMB: %-9lld\n", b/1024/1024, value); in main()
54 else if (b>=1024) printf("%6lldKB: %-9lld\n", b/1024, value); in main()
55 else printf("%7lldB: %-9lld\n", b, value); in main()
H A Dkprobe_ksysread.bpf.c13 __type(value, unsigned long long);
H A Dconn.bpf.c16 __type(value, void*);
/linux-tools/perf/profiler/
H A DREADME.md22 To profile kernel call chains, run with a nagative pid value