X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttng-events.h;h=82b88e851769fe5ed813945921311d1ad72244b9;hb=a0493bef1367458230b0319401f8533b0400cea2;hp=d2a039e8f664cacf5aea2d91b86aafdd7e31acaa;hpb=5b3cf4f924befda843a7736daf84f8ecae5e86a4;p=lttng-modules.git diff --git a/lttng-events.h b/lttng-events.h index d2a039e8..82b88e85 100644 --- a/lttng-events.h +++ b/lttng-events.h @@ -361,6 +361,9 @@ struct lttng_channel_ops { 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 { @@ -678,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, @@ -699,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