X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libust%2Frelay.h;h=0e1827912b4870472088ed51f07d32d4e9fe42e6;hb=a2dc02e0e0a685b8814b68a2f07ce73c08e0ef50;hp=ba7c1d63aa2d10c35349bf2d86b70e9000228e04;hpb=957f86e7e03c9cce749ac96e65749209247e4382;p=ust.git diff --git a/libust/relay.h b/libust/relay.h index ba7c1d6..0e18279 100644 --- a/libust/relay.h +++ b/libust/relay.h @@ -213,7 +213,7 @@ static inline struct buf_page *ltt_relay_cache_page(struct rchan_buf *buf, } //ust// #ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS - static inline void ltt_relay_do_copy(void *dest, const void *src, size_t len) +static inline void ltt_relay_do_copy(void *dest, const void *src, size_t len) { union { const void *src; @@ -317,7 +317,7 @@ static inline int ltt_relay_write(struct rchan_buf *buf, size_t offset, * CONFIG_LTT_RELAY kernel API, ltt/ltt-relay-alloc.c */ -struct rchan *ltt_relay_open(const char *base_filename, +extern struct rchan *ltt_relay_open(const char *base_filename, struct dentry *parent, size_t subbuf_size, size_t n_subbufs, @@ -375,10 +375,15 @@ struct ltt_channel_buf_struct { local_t commit_seq[0] ____cacheline_aligned; } ____cacheline_aligned; -int ltt_do_get_subbuf(struct rchan_buf *buf, struct ltt_channel_buf_struct *ltt_buf, long *pconsumed_old); +extern int ltt_do_get_subbuf(struct rchan_buf *buf, struct ltt_channel_buf_struct *ltt_buf, long *pconsumed_old); -int ltt_do_put_subbuf(struct rchan_buf *buf, struct ltt_channel_buf_struct *ltt_buf, u32 uconsumed_old); +extern int ltt_do_put_subbuf(struct rchan_buf *buf, struct ltt_channel_buf_struct *ltt_buf, u32 uconsumed_old); -void init_ustrelay_transport(void); +extern void init_ustrelay_transport(void); + +/*static*/ /* inline */ notrace void ltt_commit_slot( + struct ltt_channel_struct *ltt_channel, + void **transport_data, long buf_offset, + size_t data_size, size_t slot_size); #endif /* _LINUX_LTT_RELAY_H */