Fix: statedump namespaced pid, tid and ppid
[lttng-modules.git] / lttng-ring-buffer-client.h
index cf42e688eccf5364e4874fd3ab0f24d4634b6240..cf2645a5912361ba23ec206114690f315ddba46c 100644 (file)
@@ -60,7 +60,7 @@ struct packet_header {
                /* Stream packet context */
                uint64_t timestamp_begin;       /* Cycle count at subbuffer start */
                uint64_t timestamp_end;         /* Cycle count at subbuffer end */
-               uint32_t events_discarded;      /*
+               unsigned long events_discarded; /*
                                                 * Events lost in this subbuffer since
                                                 * the beginning of the trace.
                                                 * (may overflow)
@@ -513,7 +513,7 @@ static
 void lttng_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);
+       lib_ring_buffer_copy_from_user_inatomic(&client_config, ctx, src, len);
 }
 
 static
This page took 0.023143 seconds and 4 git commands to generate.