projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: liblttng-ust-ctl: missing ring buffer and counter clients init/exit symbols
[lttng-ust.git]
/
liblttng-ust
/
lttng-context-vsuid.c
diff --git
a/liblttng-ust/lttng-context-vsuid.c
b/liblttng-ust/lttng-context-vsuid.c
index c7d0815179e720149a716fcd53aef75f702fa021..ff58a7412fde49fee1935ca1ff0bd0c4eae4717f 100644
(file)
--- a/
liblttng-ust/lttng-context-vsuid.c
+++ b/
liblttng-ust/lttng-context-vsuid.c
@@
-8,13
+8,14
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
+#include <limits.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include <lttng/ringbuffer-con
fig
.h>
+#include <lttng/ringbuffer-con
text
.h>
#include "context-internal.h"
#include "creds.h"
#include "context-internal.h"
#include "creds.h"
@@
-69,7
+70,7
@@
size_t vsuid_get_size(struct lttng_ust_ctx_field *field, size_t offset)
{
size_t size = 0;
{
size_t size = 0;
- size += l
ib_ring_buffer_align(offset, lttng
_alignof(uid_t));
+ size += l
ttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb
_alignof(uid_t));
size += sizeof(uid_t);
return size;
}
size += sizeof(uid_t);
return size;
}
@@
-77,13
+78,12
@@
size_t vsuid_get_size(struct lttng_ust_ctx_field *field, size_t offset)
static
void vsuid_record(struct lttng_ust_ctx_field *field,
struct lttng_ust_lib_ring_buffer_ctx *ctx,
static
void vsuid_record(struct lttng_ust_ctx_field *field,
struct lttng_ust_lib_ring_buffer_ctx *ctx,
- struct lttng_
channel
*chan)
+ struct lttng_
ust_channel_buffer
*chan)
{
uid_t vsuid;
vsuid = get_vsuid();
{
uid_t vsuid;
vsuid = get_vsuid();
- lib_ring_buffer_align_ctx(ctx, lttng_alignof(vsuid));
- chan->ops->event_write(ctx, &vsuid, sizeof(vsuid));
+ chan->ops->event_write(ctx, &vsuid, sizeof(vsuid), lttng_ust_rb_alignof(vsuid));
}
static
}
static
@@
-100,8
+100,8
@@
int lttng_add_vsuid_to_ctx(struct lttng_ust_ctx **ctx)
int ret;
type = lttng_ust_create_type_integer(sizeof(uid_t) * CHAR_BIT,
int ret;
type = lttng_ust_create_type_integer(sizeof(uid_t) * CHAR_BIT,
- lttng_alignof(uid_t) * CHAR_BIT,
- lttng_is_signed_type(uid_t),
+ lttng_
ust_rb_
alignof(uid_t) * CHAR_BIT,
+ lttng_
ust_
is_signed_type(uid_t),
BYTE_ORDER, 10);
if (!type)
return -ENOMEM;
BYTE_ORDER, 10);
if (!type)
return -ENOMEM;
This page took
0.02642 seconds
and
4
git commands to generate.