"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/ringbuffer/frontend_internal.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.

frontend_internal.h  (lttng-modules-2.13.2.tar.bz2):frontend_internal.h  (lttng-modules-2.13.3.tar.bz2)
skipping to change at line 151 skipping to change at line 151
void lib_ring_buffer_switch_slow(struct lttng_kernel_ring_buffer *buf, void lib_ring_buffer_switch_slow(struct lttng_kernel_ring_buffer *buf,
enum switch_mode mode); enum switch_mode mode);
extern extern
void lib_ring_buffer_check_deliver_slow(const struct lttng_kernel_ring_buffer_co nfig *config, void lib_ring_buffer_check_deliver_slow(const struct lttng_kernel_ring_buffer_co nfig *config,
struct lttng_kernel_ring_buffer *buf, struct lttng_kernel_ring_buffer *buf,
struct lttng_kernel_ring_buffer_channel *chan, struct lttng_kernel_ring_buffer_channel *chan,
unsigned long offset, unsigned long offset,
unsigned long commit_count, unsigned long commit_count,
unsigned long idx, unsigned long idx,
u64 tsc); const struct lttng_kernel_ring_buffer_ctx *ctx );
extern extern
void lib_ring_buffer_switch_remote(struct lttng_kernel_ring_buffer *buf); void lib_ring_buffer_switch_remote(struct lttng_kernel_ring_buffer *buf);
extern extern
void lib_ring_buffer_switch_remote_empty(struct lttng_kernel_ring_buffer *buf); void lib_ring_buffer_switch_remote_empty(struct lttng_kernel_ring_buffer *buf);
extern extern
void lib_ring_buffer_clear(struct lttng_kernel_ring_buffer *buf); void lib_ring_buffer_clear(struct lttng_kernel_ring_buffer *buf);
/* Buffer write helpers */ /* Buffer write helpers */
skipping to change at line 280 skipping to change at line 280
* it ensures that the end timestamp of a subbuffer is <= begin * it ensures that the end timestamp of a subbuffer is <= begin
* timestamp of the following subbuffers. * timestamp of the following subbuffers.
*/ */
static inline static inline
void lib_ring_buffer_check_deliver(const struct lttng_kernel_ring_buffer_config *config, void lib_ring_buffer_check_deliver(const struct lttng_kernel_ring_buffer_config *config,
struct lttng_kernel_ring_buffer *buf, struct lttng_kernel_ring_buffer *buf,
struct lttng_kernel_ring_buffer_channel *chan, struct lttng_kernel_ring_buffer_channel *chan,
unsigned long offset, unsigned long offset,
unsigned long commit_count, unsigned long commit_count,
unsigned long idx, unsigned long idx,
u64 tsc) const struct lttng_kernel_ring_buffer_ctx *ctx )
{ {
unsigned long old_commit_count = commit_count unsigned long old_commit_count = commit_count
- chan->backend.subbuf_size; - chan->backend.subbuf_size;
/* Check if all commits have been done */ /* Check if all commits have been done */
if (unlikely((buf_trunc(offset, chan) >> chan->backend.num_subbuf_order) if (unlikely((buf_trunc(offset, chan) >> chan->backend.num_subbuf_order)
- (old_commit_count & chan->commit_count_mask) == 0)) - (old_commit_count & chan->commit_count_mask) == 0))
lib_ring_buffer_check_deliver_slow(config, buf, chan, offset, lib_ring_buffer_check_deliver_slow(config, buf, chan, offset,
commit_count, idx, tsc); commit_count, idx, ctx);
} }
/* /*
* lib_ring_buffer_write_commit_counter * lib_ring_buffer_write_commit_counter
* *
* For flight recording. must be called after commit. * For flight recording. must be called after commit.
* This function increments the subbuffer's commit_seq counter each time the * This function increments the subbuffer's commit_seq counter each time the
* commit count reaches back the reserve offset (modulo subbuffer size). It is * commit count reaches back the reserve offset (modulo subbuffer size). It is
* useful for crash dump. * useful for crash dump.
*/ */
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

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