Fix: use snapshot consumer output for kernel
authorDavid Goulet <dgoulet@efficios.com>
Fri, 28 Jun 2013 18:16:15 +0000 (14:16 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 28 Jun 2013 18:16:15 +0000 (14:16 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/cmd.c
src/bin/lttng-sessiond/snapshot.c
src/common/kernel-consumer/kernel-consumer.c

index c783e82f0871f9b8516654b7e1aa58d94ad13336..ed4d6c86f1a0b569892b0144c6f055a73983fbb1 100644 (file)
@@ -2374,8 +2374,8 @@ static int set_relayd_for_snapshot(struct consumer_output *consumer,
         * snapshot output.
         */
        rcu_read_lock();
-       cds_lfht_for_each_entry(consumer->socks->ht, &iter.iter, socket,
-                       node.node) {
+       cds_lfht_for_each_entry(snap_output->consumer->socks->ht, &iter.iter,
+                       socket, node.node) {
                ret = send_consumer_relayd_sockets(0, session->id,
                                snap_output->consumer, socket);
                if (ret < 0) {
index ba7cdff2c3a52b3415e464ca8605b71099f7aaaf..5265cf5575d692f94c4f7cde7d1c3d6ea59ea40a 100644 (file)
@@ -49,6 +49,9 @@ int snapshot_output_init(uint64_t max_size, const char *name,
 
        assert(output);
 
+       DBG2("Snapshot output initializing with max size %" PRIu64 ", name %s "
+                       "ctrl URL %s, data URL %s", max_size, name, ctrl_url, data_url);
+
        output->max_size = max_size;
        if (snapshot) {
                output->id = get_next_output_id(snapshot);
index 5b05d9f6b6d4e9d9b0c588700def21dc5fa06cfe..a0818452f4f540ef880a3effb13c0e2b89fc0e10 100644 (file)
@@ -664,9 +664,9 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
 
                /* Do not monitor this stream. */
                if (!channel->monitor) {
-                       DBG("Kernel consumer add stream %s in no monitor mode with"
+                       DBG("Kernel consumer add stream %s in no monitor mode with "
                                        "relayd id %" PRIu64, new_stream->name,
-                                       new_stream->relayd_stream_id);
+                                       new_stream->net_seq_idx);
                        cds_list_add(&new_stream->no_monitor_node,
                                        &channel->stream_no_monitor_list.head);
                        break;
This page took 0.030523 seconds and 4 git commands to generate.