Lines Matching defs:ptr
285 # define zfree(ptr) ({ free(*ptr); *ptr = NULL; })
297 static inline __u64 ptr_to_u64(const void *ptr)
299 return (__u64) (unsigned long) ptr;
1085 pr_warn("struct_ops init_kern %s: kernel member %s is not a func ptr\n",
1095 pr_debug("struct_ops init_kern %s: func ptr %s is set to prog %s from data(+%u) to kern_data(+%u)\n",
2100 case BTF_KIND_PTR: return "ptr";
4699 /* ptr */
9197 pr_warn("struct_ops reloc %s: cannot relocate non func ptr %s\n",
9204 pr_warn("struct_ops reloc %s: cannot find prog at shdr_idx %u to relocate func ptr %s\n",
9231 pr_warn("struct_ops reloc %s: cannot use prog %s in sec %s with type %u attach_btf_id %u expected_attach_type %u for func ptr %s\n",
9911 long libbpf_get_error(const void *ptr)
9913 if (!IS_ERR_OR_NULL(ptr))
9916 if (IS_ERR(ptr))
9917 errno = -PTR_ERR(ptr);
9919 /* If ptr == NULL, then errno should be already set by the failing
9921 * sets errno on error. So no extra errno handling for ptr == NULL
12611 pb->events[j].data.ptr = cpu_buf;
12708 struct perf_cpu_buf *cpu_buf = pb->events[i].data.ptr;