Home
last modified time | relevance | path

Searched refs:data_len (Results 1 – 15 of 15) sorted by relevance

/tools/testing/selftests/bpf/progs/
Dtest_xdp_adjust_tail_grow.c10 unsigned int data_len; in _xdp_adjust_tail_grow() local
14 data_len = data_end - data; in _xdp_adjust_tail_grow()
16 if (data_len == 54) { /* sizeof(pkt_v4) */ in _xdp_adjust_tail_grow()
18 } else if (data_len == 74) { /* sizeof(pkt_v6) */ in _xdp_adjust_tail_grow()
20 } else if (data_len == 64) { in _xdp_adjust_tail_grow()
22 } else if (data_len == 128) { in _xdp_adjust_tail_grow()
23 offset = 4096 - 256 - 320 - data_len; /* Max tail grow 3520 */ in _xdp_adjust_tail_grow()
Dtest_check_mtu.c64 __u32 data_len = data_end - data; in xdp_exceed_mtu() local
71 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in xdp_exceed_mtu()
91 __u32 data_len = data_end - data; in xdp_minus_delta() local
96 delta = -((data_len - ETH_HLEN) + 1); in xdp_minus_delta()
115 __u32 data_len = data_end - data; in xdp_input_len() local
123 __u32 mtu_len = data_len - ETH_HLEN; in xdp_input_len()
206 __u32 data_len = data_end - data; in tc_exceed_mtu_da() local
213 delta = GLOBAL_USER_MTU - (data_len - ETH_HLEN) + 1; in tc_exceed_mtu_da()
Dprofiler.inc.h593 unsigned long data_len = payload - (void*)sysctl_data; in BPF_KPROBE() local
594 data_len = data_len > sizeof(struct var_sysctl_data_t) in BPF_KPROBE()
596 : data_len; in BPF_KPROBE()
597 bpf_perf_event_output(ctx, &events, BPF_F_CURRENT_CPU, sysctl_data, data_len); in BPF_KPROBE()
669 unsigned long data_len = (void*)payload - (void*)kill_data; in raw_tracepoint__sched_process_exit() local
670 data_len = data_len > sizeof(struct var_kill_data_t) in raw_tracepoint__sched_process_exit()
672 : data_len; in raw_tracepoint__sched_process_exit()
673 bpf_perf_event_output(ctx, &events, BPF_F_CURRENT_CPU, kill_data, data_len); in raw_tracepoint__sched_process_exit()
752 unsigned long data_len = payload - (void*)proc_exec_data; in raw_tracepoint__sched_process_exec() local
753 data_len = data_len > sizeof(struct var_exec_data_t) in raw_tracepoint__sched_process_exec()
[all …]
Dkfree_skb.c41 unsigned int len, data_len; member
/tools/testing/selftests/bpf/
Dnetwork_helpers.c172 int fastopen_connect(int server_fd, const char *data, unsigned int data_len, in fastopen_connect() argument
195 ret = sendto(fd, data, data_len, MSG_FASTOPEN, (struct sockaddr *)&addr, in fastopen_connect()
197 if (ret != data_len) { in fastopen_connect()
198 log_err("sendto(data, %u) != %d\n", data_len, ret); in fastopen_connect()
Dnetwork_helpers.h52 int fastopen_connect(int server_fd, const char *data, unsigned int data_len,
/tools/perf/util/
Dgenelf_debug.c221 void *data, size_t data_len) in emit_extended_opcode() argument
225 emit_unsigned_LEB128(be, data_len + 1); in emit_extended_opcode()
228 buffer_ext_add(be, data, data_len); in emit_extended_opcode()
Dheader.c1010 node->info_linear->data_len; in write_bpf_prog_info()
3038 u32 info_len, data_len; in process_bpf_prog_info() local
3044 if (do_read_u32(ff, &data_len)) in process_bpf_prog_info()
3053 data_len); in process_bpf_prog_info()
3057 info_linear->data_len = data_len; in process_bpf_prog_info()
3066 if (__do_read(ff, info_linear->data, data_len)) in process_bpf_prog_info()
/tools/testing/selftests/filesystems/incfs/
Dincfs_perf.c200 .data_len = sizeof(data), in write_data()
239 fill_block.data_len = comp_size; in write_data()
514 .data_len = INCFS_DATA_FILE_BLOCK_SIZE, in load_hash_tree()
Dincfs_stress.c163 .data_len = block_size, in write_data()
Dincfs_test.c468 block_buf[i].data_len = block_size; in emit_test_blocks()
950 .data_len = INCFS_DATA_FILE_BLOCK_SIZE, in load_hash_tree()
2661 .data_len = in emit_partial_test_file_hash()
2863 block_buf[i].data_len = INCFS_DATA_FILE_BLOCK_SIZE; in large_file_test()
/tools/testing/selftests/net/
Dgro.c752 int data_len = 0; in check_recv_pkts() local
777 data_len = pkt_size - total_hdr_len - tcp_ext_len - ip_ext_len; in check_recv_pkts()
783 data_len = ntohs(iph->tot_len) in check_recv_pkts()
786 vlog("%d ", data_len); in check_recv_pkts()
787 if (data_len != correct_payload[num_pkt]) { in check_recv_pkts()
/tools/testing/selftests/tpm2/
Dtpm2.py669 data_len = struct.unpack('>I', rsp[10:14])[0] - 2
671 return rsp[16:16 + data_len]
/tools/lib/bpf/
Dlibbpf.h809 __u32 data_len; member
Dlibbpf.c10389 __u32 data_len = 0; in bpf_program__get_prog_info_linear() local
10425 data_len += count * size; in bpf_program__get_prog_info_linear()
10429 data_len = roundup(data_len, sizeof(__u64)); in bpf_program__get_prog_info_linear()
10430 info_linear = malloc(sizeof(struct bpf_prog_info_linear) + data_len); in bpf_program__get_prog_info_linear()
10491 info_linear->data_len = data_len; in bpf_program__get_prog_info_linear()