X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent.h;h=21fac1ec09a3fba465e16dc74a7f396cb6c31201;hb=be42c96885c522f857f146fa6f7ae53856e3bed2;hp=4fa44560e628d833dcf7befcc1b013d7d4efbc4d;hpb=29c62722c4e1146fe6e7585308f3e4497e39e908;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/event.h b/src/bin/lttng-sessiond/event.h index 4fa44560e..21fac1ec0 100644 --- a/src/bin/lttng-sessiond/event.h +++ b/src/bin/lttng-sessiond/event.h @@ -18,20 +18,19 @@ #ifndef _LTT_EVENT_H #define _LTT_EVENT_H -#include "agent.h" #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_syscall(struct ltt_kernel_channel *kchan, - char *syscall_name); -int event_kernel_disable_all_tracepoints(struct ltt_kernel_channel *kchan); -int event_kernel_disable_all(struct ltt_kernel_channel *kchan); +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_tracepoint(struct ltt_kernel_channel *kchan, - struct lttng_event *event); -int event_kernel_enable_syscall(struct ltt_kernel_channel *kchan, - char *syscall_name); +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, @@ -41,13 +40,6 @@ int event_ust_enable_tracepoint(struct ltt_ust_session *usess, 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_agent_enable(struct ltt_ust_session *usess, struct agent *agt, struct lttng_event *event, struct lttng_filter_bytecode *filter); int event_agent_enable_all(struct ltt_ust_session *usess, struct agent *agt,