We cannot use the number of pointers - 1 to know the number of markers/tp/tc,
because we can have more than one NULL pointer per shared object.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/* FIXME: update just the loaded lib */
lib_update_markers();
- /* markers_count - 1: skip dummy */
- DBG("just registered a markers section from %p and having %d markers", markers_start, markers_count - 1);
+ DBG("just registered a markers section from %p and having %d markers (minus dummy markers)", markers_start, markers_count);
return 0;
}
pthread_mutex_unlock(&trace_events_mutex);
/* trace_events_count - 1: skip dummy */
- DBG("just registered a trace_events section from %p and having %d trace_events", trace_events_start, trace_events_count - 1);
+ DBG("just registered a trace_events section from %p and having %d trace_events (minus dummy trace_event)", trace_events_start, trace_events_count);
return 0;
}
lib_update_tracepoints();
/* tracepoints_count - 1: skip dummy */
- DBG("just registered a tracepoints section from %p and having %d tracepoints", tracepoints_start, tracepoints_count - 1);
+ DBG("just registered a tracepoints section from %p and having %d tracepoints (minus dummy tracepoints)", tracepoints_start, tracepoints_count);
return 0;
}