Traces produced by lttng-ust < 2.9 emitted errors on dl_open events, but
those are not errors, just missing information that we already handle.
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
struct bt_ctf_field_type *field_type = NULL;
int ret;
+ /*
+ * The field might not exist, no error here.
+ */
field = get_payload_field(err, event, field_name);
if (!field) {
- fprintf(err, "[error] %s in %s:%d\n", __func__,
- __FILE__, __LINE__);
goto error;
}
if (ret) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
- ret = -1;
goto end;
}
if (ret) {
fprintf(err, "[error] %s in %s:%d\n", __func__,
__FILE__, __LINE__);
- ret = -1;
goto end;
}
+ /*
+ * This field is not produced by the dlopen event emitted before
+ * lttng-ust 2.9.
+ */
ret = get_payload_string_field_value(err,
event, "_path", &path);
- if (ret) {
- fprintf(err, "[error] %s in %s:%d\n", __func__,
- __FILE__, __LINE__);
- ret = -1;
+ if (ret || !path) {
goto end;
}
goto end;
}
- if (!path) {
- goto end;
- }
-
if (memsz == 0) {
/* Ignore VDSO. */
goto end;