projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: update kmem instrumentation for kernel 4.15
[lttng-modules.git]
/
lttng-ring-buffer-metadata-client.h
diff --git
a/lttng-ring-buffer-metadata-client.h
b/lttng-ring-buffer-metadata-client.h
index 446df89772ac885a90fc639d426f868ff53e1549..b2c0c82147999d2c09042431cf65ba9313802965 100644
(file)
--- a/
lttng-ring-buffer-metadata-client.h
+++ b/
lttng-ring-buffer-metadata-client.h
@@
-22,9
+22,9
@@
#include <linux/module.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/types.h>
-#include
"wrapper/vmalloc.h"
/* for wrapper_vmalloc_sync_all() */
-#include
"lttng-events.h"
-#include
"lttng-tracer.h"
+#include
<wrapper/vmalloc.h>
/* for wrapper_vmalloc_sync_all() */
+#include
<lttng-events.h>
+#include
<lttng-tracer.h>
static struct lttng_transport lttng_relay_transport;
static struct lttng_transport lttng_relay_transport;
@@
-55,7
+55,7
@@
u64 lib_ring_buffer_clock_read(struct channel *chan)
}
static inline
}
static inline
-
unsigned char
record_header_size(const struct lib_ring_buffer_config *config,
+
size_t
record_header_size(const struct lib_ring_buffer_config *config,
struct channel *chan, size_t offset,
size_t *pre_header_padding,
struct lib_ring_buffer_ctx *ctx)
struct channel *chan, size_t offset,
size_t *pre_header_padding,
struct lib_ring_buffer_ctx *ctx)
@@
-63,7
+63,7
@@
unsigned char record_header_size(const struct lib_ring_buffer_config *config,
return 0;
}
return 0;
}
-#include
"wrapper/ringbuffer/api.h"
+#include
<wrapper/ringbuffer/api.h>
static u64 client_ring_buffer_clock_read(struct channel *chan)
{
static u64 client_ring_buffer_clock_read(struct channel *chan)
{
@@
-206,6
+206,14
@@
static int client_sequence_number(const struct lib_ring_buffer_config *config,
return -ENOSYS;
}
return -ENOSYS;
}
+static
+int client_instance_id(const struct lib_ring_buffer_config *config,
+ struct lib_ring_buffer *bufb,
+ uint64_t *id)
+{
+ return -ENOSYS;
+}
+
static const struct lib_ring_buffer_config client_config = {
.cb.ring_buffer_clock_read = client_ring_buffer_clock_read,
.cb.record_header_size = client_record_header_size,
static const struct lib_ring_buffer_config client_config = {
.cb.ring_buffer_clock_read = client_ring_buffer_clock_read,
.cb.record_header_size = client_record_header_size,
@@
-304,7
+312,15
@@
void lttng_buffer_read_close(struct lib_ring_buffer *buf)
static
int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx, uint32_t event_id)
{
static
int lttng_event_reserve(struct lib_ring_buffer_ctx *ctx, uint32_t event_id)
{
- return lib_ring_buffer_reserve(&client_config, ctx);
+ int ret;
+
+ ret = lib_ring_buffer_reserve(&client_config, ctx);
+ if (ret)
+ return ret;
+ lib_ring_buffer_backend_get_pages(&client_config, ctx,
+ &ctx->backend_pages);
+ return 0;
+
}
static
}
static
@@
-413,6
+429,7
@@
static struct lttng_transport lttng_relay_transport = {
.stream_id = client_stream_id,
.current_timestamp = client_current_timestamp,
.sequence_number = client_sequence_number,
.stream_id = client_stream_id,
.current_timestamp = client_current_timestamp,
.sequence_number = client_sequence_number,
+ .instance_id = client_instance_id,
},
};
},
};
This page took
0.025442 seconds
and
4
git commands to generate.