• Home
  • Raw
  • Download

Lines Matching refs:size

78 			   u32 size, u32 retval, u32 duration)  in bpf_test_finish()  argument
82 u32 copy_size = size; in bpf_test_finish()
95 if (copy_to_user(&uattr->test.data_size_out, &size, sizeof(size))) in bpf_test_finish()
108 static void *bpf_test_init(const union bpf_attr *kattr, u32 size, in bpf_test_init() argument
114 if (size < ETH_HLEN || size > PAGE_SIZE - headroom - tailroom) in bpf_test_init()
117 data = kzalloc(size + headroom + tailroom, GFP_USER); in bpf_test_init()
121 if (copy_from_user(data + headroom, data_in, size)) { in bpf_test_init()
132 u32 size = kattr->test.ctx_size_in; in bpf_ctx_init() local
144 err = bpf_check_uarg_tail_zero(data_in, max_size, size); in bpf_ctx_init()
150 size = min_t(u32, max_size, size); in bpf_ctx_init()
151 if (copy_from_user(data, data_in, size)) { in bpf_ctx_init()
161 u32 size) in bpf_ctx_finish() argument
165 u32 copy_size = size; in bpf_ctx_finish()
177 if (copy_to_user(&uattr->test.ctx_size_out, &size, sizeof(size))) in bpf_ctx_finish()
245 u32 size = kattr->test.data_size_in; in bpf_prog_test_run_skb() local
255 data = bpf_test_init(kattr, size, NET_SKB_PAD + NET_IP_ALIGN, in bpf_prog_test_run_skb()
299 __skb_put(skb, size); in bpf_prog_test_run_skb()
326 size = skb->len; in bpf_prog_test_run_skb()
329 size = skb_headlen(skb); in bpf_prog_test_run_skb()
330 ret = bpf_test_finish(kattr, uattr, skb->data, size, retval, duration); in bpf_prog_test_run_skb()
345 u32 size = kattr->test.data_size_in; in bpf_prog_test_run_xdp() local
356 data = bpf_test_init(kattr, size, XDP_PACKET_HEADROOM + NET_IP_ALIGN, 0); in bpf_prog_test_run_xdp()
363 xdp.data_end = xdp.data + size; in bpf_prog_test_run_xdp()
372 xdp.data_end != xdp.data + size) in bpf_prog_test_run_xdp()
373 size = xdp.data_end - xdp.data; in bpf_prog_test_run_xdp()
374 ret = bpf_test_finish(kattr, uattr, xdp.data, size, retval, duration); in bpf_prog_test_run_xdp()
400 u32 size = kattr->test.data_size_in; in bpf_prog_test_run_flow_dissector() local
416 if (size < ETH_HLEN) in bpf_prog_test_run_flow_dissector()
419 data = bpf_test_init(kattr, size, 0, 0); in bpf_prog_test_run_flow_dissector()
442 ctx.data_end = (__u8 *)data + size; in bpf_prog_test_run_flow_dissector()
449 size, flags); in bpf_prog_test_run_flow_dissector()