Searched refs:value (Results 1 – 10 of 10) sorted by relevance
/linux-tools/ebpf/kernel-samples-bpf/ |
H A D | l3lb_cmd.c | 51 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 D | sockconn4lb_admin.c | 88 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 D | l3lb_kern.c | 82 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 D | sockconn4lb_kern.c | 23 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 D | ipfirewall_cmd.c | 48 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 D | ipfirewall_kern.c | 30 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 D | kprobe_client.c | 35 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 D | kprobe_ksysread.bpf.c | 13 __type(value, unsigned long long);
|
H A D | conn.bpf.c | 16 __type(value, void*);
|
/linux-tools/perf/profiler/ |
H A D | README.md | 22 To profile kernel call chains, run with a nagative pid value
|