projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce ustctl_write_one_packet_to_channel
[lttng-ust.git]
/
liblttng-ust
/
lttng-events.c
diff --git
a/liblttng-ust/lttng-events.c
b/liblttng-ust/lttng-events.c
index ca8587306c2c37b6c6f93ac7ff7cc39a2bfb13c7..34c708f6b67b1d7dd2ce3b5248d45635bdd3a9b0 100644
(file)
--- a/
liblttng-ust/lttng-events.c
+++ b/
liblttng-ust/lttng-events.c
@@
-45,7
+45,7
@@
#include <usterr-signal-safe.h>
#include <helper.h>
#include <usterr-signal-safe.h>
#include <helper.h>
-#include <ust-ctl.h>
+#include <
lttng/
ust-ctl.h>
#include <ust-comm.h>
#include "error.h"
#include "compat.h"
#include <ust-comm.h>
#include "error.h"
#include "compat.h"
@@
-260,7
+260,7
@@
int lttng_session_enable(struct lttng_session *session)
*/
cds_list_for_each_entry(chan, &session->chan_head, node) {
const struct lttng_ctx *ctx;
*/
cds_list_for_each_entry(chan, &session->chan_head, node) {
const struct lttng_ctx *ctx;
- const struct lttng_
event
_field *fields = NULL;
+ const struct lttng_
ctx
_field *fields = NULL;
size_t nr_fields = 0;
uint32_t chan_id;
size_t nr_fields = 0;
uint32_t chan_id;
@@
-270,7
+270,7
@@
int lttng_session_enable(struct lttng_session *session)
ctx = chan->ctx;
if (ctx) {
nr_fields = ctx->nr_fields;
ctx = chan->ctx;
if (ctx) {
nr_fields = ctx->nr_fields;
- fields =
&ctx->fields->event_field
;
+ fields =
ctx->fields
;
}
ret = ustcomm_register_channel(notify_socket,
session->objd,
}
ret = ustcomm_register_channel(notify_socket,
session->objd,
@@
-635,12
+635,9
@@
int lttng_enabler_ref_events(struct lttng_enabler *enabler)
/*
* Called at library load: connect the probe on all enablers matching
* this event.
/*
* Called at library load: connect the probe on all enablers matching
* this event.
- * called with session mutex held.
- * TODO: currently, for each desc added, we iterate on all event desc
- * (inefficient). We should create specific code that only target the
- * added desc.
+ * Called with session mutex held.
*/
*/
-int lttng_fix_pending_event
_desc(const struct lttng_event_desc *desc
)
+int lttng_fix_pending_event
s(void
)
{
struct lttng_session *session;
{
struct lttng_session *session;
This page took
0.02496 seconds
and
4
git commands to generate.