X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fust-events.h;h=0ccef46ab33fa8769c0b3fd09424bfd81c4187a0;hb=576599a076803d5306b939bfd8333202919bb56e;hp=6c272172a3a40dc61fe6a52eca601500d6f5dd41;hpb=a60d70e608a727038ebc27e493aac65b49932146;p=lttng-ust.git diff --git a/include/lttng/ust-events.h b/include/lttng/ust-events.h index 6c272172..0ccef46a 100644 --- a/include/lttng/ust-events.h +++ b/include/lttng/ust-events.h @@ -25,7 +25,6 @@ #include #include #include -#include struct ltt_channel; struct ltt_session; @@ -157,7 +156,7 @@ struct lttng_enum { const char *name; struct lttng_type container_type; const struct lttng_enum_entry *entries; - nsigned int len; + unsigned int len; }; /* Event field description */ @@ -196,6 +195,7 @@ struct lttng_probe_desc { 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; @@ -303,9 +303,15 @@ struct ltt_transport { struct ltt_channel_ops ops; }; -struct ltt_tracepoint_list { - struct tracepoint_iter iter; - int got_first; +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); @@ -330,9 +336,10 @@ struct ltt_channel *ltt_global_channel_create(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);