Lines Matching defs:offsets
403 * Return offsets in @poffsets for symbols specified in @syms array argument.
404 * On success returns 0 and offsets are returned in allocated array with @cnt
413 unsigned long *offsets;
421 offsets = calloc(cnt, sizeof(*offsets));
424 if (!offsets || !symbols) {
458 offset = &offsets[found->idx];
489 *poffsets = offsets;
494 free(offsets);
500 * Return offsets in @poffsets for symbols specified by @pattern argument.
501 * On success returns 0 and offsets are returned in allocated @poffsets
508 unsigned long *offsets = NULL;
531 err = libbpf_ensure_mem((void **) &offsets, &cap, sizeof(*offsets),
536 offsets[cnt++] = elf_sym_offset(sym);
547 *poffsets = offsets;
555 free(offsets);