projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
copy_from_user and memset
[lttng-modules.git]
/
ltt-ring-buffer-client.h
diff --git
a/ltt-ring-buffer-client.h
b/ltt-ring-buffer-client.h
index 7ed86fbb5280a2c275ca89c24b9b4ec66257e5df..f71047f1a999e0f2971fdd827cf6df08aa19965a 100644
(file)
--- a/
ltt-ring-buffer-client.h
+++ b/
ltt-ring-buffer-client.h
@@
-480,6
+480,13
@@
void ltt_event_write(struct lib_ring_buffer_ctx *ctx, const void *src,
lib_ring_buffer_write(&client_config, ctx, src, len);
}
lib_ring_buffer_write(&client_config, ctx, src, len);
}
+static
+void ltt_event_write_from_user(struct lib_ring_buffer_ctx *ctx,
+ const void __user *src, size_t len)
+{
+ lib_ring_buffer_copy_from_user(&client_config, ctx, src, len);
+}
+
static
wait_queue_head_t *ltt_get_writer_buf_wait_queue(struct channel *chan, int cpu)
{
static
wait_queue_head_t *ltt_get_writer_buf_wait_queue(struct channel *chan, int cpu)
{
@@
-519,6
+526,7
@@
static struct ltt_transport ltt_relay_transport = {
.event_reserve = ltt_event_reserve,
.event_commit = ltt_event_commit,
.event_write = ltt_event_write,
.event_reserve = ltt_event_reserve,
.event_commit = ltt_event_commit,
.event_write = ltt_event_write,
+ .event_write_from_user = ltt_event_write_from_user,
.packet_avail_size = NULL, /* Would be racy anyway */
.get_writer_buf_wait_queue = ltt_get_writer_buf_wait_queue,
.get_hp_wait_queue = ltt_get_hp_wait_queue,
.packet_avail_size = NULL, /* Would be racy anyway */
.get_writer_buf_wait_queue = ltt_get_writer_buf_wait_queue,
.get_hp_wait_queue = ltt_get_hp_wait_queue,
This page took
0.022953 seconds
and
4
git commands to generate.