projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove event id parameter from event_reserve callback
[lttng-modules.git]
/
src
/
lttng-ring-buffer-client.h
diff --git
a/src/lttng-ring-buffer-client.h
b/src/lttng-ring-buffer-client.h
index ff404368edc6fac5ae6b48fddf0658f53a9bd842..9ac2cfe9d348d057e7b30199cb1072766c69bd8d 100644
(file)
--- a/
src/lttng-ring-buffer-client.h
+++ b/
src/lttng-ring-buffer-client.h
@@
-13,6
+13,7
@@
#include <wrapper/vmalloc.h> /* for wrapper_vmalloc_sync_mappings() */
#include <wrapper/trace-clock.h>
#include <lttng/events.h>
#include <wrapper/vmalloc.h> /* for wrapper_vmalloc_sync_mappings() */
#include <wrapper/trace-clock.h>
#include <lttng/events.h>
+#include <lttng/events-internal.h>
#include <lttng/tracer.h>
#include <ringbuffer/frontend_types.h>
#include <lttng/tracer.h>
#include <ringbuffer/frontend_types.h>
@@
-604,17
+605,18
@@
void lttng_buffer_read_close(struct lib_ring_buffer *buf)
}
static
}
static
-int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx,
- uint32_t event_id)
+int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx)
{
struct lttng_kernel_event_recorder *event_recorder = ctx->client_priv;
struct lttng_channel *lttng_chan = event_recorder->chan;
struct lttng_client_ctx client_ctx;
int ret, cpu;
{
struct lttng_kernel_event_recorder *event_recorder = ctx->client_priv;
struct lttng_channel *lttng_chan = event_recorder->chan;
struct lttng_client_ctx client_ctx;
int ret, cpu;
+ uint32_t event_id;
cpu = lib_ring_buffer_get_cpu(&client_config);
if (unlikely(cpu < 0))
return -EPERM;
cpu = lib_ring_buffer_get_cpu(&client_config);
if (unlikely(cpu < 0))
return -EPERM;
+ event_id = event_recorder->priv->id;
memset(&ctx->priv, 0, sizeof(ctx->priv));
ctx->priv.chan = lttng_chan->chan;
ctx->priv.reserve_cpu = cpu;
memset(&ctx->priv, 0, sizeof(ctx->priv));
ctx->priv.chan = lttng_chan->chan;
ctx->priv.reserve_cpu = cpu;
This page took
0.033349 seconds
and
4
git commands to generate.