X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-events.h;h=82b88e851769fe5ed813945921311d1ad72244b9;hb=5539ecc8f6ab0a597e5125ff6a16d1a39017417f;hp=484534c4272948208a0b426468282c9ae78d8873;hpb=92d9f5e6df0f72842b28ccd303569c88e183325a;p=lttng-modules.git diff --git a/lttng-events.h b/lttng-events.h index 484534c4..82b88e85 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -358,6 +358,12 @@ struct lttng_channel_ops { int (*current_timestamp) (const struct lib_ring_buffer_config *config, struct lib_ring_buffer *bufb, uint64_t *ts); + int (*sequence_number) (const struct lib_ring_buffer_config *config, + struct lib_ring_buffer *bufb, + uint64_t *seq); + int (*instance_id) (const struct lib_ring_buffer_config *config, + struct lib_ring_buffer *bufb, + uint64_t *id); }; struct lttng_transport { @@ -675,6 +681,8 @@ int lttng_kretprobes_register(const char *name, struct lttng_event *event_exit); void lttng_kretprobes_unregister(struct lttng_event *event); void lttng_kretprobes_destroy_private(struct lttng_event *event); +int lttng_kretprobes_event_enable_state(struct lttng_event *event, + int enable); #else static inline int lttng_kretprobes_register(const char *name, @@ -696,6 +704,13 @@ static inline void lttng_kretprobes_destroy_private(struct lttng_event *event) { } + +static inline +int lttng_kretprobes_event_enable_state(struct lttng_event *event, + int enable) +{ + return -ENOSYS; +} #endif #ifdef CONFIG_DYNAMIC_FTRACE