X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Fevents-internal.h;h=a727230ffffb8c21320b04b502e98ff4755987d1;hb=f3559e5b06b24ad0336211950792fa97398c5e9a;hp=57a7325eb62a3105eca41656e046c9613f01dec8;hpb=9cb5be7ee29abb8446e4ec971b897d979f24c8b5;p=lttng-modules.git diff --git a/include/lttng/events-internal.h b/include/lttng/events-internal.h index 57a7325e..a727230f 100644 --- a/include/lttng/events-internal.h +++ b/include/lttng/events-internal.h @@ -9,6 +9,7 @@ #define _LTTNG_EVENTS_INTERNAL_H #include +#include #include @@ -236,20 +237,19 @@ struct lttng_event_enabler_common { unsigned int enabled:1; uint64_t user_token; /* User-provided token. */ + + struct list_head node; /* list of enablers */ + bool published; /* published in list. */ }; struct lttng_event_recorder_enabler { struct lttng_event_enabler_common parent; - struct list_head node; /* per-session list of enablers */ - bool published; /* published in per-session list. */ struct lttng_kernel_channel_buffer *chan; }; struct lttng_event_notifier_enabler { struct lttng_event_enabler_common parent; uint64_t error_counter_index; - struct list_head node; /* List of event_notifier enablers */ - bool published; /* published in group list. */ struct lttng_event_notifier_group *group; /* head list of struct lttng_kernel_bytecode_node */ @@ -310,7 +310,7 @@ struct lttng_metadata_cache { atomic_t producing; /* Metadata being produced (incomplete) */ struct kref refcount; /* Metadata cache usage */ struct list_head metadata_stream; /* Metadata stream list */ - uuid_le uuid; /* Trace session unique ID (copy) */ + guid_t uuid; /* Trace session unique ID (copy) */ struct mutex lock; /* Produce/consume lock */ uint64_t version; /* Current version of the metadata */ }; @@ -460,7 +460,7 @@ struct lttng_kernel_session_private { struct list_head events; /* Event list head */ struct list_head list; /* Session list */ unsigned int free_chan_id; /* Next chan ID to allocate */ - uuid_le uuid; /* Trace session unique ID */ + guid_t uuid; /* Trace session unique ID */ struct lttng_metadata_cache *metadata_cache; unsigned int metadata_dumped:1, tstate:1; /* Transient enable state */ @@ -844,6 +844,9 @@ bool lttng_event_enabler_match_event(struct lttng_event_enabler_common *event_en bool lttng_event_enabler_desc_match_event(struct lttng_event_enabler_common *event_enabler, const struct lttng_kernel_event_desc *desc, struct lttng_kernel_event_common *event); +bool lttng_event_enabler_event_name_match_event(struct lttng_event_enabler_common *event_enabler, + const char *event_name, + struct lttng_kernel_event_common *event); void lttng_enabler_link_bytecode(const struct lttng_kernel_event_desc *event_desc, struct lttng_kernel_ctx *ctx, @@ -851,7 +854,7 @@ void lttng_enabler_link_bytecode(const struct lttng_kernel_event_desc *event_des struct list_head *enabler_bytecode_runtime_head); #if defined(CONFIG_HAVE_SYSCALL_TRACEPOINTS) -int lttng_syscalls_register_event(struct lttng_event_enabler_common *event_enabler); +int lttng_event_enabler_create_syscall_events_if_missing(struct lttng_event_enabler_common *event_enabler); int lttng_syscall_filter_enable_event(struct lttng_kernel_event_common *event); int lttng_syscall_filter_disable_event(struct lttng_kernel_event_common *event); @@ -863,7 +866,7 @@ long lttng_syscall_table_get_active_mask(struct lttng_kernel_syscall_table *sysc void lttng_syscall_table_set_wildcard_all(struct lttng_event_enabler_common *event_enabler); #else -static inline int lttng_syscalls_register_event(struct lttng_event_enabler_common *event_enabler) +static inline int lttng_event_enabler_create_syscall_events_if_missing(struct lttng_event_enabler_common *event_enabler) { return -ENOSYS; }