const struct lttng_event_desc *event_desc;
unsigned int nr_events;
struct cds_list_head head; /* chain registered probes */
+ struct tracepoint_loglevel *loglevels;
};
struct ust_pending_probe;
struct ltt_channel_ops ops;
};
+struct tracepoint_loglevel_enum_entry {
+ const char *identifier;
+ long value;
+};
+
+/* mapping between tracepoint and loglevel */
+struct tracepoint_loglevel {
+ const char *name;
+ const struct tracepoint_loglevel_enum_entry *loglevel;
+};
+
struct ltt_session *ltt_session_create(void);
int ltt_session_enable(struct ltt_session *session);
int ltt_session_disable(struct ltt_session *session);
int *shm_fd, int *wait_fd,
uint64_t *memory_map_size);
-struct ltt_event *ltt_event_create(struct ltt_channel *chan,
- struct lttng_ust_event *event_param,
- void *filter);
+int ltt_event_create(struct ltt_channel *chan,
+ struct lttng_ust_event *event_param,
+ void *filter,
+ struct ltt_event **event);
int ltt_channel_enable(struct ltt_channel *channel);
int ltt_channel_disable(struct ltt_channel *channel);