Add missing transport ops
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Nov 2010 01:27:30 +0000 (20:27 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 24 Nov 2010 01:27:30 +0000 (20:27 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-ring-buffer-client.h
ltt-tracer.h

index 53b3b871f3812c0148dfae85b825dbd5845df891..a262da105a6eec1dc9bfb6611d0fcc406cb4f2e0 100644 (file)
@@ -27,6 +27,7 @@ static u64 client_ring_buffer_clock_read(struct channel *chan)
        return lib_ring_buffer_clock_read(chan);
 }
 
+static
 size_t client_record_header_size(const struct lib_ring_buffer_config *config,
                                 struct channel *chan, size_t offset,
                                 size_t data_size,
@@ -164,6 +165,7 @@ static const struct lib_ring_buffer_config client_config = {
        .wakeup = RING_BUFFER_WAKEUP_BY_TIMER,
 };
 
+static
 struct channel *ltt_channel_create(const char *name, struct ltt_trace *trace,
                                   void *buf_addr,
                                   size_t subbuf_size, size_t num_subbuf,
@@ -201,6 +203,7 @@ free_chan_priv:
        return NULL;
 }
 
+static
 void ltt_channel_destroy(struct channel *chan)
 {
        struct chan_priv *chan_priv = channel_get_private(chan);
@@ -237,12 +240,15 @@ static int ltt_relay_create_dirs(struct ltt_trace *new_trace)
        }
        return 0;
 }
+
 static struct ltt_transport ltt_relay_transport = {
        .name = "relay-" RING_BUFFER_MODE_TEMPLATE_STRING,
        .owner = THIS_MODULE,
        .ops = {
                .create_dirs = ltt_relay_create_dirs,
                .remove_dirs = ltt_relay_remove_dirs,
+               .create_channel = ltt_channel_create,
+               .destroy_channel = ltt_channel_destroy,
        },
 };
 
index ac90ee73c953cbe7965b7250782af6ca4524972e..f75a0704e9d339ca33bb65f718fe6f6d0204ff8d 100644 (file)
@@ -126,6 +126,13 @@ struct user_dbg_data {
 struct ltt_trace_ops {
        int (*create_dirs) (struct ltt_trace *new_trace);
        void (*remove_dirs) (struct ltt_trace *new_trace);
+       struct channel *ltt_channel_create(const char *name,
+                               struct ltt_trace *trace,
+                               void *buf_addr,
+                               size_t subbuf_size, size_t num_subbuf,
+                               unsigned int switch_timer_interval,
+                               unsigned int read_timer_interval);
+       void ltt_channel_destroy(struct channel *chan);
 };
 
 struct ltt_transport {
This page took 0.028895 seconds and 4 git commands to generate.