projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement snapshot commands in lttng-sessiond
[lttng-tools.git]
/
src
/
common
/
kernel-consumer
/
kernel-consumer.c
diff --git
a/src/common/kernel-consumer/kernel-consumer.c
b/src/common/kernel-consumer/kernel-consumer.c
index 11830fc05a087f4f601a3156560ac5b7a6735365..d4a0d7c67c2810a649821cda28a2dc6748d0388d 100644
(file)
--- a/
src/common/kernel-consumer/kernel-consumer.c
+++ b/
src/common/kernel-consumer/kernel-consumer.c
@@
-317,6
+317,13
@@
int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
}
}
}
}
+ if (msg.u.stream.no_monitor) {
+ DBG("Kernel consumer add stream %s in no monitor mode with"
+ "relayd id %" PRIu64, new_stream->name,
+ new_stream->relayd_stream_id);
+ break;
+ }
+
/* Get the right pipe where the stream will be sent. */
if (new_stream->metadata_flag) {
stream_pipe = ctx->consumer_metadata_pipe;
/* Get the right pipe where the stream will be sent. */
if (new_stream->metadata_flag) {
stream_pipe = ctx->consumer_metadata_pipe;
@@
-400,6
+407,15
@@
int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
*/
break;
}
*/
break;
}
+ case LTTNG_CONSUMER_SNAPSHOT_CHANNEL:
+ {
+ ret = consumer_send_status_msg(sock, ret_code);
+ if (ret < 0) {
+ /* Somehow, the session daemon is not responding anymore. */
+ goto end_nosignal;
+ }
+ break;
+ }
default:
goto end_nosignal;
}
default:
goto end_nosignal;
}
This page took
0.024281 seconds
and
5
git commands to generate.