projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'ctf_unused' tracepoint field type
[lttng-ust.git]
/
liblttng-ust
/
lttng-context-vegid.c
diff --git
a/liblttng-ust/lttng-context-vegid.c
b/liblttng-ust/lttng-context-vegid.c
index 488bfdd814a731fac011985d02c09fbe677d6975..6b7d06981012097663b410c5a96ba5aded0e12f5 100644
(file)
--- a/
liblttng-ust/lttng-context-vegid.c
+++ b/
liblttng-ust/lttng-context-vegid.c
@@
-8,6
+8,7
@@
*/
#define _LGPL_SOURCE
*/
#define _LGPL_SOURCE
+#include <limits.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
@@
-61,29
+62,29
@@
void lttng_context_vegid_reset(void)
}
static
}
static
-size_t vegid_get_size(struct lttng_ust_ctx_field *field, size_t offset)
+size_t vegid_get_size(struct lttng_ust_ctx_field *field __attribute__((unused)),
+ size_t offset)
{
size_t size = 0;
{
size_t size = 0;
- size += l
ib_ring_buffer_align(offset, lttng
_alignof(gid_t));
+ size += l
ttng_ust_lib_ring_buffer_align(offset, lttng_ust_rb
_alignof(gid_t));
size += sizeof(gid_t);
return size;
}
static
size += sizeof(gid_t);
return size;
}
static
-void vegid_record(struct lttng_ust_ctx_field *field,
+void vegid_record(struct lttng_ust_ctx_field *field
__attribute__((unused))
,
struct lttng_ust_lib_ring_buffer_ctx *ctx,
struct lttng_ust_lib_ring_buffer_ctx *ctx,
- struct lttng_
channel
*chan)
+ struct lttng_
ust_channel_buffer
*chan)
{
gid_t vegid;
vegid = get_vegid();
{
gid_t vegid;
vegid = get_vegid();
- lib_ring_buffer_align_ctx(ctx, lttng_alignof(vegid));
- chan->ops->event_write(ctx, &vegid, sizeof(vegid));
+ chan->ops->event_write(ctx, &vegid, sizeof(vegid), lttng_ust_rb_alignof(vegid));
}
static
}
static
-void vegid_get_value(struct lttng_ust_ctx_field *field,
+void vegid_get_value(struct lttng_ust_ctx_field *field
__attribute__((unused))
,
struct lttng_ust_ctx_value *value)
{
value->u.s64 = get_vegid();
struct lttng_ust_ctx_value *value)
{
value->u.s64 = get_vegid();
@@
-96,8
+97,8
@@
int lttng_add_vegid_to_ctx(struct lttng_ust_ctx **ctx)
int ret;
type = lttng_ust_create_type_integer(sizeof(gid_t) * CHAR_BIT,
int ret;
type = lttng_ust_create_type_integer(sizeof(gid_t) * CHAR_BIT,
- lttng_alignof(gid_t) * CHAR_BIT,
- lttng_is_signed_type(gid_t),
+ lttng_
ust_rb_
alignof(gid_t) * CHAR_BIT,
+ lttng_
ust_
is_signed_type(gid_t),
BYTE_ORDER, 10);
if (!type)
return -ENOMEM;
BYTE_ORDER, 10);
if (!type)
return -ENOMEM;
This page took
0.02404 seconds
and
4
git commands to generate.