Lines Matching full:sample
38 struct sample { struct
84 struct sample *sample; in ringbuf_missing_release2() local
86 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(*sample), 0, &ptr1); in ringbuf_missing_release2()
87 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(*sample), 0, &ptr2); in ringbuf_missing_release2()
89 sample = bpf_dynptr_data(&ptr1, 0, sizeof(*sample)); in ringbuf_missing_release2()
90 if (!sample) { in ringbuf_missing_release2()
153 /* Can't call non-dynptr ringbuf APIs on a dynptr ringbuf sample */
158 struct sample *sample; in ringbuf_invalid_api() local
160 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(*sample), 0, &ptr); in ringbuf_invalid_api()
161 sample = bpf_dynptr_data(&ptr, 0, sizeof(*sample)); in ringbuf_invalid_api()
162 if (!sample) in ringbuf_invalid_api()
165 sample->pid = 123; in ringbuf_invalid_api()
168 bpf_ringbuf_submit(sample, 0); in ringbuf_invalid_api()
254 struct sample *sample; in data_slice_use_after_release1() local
256 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(*sample), 0, &ptr); in data_slice_use_after_release1()
257 sample = bpf_dynptr_data(&ptr, 0, sizeof(*sample)); in data_slice_use_after_release1()
258 if (!sample) in data_slice_use_after_release1()
261 sample->pid = 123; in data_slice_use_after_release1()
266 val = sample->pid; in data_slice_use_after_release1()
285 struct sample *sample; in data_slice_use_after_release2() local
288 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(*sample), 0, &ptr2); in data_slice_use_after_release2()
290 sample = bpf_dynptr_data(&ptr2, 0, sizeof(*sample)); in data_slice_use_after_release2()
291 if (!sample) in data_slice_use_after_release2()
294 sample->pid = 23; in data_slice_use_after_release2()
299 sample->pid = 23; in data_slice_use_after_release2()