projects
/
deliverable
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: event probes attached before event enabled
[deliverable/lttng-ust.git]
/
liblttng-ust
/
lttng-events.c
diff --git
a/liblttng-ust/lttng-events.c
b/liblttng-ust/lttng-events.c
index f68ce323690ae2eba56bed6fae375e7490cc926d..75e48a3c823b80a9e38b4a842e9d7471828b427f 100644
(file)
--- a/
liblttng-ust/lttng-events.c
+++ b/
liblttng-ust/lttng-events.c
@@
-903,6
+903,9
@@
int lttng_enabler_ref_events(struct lttng_enabler *enabler)
struct lttng_session *session = enabler->chan->session;
struct lttng_event *event;
struct lttng_session *session = enabler->chan->session;
struct lttng_event *event;
+ if (!enabler->enabled)
+ goto end;
+
/* First ensure that probe events are created for this enabler. */
lttng_create_event_if_missing(enabler);
/* First ensure that probe events are created for this enabler. */
lttng_create_event_if_missing(enabler);
@@
-934,6
+937,7
@@
int lttng_enabler_ref_events(struct lttng_enabler *enabler)
/* TODO: merge event context. */
}
/* TODO: merge event context. */
}
+end:
return 0;
}
return 0;
}
This page took
0.027976 seconds
and
5
git commands to generate.