Lines Matching refs:sample
456 static void bpf_ringbuf_commit(void *sample, u64 flags, bool discard) in bpf_ringbuf_commit() argument
463 hdr = sample - BPF_RINGBUF_HDR_SZ; in bpf_ringbuf_commit()
484 BPF_CALL_2(bpf_ringbuf_submit, void *, sample, u64, flags) in BPF_CALL_2() argument
486 bpf_ringbuf_commit(sample, flags, false /* discard */); in BPF_CALL_2()
497 BPF_CALL_2(bpf_ringbuf_discard, void *, sample, u64, flags) in BPF_CALL_2() argument
499 bpf_ringbuf_commit(sample, flags, true /* discard */); in BPF_CALL_2()
569 void *sample; in BPF_CALL_4() local
585 sample = __bpf_ringbuf_reserve(rb_map->rb, size); in BPF_CALL_4()
586 if (!sample) { in BPF_CALL_4()
591 bpf_dynptr_init(ptr, sample, BPF_DYNPTR_TYPE_RINGBUF, 0, size); in BPF_CALL_4()
643 static int __bpf_user_ringbuf_peek(struct bpf_ringbuf *rb, void **sample, u32 *size) in __bpf_user_ringbuf_peek() argument
692 *sample = (void *)((uintptr_t)rb->data + in __bpf_user_ringbuf_peek()
733 void *sample; in BPF_CALL_4() local
736 err = __bpf_user_ringbuf_peek(rb, &sample, &size); in BPF_CALL_4()
749 bpf_dynptr_init(&dynptr, sample, BPF_DYNPTR_TYPE_LOCAL, 0, size); in BPF_CALL_4()