projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement dynamic types, and application context provider support
[lttng-ust.git]
/
liblttng-ust
/
lttng-ring-buffer-client.h
diff --git
a/liblttng-ust/lttng-ring-buffer-client.h
b/liblttng-ust/lttng-ring-buffer-client.h
index 3f1e2656437a13b20d4fcbfd8f2b429622b83c78..d219b79c91dfb0ea45658865a97b0dded461ac20 100644
(file)
--- a/
liblttng-ust/lttng-ring-buffer-client.h
+++ b/
liblttng-ust/lttng-ring-buffer-client.h
@@
-78,7
+78,7
@@
size_t ctx_get_size(size_t offset, struct lttng_ctx *ctx)
return 0;
offset += lib_ring_buffer_align(offset, ctx->largest_align);
for (i = 0; i < ctx->nr_fields; i++)
return 0;
offset += lib_ring_buffer_align(offset, ctx->largest_align);
for (i = 0; i < ctx->nr_fields; i++)
- offset += ctx->fields[i].get_size(offset);
+ offset += ctx->fields[i].get_size(
&ctx->fields[i],
offset);
return offset - orig_offset;
}
return offset - orig_offset;
}
@@
-185,7
+185,7
@@
void lttng_write_event_header(const struct lttng_ust_lib_ring_buffer_config *con
uint32_t event_id)
{
struct lttng_channel *lttng_chan = channel_get_private(ctx->chan);
uint32_t event_id)
{
struct lttng_channel *lttng_chan = channel_get_private(ctx->chan);
- struct lttng_
event *event = ctx->priv
;
+ struct lttng_
stack_ctx *lttng_ctx = ctx->priv2
;
if (caa_unlikely(ctx->rflags))
goto slow_path;
if (caa_unlikely(ctx->rflags))
goto slow_path;
@@
-220,8
+220,8
@@
void lttng_write_event_header(const struct lttng_ust_lib_ring_buffer_config *con
WARN_ON_ONCE(1);
}
WARN_ON_ONCE(1);
}
- ctx_record(ctx, lttng_chan, lttng_c
han->
ctx);
- ctx_record(ctx, lttng_chan,
event->
ctx);
+ ctx_record(ctx, lttng_chan, lttng_c
tx->chan_
ctx);
+ ctx_record(ctx, lttng_chan,
lttng_ctx->event_
ctx);
lib_ring_buffer_align_ctx(ctx, ctx->largest_align);
return;
lib_ring_buffer_align_ctx(ctx, ctx->largest_align);
return;
@@
-236,7
+236,7
@@
void lttng_write_event_header_slow(const struct lttng_ust_lib_ring_buffer_config
uint32_t event_id)
{
struct lttng_channel *lttng_chan = channel_get_private(ctx->chan);
uint32_t event_id)
{
struct lttng_channel *lttng_chan = channel_get_private(ctx->chan);
- struct lttng_
event *event = ctx->priv
;
+ struct lttng_
stack_ctx *lttng_ctx = ctx->priv2
;
switch (lttng_chan->header_type) {
case 1: /* compact */
switch (lttng_chan->header_type) {
case 1: /* compact */
@@
-293,8
+293,8
@@
void lttng_write_event_header_slow(const struct lttng_ust_lib_ring_buffer_config
default:
WARN_ON_ONCE(1);
}
default:
WARN_ON_ONCE(1);
}
- ctx_record(ctx, lttng_chan, lttng_c
han->
ctx);
- ctx_record(ctx, lttng_chan,
event->
ctx);
+ ctx_record(ctx, lttng_chan, lttng_c
tx->chan_
ctx);
+ ctx_record(ctx, lttng_chan,
lttng_ctx->event_
ctx);
lib_ring_buffer_align_ctx(ctx, ctx->largest_align);
}
lib_ring_buffer_align_ctx(ctx, ctx->largest_align);
}
This page took
0.024019 seconds
and
4
git commands to generate.