X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-sessiond%2Fcontext.h;h=e97e9489a0d7afe8625e24104926cb600e4ae6d1;hb=48842b309b2000205367409c0f29ca40ec3e251c;hp=c8cd627761f13cdc3a98a06fe714cd83325decd4;hpb=1e307fab325060d9db4e989c0fdc3cddf46f50f6;p=lttng-tools.git diff --git a/ltt-sessiond/context.h b/ltt-sessiond/context.h index c8cd62776..e97e9489a 100644 --- a/ltt-sessiond/context.h +++ b/ltt-sessiond/context.h @@ -18,12 +18,21 @@ #ifndef _LTT_CONTEXT_H #define _LTT_CONTEXT_H -#include +#include +#ifdef CONFIG_LTTNG_TOOLS_HAVE_UST +#include +#else +#include "lttng-ust-abi.h" +#endif -#include "trace.h" -int add_kernel_context(struct ltt_kernel_session *ksession, - struct lttng_kernel_context *kctx, char *event_name, - char *channel_name); +#include "trace-kernel.h" +#include "trace-ust.h" + +int context_kernel_add(struct ltt_kernel_session *ksession, + struct lttng_event_context *ctx, char *event_name, char *channel_name); +int context_ust_add(struct ltt_ust_session *ustsession, + struct lttng_event_context *ctx, char *event_name, + char *channel_name, int domain); #endif /* _LTT_CONTEXT_H */