bin: compile lttng-sessiond as C++
[lttng-tools.git] / src / common / kernel-ctl / kernel-ctl.h
index b73a1d68effbd0eb507be842ead973dec2052616..c2fa6408bd53c4bfa623e2ad97f20ed66284f32f 100644 (file)
 #include <common/lttng-kernel-old.h>
 #include <common/sessiond-comm/sessiond-comm.h>        /* for struct lttng_filter_bytecode */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 int kernctl_create_session(int fd);
 int kernctl_open_metadata(int fd, struct lttng_channel_attr *chops);
 int kernctl_create_channel(int fd, struct lttng_channel_attr *chops);
 int kernctl_create_stream(int fd);
-int kernctl_create_event(int fd, struct lttng_kernel_event *ev);
-int kernctl_add_context(int fd, struct lttng_kernel_context *ctx);
+int kernctl_create_event(int fd, struct lttng_kernel_abi_event *ev);
+int kernctl_add_context(int fd, struct lttng_kernel_abi_context *ctx);
 
 int kernctl_enable(int fd);
 int kernctl_disable(int fd);
@@ -32,17 +36,25 @@ int kernctl_create_event_notifier_group(int fd);
 
 /* Apply on event notifier_group file descriptor. */
 int kernctl_create_event_notifier_group_notification_fd(int fd);
+int kernctl_create_event_notifier_group_error_counter(int fd,
+               const struct lttng_kernel_abi_counter_conf *error_counter_conf);
 int kernctl_create_event_notifier(int fd,
-               const struct lttng_kernel_event_notifier *event_notifier);
+               const struct lttng_kernel_abi_event_notifier *event_notifier);
+
+int kernctl_counter_get_aggregate_value(int counter_fd,
+               struct lttng_kernel_abi_counter_aggregate *value);
+int kernctl_counter_clear(int counter_fd,
+               struct lttng_kernel_abi_counter_clear *clear);
 
 /* Apply on event file descriptor. */
-int kernctl_filter(int fd, struct lttng_filter_bytecode *filter);
-int kernctl_add_callsite(int fd, struct lttng_kernel_event_callsite *callsite);
+int kernctl_filter(int fd, const struct lttng_bytecode *filter);
+int kernctl_add_callsite(int fd, struct lttng_kernel_abi_event_callsite *callsite);
+int kernctl_capture(int fd, const struct lttng_bytecode *capture);
 
 int kernctl_tracepoint_list(int fd);
 int kernctl_syscall_list(int fd);
-int kernctl_tracer_version(int fd, struct lttng_kernel_tracer_version *v);
-int kernctl_tracer_abi_version(int fd, struct lttng_kernel_tracer_abi_version *v);
+int kernctl_tracer_version(int fd, struct lttng_kernel_abi_tracer_version *v);
+int kernctl_tracer_abi_version(int fd, struct lttng_kernel_abi_tracer_abi_version *v);
 int kernctl_wait_quiescent(int fd);
 
 /*
@@ -117,4 +129,8 @@ int kernctl_get_current_timestamp(int fd, uint64_t *ts);
 int kernctl_get_sequence_number(int fd, uint64_t *seq);
 int kernctl_get_instance_id(int fd, uint64_t *seq);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _LTTNG_KERNEL_CTL_H */
This page took 0.02382 seconds and 4 git commands to generate.