/samples/bpf/ |
D | xsk_fwd.c | 32 typedef __u64 u64; typedef 109 u64 **slabs; 110 u64 **slabs_reserved; 111 u64 *buffers; 112 u64 *buffers_reserved; 114 u64 n_slabs; 115 u64 n_slabs_reserved; 116 u64 n_buffers; 118 u64 n_slabs_available; 119 u64 n_slabs_reserved_available; [all …]
|
D | tracex3_kern.c | 17 __type(value, u64); 28 u64 val = bpf_ktime_get_ns(); in bpf_prog1() 48 __uint(value_size, sizeof(u64)); 56 u64 *value, l, base; in bpf_prog2() 63 u64 cur_time = bpf_ktime_get_ns(); in bpf_prog2() 64 u64 delta = cur_time - *value; in bpf_prog2()
|
D | ibumad_kern.c | 22 __type(value, u64); /* count of mads read */ 29 __type(value, u64); /* count of mads written */ 46 u64 pad; 71 u64 tid; 80 u64 zero = 0, *val; in on_ib_umad_read_recv() 100 u64 zero = 0, *val; in on_ib_umad_read_send() 120 u64 zero = 0, *val; in on_ib_umad_write()
|
D | cpustat_kern.c | 57 __type(value, u64); 65 __type(value, u64); 73 __type(value, u64); 85 u64 pad; 106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog1() 108 u64 *val; in bpf_prog1() 214 u64 *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog2() 216 u64 *val; in bpf_prog2()
|
D | offwaketime_kern.c | 35 __type(value, u64); 42 __type(value, u64); 61 __uint(value_size, PERF_MAX_STACK_DEPTH * sizeof(u64)); 83 static inline int update_counts(void *ctx, u32 pid, u64 delta) in update_counts() 86 u64 zero = 0, *val; in update_counts() 137 u64 delta, ts, *tsp;
|
D | sampleip_kern.c | 17 __type(key, u64); 25 u64 ip; in do_sample()
|
D | trace_output_kern.c | 18 u64 pid; in SYSCALL() 19 u64 cookie; in SYSCALL()
|
D | test_current_task_under_cgroup_kern.c | 25 __type(value, u64); 33 u64 pid = bpf_get_current_pid_tgid(); in SYSCALL()
|
D | tracex4_kern.c | 14 u64 val; 15 u64 ip;
|
D | trace_event_kern.c | 23 __type(value, u64); 30 __uint(value_size, PERF_MAX_STACK_DEPTH * sizeof(u64)); 47 u64 *val, one = 1; in bpf_prog1()
|
D | lathist_kern.c | 24 __type(value, u64); 32 u64 *ts = bpf_map_lookup_elem(&my_map, &cpu); in bpf_prog1() 74 u64 *ts, cur_ts, delta; in bpf_prog2()
|
D | tracex2_kern.c | 69 u64 pid_tgid; 70 u64 uid_gid; 71 u64 index;
|
D | xdp1_kern.c | 24 static int parse_ipv4(void *data, u64 nh_off, void *data_end) in parse_ipv4() 33 static int parse_ipv6(void *data, u64 nh_off, void *data_end) in parse_ipv6() 51 u64 nh_off; in xdp_prog1()
|
D | xdp_sample_pkts_kern.c | 38 u64 flags = BPF_F_CURRENT_CPU; in xdp_sample_prog() 45 flags |= (u64)sample_size << 32; in xdp_sample_prog()
|
D | xdp_redirect_cpu.bpf.c | 53 u16 *eth_proto, u64 *l3_offset) in parse_eth() 56 u64 offset; in parse_eth() 97 u16 get_dest_port_ipv4_udp(struct xdp_md *ctx, u64 nh_off) in get_dest_port_ipv4_udp() 119 int get_proto_ipv4(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv4() 131 int get_proto_ipv6(struct xdp_md *ctx, u64 nh_off) in get_proto_ipv6() 266 u64 l3_offset = 0; in xdp_prognum3_proto_separate() 332 u64 l3_offset = 0; in xdp_prognum4_ddos_filter_pktgen() 399 u32 get_ipv4_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) in get_ipv4_hash_ip_pair() 416 u32 get_ipv6_hash_ip_pair(struct xdp_md *ctx, u64 nh_off) in get_ipv6_hash_ip_pair() 448 u64 l3_offset = 0; in xdp_prognum5_lb_hash_ip_pairs() [all …]
|
D | xdp2_kern.c | 40 static int parse_ipv4(void *data, u64 nh_off, void *data_end) in parse_ipv4() 49 static int parse_ipv6(void *data, u64 nh_off, void *data_end) in parse_ipv6() 67 u64 nh_off; in xdp_prog1()
|
D | xdpsock.h | 16 typedef __u64 u64; typedef
|
D | tracex6_kern.c | 18 __type(value, u64); 33 u64 count, *val; in bpf_prog1()
|
D | xdp_redirect_map.bpf.c | 45 u64 nh_off; in xdp_redirect_map() 77 u64 nh_off; in xdp_redirect_map_egress()
|
D | hbm_kern.h | 56 #define CREDIT_PER_NS(delta, rate) ((((u64)(delta)) * (rate)) >> 20) 57 #define BYTES_PER_NS(delta, rate) ((((u64)(delta)) * (rate)) >> 20) 58 #define BYTES_TO_NS(bytes, rate) div64_u64(((u64)(bytes)) << 20, (u64)(rate))
|
D | xdp_router_ipv4_kern.c | 57 __type(value, u64); 96 static inline int parse_ipv4(void *data, u64 nh_off, void *data_end, in parse_ipv4() 121 u64 nh_off; in xdp_router_ipv4_prog()
|
D | xdp_redirect.bpf.c | 27 u64 nh_off; in xdp_redirect_prog()
|
D | xdp_adjust_tail_kern.c | 40 u64 key = 0; in count_icmp() 41 u64 *icmp_count; in count_icmp()
|
D | xdp_redirect_map_multi.bpf.c | 64 u64 nh_off; in xdp_devmap_prog()
|
/samples/seccomp/ |
D | bpf-helper.h | 100 __u64 u64; member 104 JEQ64(((union arg64){.u64 = (x)}).lo32, \ 105 ((union arg64){.u64 = (x)}).hi32, \ 108 JGT64(((union arg64){.u64 = (x)}).lo32, \ 109 ((union arg64){.u64 = (x)}).hi32, \ 112 JGE64(((union arg64){.u64 = (x)}).lo32, \ 113 ((union arg64){.u64 = (x)}).hi32, \ 116 JNE64(((union arg64){.u64 = (x)}).lo32, \ 117 ((union arg64){.u64 = (x)}).hi32, \ 120 JLT64(((union arg64){.u64 = (x)}).lo32, \ [all …]
|