Fix: send per-pid session id in channel creation
authorJulien Desfossez <jdesfossez@efficios.com>
Thu, 27 Jun 2013 21:57:06 +0000 (17:57 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 28 Jun 2013 15:04:54 +0000 (11:04 -0400)
commitcb7c69091edf2394fc8a338c6e4dc504afd48844
treeea7f2a63128cf2fd71b524f391e06b9e640bd6e9
parentf1dab979da8fc9a7ad198d84ef9fc18b60d5f8de
Fix: send per-pid session id in channel creation

The registry indexing for per-pid sessions is done with a per-pid
session id. So for per-pid buffers, we need to send the per-pid session
id as well as the global session id to the consumer in order to give it
enough information if it needs to request metadata later.

This patch adds the session_id_per_pid to the channel creation message
and to the consumer. When the sessiond receives a metadata_request,
depending on the buffer type (per-pid or per-uid), it selects the right
id to do the registry lookup.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/consumer.c
src/bin/lttng-sessiond/consumer.h
src/bin/lttng-sessiond/ust-consumer.c
src/common/consumer.c
src/common/consumer.h
src/common/kernel-consumer/kernel-consumer.c
src/common/sessiond-comm/sessiond-comm.h
src/common/ust-consumer/ust-consumer.c
This page took 0.025958 seconds and 4 git commands to generate.