Home
last modified time | relevance | path

Searched refs:hdr_len (Results 1 – 2 of 2) sorted by relevance

/kernel/bpf/
Dringbuf.c646 u32 hdr_len, sample_len, total_len, flags, *hdr; in __bpf_user_ringbuf_peek() local
661 hdr_len = smp_load_acquire(hdr); in __bpf_user_ringbuf_peek()
662 flags = hdr_len & (BPF_RINGBUF_BUSY_BIT | BPF_RINGBUF_DISCARD_BIT); in __bpf_user_ringbuf_peek()
663 sample_len = hdr_len & ~flags; in __bpf_user_ringbuf_peek()
Dbtf.c1537 __btf_verifier_log(log, "hdr_len: %u\n", hdr->hdr_len); in btf_verifier_log_hdr()
4841 expected_total = btf_data_size - hdr->hdr_len; in btf_check_sec_info()
4875 u32 hdr_len, hdr_copy, btf_data_size; in btf_parse_hdr() local
4882 if (btf_data_size < offsetofend(struct btf_header, hdr_len)) { in btf_parse_hdr()
4888 hdr_len = hdr->hdr_len; in btf_parse_hdr()
4889 if (btf_data_size < hdr_len) { in btf_parse_hdr()
4895 if (hdr_len > sizeof(btf->hdr)) { in btf_parse_hdr()
4897 u8 *end = btf->data + hdr_len; in btf_parse_hdr()
4907 hdr_copy = min_t(u32, hdr_len, sizeof(btf->hdr)); in btf_parse_hdr()
4929 if (!btf->base_btf && btf_data_size == hdr->hdr_len) { in btf_parse_hdr()
[all …]