projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Use negative value for error code of lttng_ust_ctl_duplicate_ust_object_data
[lttng-ust.git]
/
src
/
lib
/
lttng-ust
/
lttng-context-cpu-id.c
diff --git
a/src/lib/lttng-ust/lttng-context-cpu-id.c
b/src/lib/lttng-ust/lttng-context-cpu-id.c
index 900b3c2e526bf1d76945c40d9e952250b70a9838..554e2c9b26fb5e5d18bd05602db50c3a884ad29d 100644
(file)
--- a/
src/lib/lttng-ust/lttng-context-cpu-id.c
+++ b/
src/lib/lttng-ust/lttng-context-cpu-id.c
@@
-19,26
+19,29
@@
#include <limits.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
#include <limits.h>
#include <lttng/ust-events.h>
#include <lttng/ust-tracer.h>
-#include "common/ringbuffer/getcpu.h"
-#include <lttng/ringbuffer-context.h>
+#include <lttng/ust-ringbuffer-context.h>
+
+#include "common/getcpu.h"
#include "context-internal.h"
static
size_t cpu_id_get_size(void *priv __attribute__((unused)),
#include "context-internal.h"
static
size_t cpu_id_get_size(void *priv __attribute__((unused)),
+ struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
size_t offset)
{
size_t size = 0;
size_t offset)
{
size_t size = 0;
- size += lttng_ust_
lib_
ring_buffer_align(offset, lttng_ust_rb_alignof(int));
+ size += lttng_ust_ring_buffer_align(offset, lttng_ust_rb_alignof(int));
size += sizeof(int);
return size;
}
static
void cpu_id_record(void *priv __attribute__((unused)),
size += sizeof(int);
return size;
}
static
void cpu_id_record(void *priv __attribute__((unused)),
- struct lttng_ust_lib_ring_buffer_ctx *ctx,
- struct lttng_ust_channel_buffer *chan)
+ struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
+ struct lttng_ust_ring_buffer_ctx *ctx,
+ struct lttng_ust_channel_buffer *chan)
{
int cpu;
{
int cpu;
@@
-48,6
+51,7
@@
void cpu_id_record(void *priv __attribute__((unused)),
static
void cpu_id_get_value(void *priv __attribute__((unused)),
static
void cpu_id_get_value(void *priv __attribute__((unused)),
+ struct lttng_ust_probe_ctx *probe_ctx __attribute__((unused)),
struct lttng_ust_ctx_value *value)
{
value->u.s64 = lttng_ust_get_cpu();
struct lttng_ust_ctx_value *value)
{
value->u.s64 = lttng_ust_get_cpu();
@@
-58,7
+62,7
@@
static const struct lttng_ust_ctx_field *ctx_field = lttng_ust_static_ctx_field(
lttng_ust_static_type_integer(sizeof(int) * CHAR_BIT,
lttng_ust_rb_alignof(int) * CHAR_BIT,
lttng_ust_is_signed_type(int),
lttng_ust_static_type_integer(sizeof(int) * CHAR_BIT,
lttng_ust_rb_alignof(int) * CHAR_BIT,
lttng_ust_is_signed_type(int),
- BYTE_ORDER, 10),
+
LTTNG_UST_
BYTE_ORDER, 10),
false, false),
cpu_id_get_size,
cpu_id_record,
false, false),
cpu_id_get_size,
cpu_id_record,
This page took
0.023893 seconds
and
4
git commands to generate.