Home
last modified time | relevance | path

Searched refs:u64 (Results 1 – 25 of 32) sorted by relevance

12

/samples/bpf/
Dxsk_fwd.c32 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 …]
Dtracex3_kern.c17 __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()
Dibumad_kern.c22 __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()
Dcpustat_kern.c57 __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()
Doffwaketime_kern.c35 __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;
Dsampleip_kern.c17 __type(key, u64);
25 u64 ip; in do_sample()
Dtrace_output_kern.c18 u64 pid; in SYSCALL()
19 u64 cookie; in SYSCALL()
Dtest_current_task_under_cgroup_kern.c25 __type(value, u64);
33 u64 pid = bpf_get_current_pid_tgid(); in SYSCALL()
Dtracex4_kern.c14 u64 val;
15 u64 ip;
Dtrace_event_kern.c23 __type(value, u64);
30 __uint(value_size, PERF_MAX_STACK_DEPTH * sizeof(u64));
47 u64 *val, one = 1; in bpf_prog1()
Dlathist_kern.c24 __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()
Dtracex2_kern.c69 u64 pid_tgid;
70 u64 uid_gid;
71 u64 index;
Dxdp1_kern.c24 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()
Dxdp_sample_pkts_kern.c38 u64 flags = BPF_F_CURRENT_CPU; in xdp_sample_prog()
45 flags |= (u64)sample_size << 32; in xdp_sample_prog()
Dxdp_redirect_cpu.bpf.c53 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 …]
Dxdp2_kern.c40 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()
Dxdpsock.h16 typedef __u64 u64; typedef
Dtracex6_kern.c18 __type(value, u64);
33 u64 count, *val; in bpf_prog1()
Dxdp_redirect_map.bpf.c45 u64 nh_off; in xdp_redirect_map()
77 u64 nh_off; in xdp_redirect_map_egress()
Dhbm_kern.h56 #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))
Dxdp_router_ipv4_kern.c57 __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()
Dxdp_redirect.bpf.c27 u64 nh_off; in xdp_redirect_prog()
Dxdp_adjust_tail_kern.c40 u64 key = 0; in count_icmp()
41 u64 *icmp_count; in count_icmp()
Dxdp_redirect_map_multi.bpf.c64 u64 nh_off; in xdp_devmap_prog()
/samples/seccomp/
Dbpf-helper.h100 __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 …]

12