Searched refs:ptr1 (Results 1 – 4 of 4) sorted by relevance
/tools/testing/selftests/bpf/progs/ |
D | dynptr_success.c | 375 struct bpf_dynptr ptr1; in test_dynptr_is_null() local 383 if (bpf_ringbuf_reserve_dynptr(&ringbuf, size, 123, &ptr1) != -EINVAL) { in test_dynptr_is_null() 389 if (!bpf_dynptr_is_null(&ptr1)) { in test_dynptr_is_null() 409 bpf_ringbuf_discard_dynptr(&ptr1, 0); in test_dynptr_is_null() 416 struct bpf_dynptr ptr1; in test_dynptr_is_rdonly() local 421 if (bpf_dynptr_from_skb(skb, 123, &ptr1) != -EINVAL) { in test_dynptr_is_rdonly() 427 if (bpf_dynptr_is_rdonly(&ptr1)) { in test_dynptr_is_rdonly() 464 struct bpf_dynptr ptr1; in test_dynptr_clone() local 469 if (bpf_dynptr_from_skb(skb, 0, &ptr1)) { in test_dynptr_clone() 474 if (bpf_dynptr_adjust(&ptr1, off, bpf_dynptr_size(&ptr1))) { in test_dynptr_clone() [all …]
|
D | dynptr_fail.c | 96 struct bpf_dynptr ptr1, ptr2; in ringbuf_missing_release2() local 99 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(*sample), 0, &ptr1); in ringbuf_missing_release2() 102 sample = bpf_dynptr_data(&ptr1, 0, sizeof(*sample)); in ringbuf_missing_release2() 104 bpf_ringbuf_discard_dynptr(&ptr1, 0); in ringbuf_missing_release2() 109 bpf_ringbuf_submit_dynptr(&ptr1, 0); in ringbuf_missing_release2() 328 struct bpf_dynptr ptr1, ptr2; in data_slice_use_after_release2() local 331 bpf_ringbuf_reserve_dynptr(&ringbuf, 64, 0, &ptr1); in data_slice_use_after_release2() 345 bpf_ringbuf_submit_dynptr(&ptr1, 0); in data_slice_use_after_release2() 351 bpf_ringbuf_discard_dynptr(&ptr1, 0); in data_slice_use_after_release2() 577 struct bpf_dynptr ptr1, ptr2; in invalid_read3() local [all …]
|
/tools/testing/selftests/kvm/lib/ |
D | kvm_util.c | 788 uintptr_t ptr1 = (uintptr_t)hva + offset; in kvm_memcmp_hva_gva() local 801 if ((ptr1 >> vm->page_shift) != ((ptr1 + amt) >> vm->page_shift)) in kvm_memcmp_hva_gva() 802 amt = vm->page_size - (ptr1 % vm->page_size); in kvm_memcmp_hva_gva() 806 assert((ptr1 >> vm->page_shift) == ((ptr1 + amt - 1) >> vm->page_shift)); in kvm_memcmp_hva_gva() 814 int ret = memcmp((void *)ptr1, (void *)ptr2, amt); in kvm_memcmp_hva_gva()
|
/tools/perf/util/ |
D | probe-event.c | 206 char *ptr1, *ptr2, *exec_copy; in convert_exec_to_group() local 214 ptr1 = basename(exec_copy); in convert_exec_to_group() 215 if (!ptr1) { in convert_exec_to_group() 220 for (ptr2 = ptr1; *ptr2 != '\0'; ptr2++) { in convert_exec_to_group() 227 ret = e_snprintf(buf, 64, "%s_%s", PERFPROBE_GROUP, ptr1); in convert_exec_to_group()
|