#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
-#include "usterr.h"
+#include <usterr-signal-safe.h>
+#include "lttng-tracer-core.h"
#include "lttng-ust-baddr.h"
#define TRACEPOINT_DEFINE
* UST lock needs to be nested within dynamic loader
* lock.
*/
- ust_lock();
+ if (ust_lock()) {
+ /*
+ * Stop iteration on headers if need to exit.
+ */
+ ust_unlock();
+ return 1;
+ }
+
sessionsp = _lttng_get_sessions();
cds_list_for_each_entry(session, sessionsp, node) {
if (session->owner != owner)
sostat.st_mtime);
}
ust_unlock();
-
/*
* We are only interested in the base address (lowest virtual
* address associated with the memory image), skip the rest