X-Git-Url: https://git.lttng.org/?p=lttng-modules.git;a=blobdiff_plain;f=include%2Flttng%2Fevents.h;h=f852676b7ef0b5907055630d2daddedb46a5dba5;hp=9cc552bc97add3f0d4e56d6938652f88abf20d2b;hb=8a57ec025ffbe56153748fd69b60118862707182;hpb=4a399b764e79f280a434da2201a5c3e30490aa9e diff --git a/include/lttng/events.h b/include/lttng/events.h index 9cc552bc..f852676b 100644 --- a/include/lttng/events.h +++ b/include/lttng/events.h @@ -28,7 +28,7 @@ struct lttng_channel; struct lttng_session; struct lttng_metadata_cache; -struct lib_ring_buffer_ctx; +struct lttng_kernel_ring_buffer_ctx; struct perf_event; struct perf_event_attr; struct lib_ring_buffer_config; @@ -374,17 +374,17 @@ struct lttng_kernel_event_notifier { struct lttng_kernel_channel_buffer_ops { struct lttng_kernel_channel_buffer_ops_private *priv; /* Private channel buffer ops interface. */ - int (*event_reserve)(struct lib_ring_buffer_ctx *ctx); - void (*event_commit)(struct lib_ring_buffer_ctx *ctx); - void (*event_write)(struct lib_ring_buffer_ctx *ctx, const void *src, + int (*event_reserve)(struct lttng_kernel_ring_buffer_ctx *ctx); + void (*event_commit)(struct lttng_kernel_ring_buffer_ctx *ctx); + void (*event_write)(struct lttng_kernel_ring_buffer_ctx *ctx, const void *src, size_t len); - void (*event_write_from_user)(struct lib_ring_buffer_ctx *ctx, + void (*event_write_from_user)(struct lttng_kernel_ring_buffer_ctx *ctx, const void *src, size_t len); - void (*event_memset)(struct lib_ring_buffer_ctx *ctx, + void (*event_memset)(struct lttng_kernel_ring_buffer_ctx *ctx, int c, size_t len); - void (*event_strcpy)(struct lib_ring_buffer_ctx *ctx, const char *src, + void (*event_strcpy)(struct lttng_kernel_ring_buffer_ctx *ctx, const char *src, size_t len); - void (*event_strcpy_from_user)(struct lib_ring_buffer_ctx *ctx, + void (*event_strcpy_from_user)(struct lttng_kernel_ring_buffer_ctx *ctx, const char __user *src, size_t len); };