X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent.h;h=7c5231decd04de5ba9c6679f96555ee6030311bc;hp=1297b6c486cca948a0ac309d635c12bd5ff5c1ee;hb=b1e7fe2d0294fc0a37152f2bdbeb48958dadbedb;hpb=be6a6276f221b9bc83c16e3c3ba6ca76f5f35350 diff --git a/src/bin/lttng-sessiond/event.h b/src/bin/lttng-sessiond/event.h index 1297b6c48..7c5231dec 100644 --- a/src/bin/lttng-sessiond/event.h +++ b/src/bin/lttng-sessiond/event.h @@ -20,41 +20,41 @@ #include "trace-kernel.h" -int event_kernel_disable_tracepoint(struct ltt_kernel_channel *kchan, +struct agent; + +int event_kernel_disable_event(struct ltt_kernel_channel *kchan, char *event_name); -int event_kernel_disable_all_syscalls(struct ltt_kernel_channel *kchan); -int event_kernel_disable_all_tracepoints(struct ltt_kernel_channel *kchan); -int event_kernel_disable_all(struct ltt_kernel_channel *kchan); - -int event_kernel_enable_tracepoint(struct ltt_kernel_channel *kchan, - struct lttng_event *event); -int event_kernel_enable_all_tracepoints(struct ltt_kernel_channel *kchan, - int kernel_tracer_fd); -int event_kernel_enable_all_syscalls(struct ltt_kernel_channel *kchan, - int kernel_tracer_fd); -int event_kernel_enable_all(struct ltt_kernel_channel *kchan, - int kernel_tracer_fd); +int event_kernel_disable_event_type(struct ltt_kernel_channel *kchan, + enum lttng_event_type type); +int event_kernel_disable_event_all(struct ltt_kernel_channel *kchan); + +int event_kernel_enable_event(struct ltt_kernel_channel *kchan, + struct lttng_event *event, char *filter_expression, + struct lttng_filter_bytecode *filter); int event_ust_enable_tracepoint(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan, struct lttng_event *event, char *filter_expression, struct lttng_filter_bytecode *filter, - struct lttng_event_exclusion *exclusion); + struct lttng_event_exclusion *exclusion, + bool internal_event); int event_ust_disable_tracepoint(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan, char *event_name); -int event_ust_enable_all_tracepoints(struct ltt_ust_session *usess, - struct ltt_ust_channel *uchan, - char *filter_expression, - struct lttng_filter_bytecode *filter); + int event_ust_disable_all_tracepoints(struct ltt_ust_session *usess, struct ltt_ust_channel *uchan); -int event_jul_enable(struct ltt_ust_session *usess, struct lttng_event *event, - struct lttng_filter_bytecode *filter); -int event_jul_enable_all(struct ltt_ust_session *usess, - struct lttng_event *event, struct lttng_filter_bytecode *filter); +int event_agent_enable(struct ltt_ust_session *usess, struct agent *agt, + struct lttng_event *event, struct lttng_filter_bytecode *filter, + char *filter_expression); +int event_agent_enable_all(struct ltt_ust_session *usess, struct agent *agt, + struct lttng_event *event, struct lttng_filter_bytecode *filter, + char *filter_expression); + +int event_agent_disable(struct ltt_ust_session *usess, struct agent *agt, + char *event_name); +int event_agent_disable_all(struct ltt_ust_session *usess, struct agent *agt); -int event_jul_disable(struct ltt_ust_session *usess, char *event_name); -int event_jul_disable_all(struct ltt_ust_session *usess); +const char *event_get_default_agent_ust_name(enum lttng_domain_type domain); #endif /* _LTT_EVENT_H */