X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ftrace-kernel.h;h=b1534197136ddfe735f63a5a7404b4b460f35182;hp=2eb599272a0ceb15ce167b73b9e68ae37e9528f4;hb=9c9d917cfe2e6a9f35ef82cb64e442451210716f;hpb=ba985c3a0cd870cd253081b703e722d4bff537a7 diff --git a/src/bin/lttng-sessiond/trace-kernel.h b/src/bin/lttng-sessiond/trace-kernel.h index 2eb599272..b15341971 100644 --- a/src/bin/lttng-sessiond/trace-kernel.h +++ b/src/bin/lttng-sessiond/trace-kernel.h @@ -58,11 +58,13 @@ struct ltt_kernel_event { struct cds_list_head list; char *filter_expression; struct lttng_filter_bytecode *filter; + struct lttng_userspace_probe_location *userspace_probe_location; }; /* Kernel channel */ struct ltt_kernel_channel { int fd; + uint64_t key; /* Key to reference this channel with the consumer. */ int enabled; unsigned int stream_count; unsigned int event_count; @@ -80,6 +82,7 @@ struct ltt_kernel_channel { /* Metadata */ struct ltt_kernel_metadata { int fd; + uint64_t key; /* Key to reference this channel with the consumer. */ struct lttng_channel *conf; }; @@ -138,8 +141,9 @@ struct ltt_kernel_channel *trace_kernel_get_channel_by_name( struct ltt_kernel_session *trace_kernel_create_session(void); struct ltt_kernel_channel *trace_kernel_create_channel( struct lttng_channel *chan); -struct ltt_kernel_event *trace_kernel_create_event(struct lttng_event *ev, - char *filter_expression, struct lttng_filter_bytecode *filter); +enum lttng_error_code trace_kernel_create_event(struct lttng_event *ev, + char *filter_expression, struct lttng_filter_bytecode *filter, + struct ltt_kernel_event **kernel_event); struct ltt_kernel_metadata *trace_kernel_create_metadata(void); struct ltt_kernel_stream *trace_kernel_create_stream(const char *name, unsigned int count);