Skip to content

Commit

Permalink
dlibs: improve load-time errors
Browse files Browse the repository at this point in the history
This corrects errors you get at BPF dlib load time from

dtrace: failed to compile script X: Success

to e.g.

dtrace: failed to compile script X: undefined symbol DTRACEFLT_BADADDR in BPF dlib

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
nickalcock authored and kvanhees committed Jul 27, 2022
1 parent d1d4ea8 commit d69076c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libdtrace/dt_dlibs.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ dt_dlib_error(dtrace_hdl_t *dtp, int eid, const char *format, ...)

va_start(ap, format);
dt_set_errmsg(dtp, dt_errtag(eid), NULL, NULL, 0, format, ap);
dt_set_errno(dtp, EDT_BPF);
va_end(ap);
}

Expand Down

0 comments on commit d69076c

Please sign in to comment.