"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lttng-ring-buffer-metadata-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-metadata-client.h  (lttng-modules-2.13.2.tar.bz2):lttng-ring-buffer-metadata-client.h  (lttng-modules-2.13.3.tar.bz2)
skipping to change at line 113 skipping to change at line 113
header->checksum_scheme = 0; /* 0 if unused */ header->checksum_scheme = 0; /* 0 if unused */
header->major = CTF_SPEC_MAJOR; header->major = CTF_SPEC_MAJOR;
header->minor = CTF_SPEC_MINOR; header->minor = CTF_SPEC_MINOR;
} }
/* /*
* 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 metadata_packet_header *header = struct metadata_packet_header *header =
(struct metadata_packet_header *) (struct metadata_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->content_size = data_size * CHAR_BIT; /* in bits */ header->content_size = data_size * CHAR_BIT; /* in bits */
header->packet_size = PAGE_ALIGN(data_size) * CHAR_BIT; /* in bits */ header->packet_size = PAGE_ALIGN(data_size) * CHAR_BIT; /* in bits */
/* /*
* We do not care about the records lost count, because the metadata * We do not care about the records lost count, because the metadata
* channel waits and retry. * channel waits and retry.
*/ */
(void) lib_ring_buffer_get_records_lost_full(&client_config, buf); (void) 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)
; ;
WARN_ON_ONCE(records_lost != 0); WARN_ON_ONCE(records_lost != 0);
} }
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. 
6 lines changed or deleted 7 lines changed or added

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