"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lttng-ring-buffer-client.h" between
lttng-modules-2.13.2.tar.bz2 and lttng-modules-2.13.3.tar.bz2

About: LTTng-modules (Linux Trace Toolkit Next Generation) is a system software package for correlated tracing of the Linux kernel, applications and libraries: This package contains the Linux kernel tracing modules.

lttng-ring-buffer-client.h  (lttng-modules-2.13.2.tar.bz2):lttng-ring-buffer-client.h  (lttng-modules-2.13.3.tar.bz2)
skipping to change at line 380 skipping to change at line 380
subbuf_idx; subbuf_idx;
header->ctx.events_discarded = 0; header->ctx.events_discarded = 0;
header->ctx.cpu_id = buf->backend.cpu; header->ctx.cpu_id = buf->backend.cpu;
} }
/* /*
* offset is assumed to never be 0 here : never deliver a completely empty * offset is assumed to never be 0 here : never deliver a completely empty
* subbuffer. data_size is between 1 and subbuf_size. * subbuffer. data_size is between 1 and subbuf_size.
*/ */
static void client_buffer_end(struct lttng_kernel_ring_buffer *buf, u64 tsc, static void client_buffer_end(struct lttng_kernel_ring_buffer *buf, u64 tsc,
unsigned int subbuf_idx, unsigned long data_size) unsigned int subbuf_idx, unsigned long data_size,
const struct lttng_kernel_ring_buffer_ctx *ctx)
{ {
struct lttng_kernel_ring_buffer_channel *chan = buf->backend.chan; struct lttng_kernel_ring_buffer_channel *chan = buf->backend.chan;
struct packet_header *header = struct packet_header *header =
(struct packet_header *) (struct packet_header *)
lib_ring_buffer_offset_address(&buf->backend, lib_ring_buffer_offset_address(&buf->backend,
subbuf_idx * chan->backend.subbuf_size); subbuf_idx * chan->backend.subbuf_size);
unsigned long records_lost = 0; unsigned long records_lost = 0;
header->ctx.timestamp_end = tsc; header->ctx.timestamp_end = tsc;
header->ctx.content_size = header->ctx.content_size =
(uint64_t) data_size * CHAR_BIT; /* in bits */ (uint64_t) data_size * CHAR_BIT; /* in bits */
header->ctx.packet_size = header->ctx.packet_size =
(uint64_t) PAGE_ALIGN(data_size) * CHAR_BIT; /* in bits */ (uint64_t) PAGE_ALIGN(data_size) * CHAR_BIT; /* in bits */
records_lost += lib_ring_buffer_get_records_lost_full(&client_config, buf records_lost += lib_ring_buffer_get_records_lost_full(&client_config, ctx
); );
records_lost += lib_ring_buffer_get_records_lost_wrap(&client_config, buf records_lost += lib_ring_buffer_get_records_lost_wrap(&client_config, ctx
); );
records_lost += lib_ring_buffer_get_records_lost_big(&client_config, buf) records_lost += lib_ring_buffer_get_records_lost_big(&client_config, ctx)
; ;
header->ctx.events_discarded = records_lost; header->ctx.events_discarded = records_lost;
} }
static int client_buffer_create(struct lttng_kernel_ring_buffer *buf, void *priv , static int client_buffer_create(struct lttng_kernel_ring_buffer *buf, void *priv ,
int cpu, const char *name) int cpu, const char *name)
{ {
return 0; return 0;
} }
static void client_buffer_finalize(struct lttng_kernel_ring_buffer *buf, void *p riv, int cpu) static void client_buffer_finalize(struct lttng_kernel_ring_buffer *buf, void *p riv, int cpu)
 End of changes. 2 change blocks. 
7 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)