[lttng-dev] [lttng-tools PATCH 3/3] Add debug output to sessiond's kernel consumer selection

Alexandre Montplaisir alexandre.montplaisir at gmail.com
Thu Jan 12 17:50:36 EST 2012


Signed-off-by: Alexandre Montplaisir <alexandre.montplaisir at gmail.com>
---
 lttng-sessiond/main.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c
index 04ac25d..da72601 100644
--- a/lttng-sessiond/main.c
+++ b/lttng-sessiond/main.c
@@ -1540,13 +1540,21 @@ static pid_t spawn_consumerd(struct consumer_data *consumer_data)
 			 * sessiond's installation directory, and
 			 * fallback on the 32-bit one, 
 			 */
+			DBG3("Looking for a kernel consumer at these locations:");
+			DBG3("  %s", consumerd64_bin);
+			DBG3("  %s/%s", INSTALL_BIN_PATH, CONSUMERD_FILE);
+			DBG3("  %s", consumerd32_bin);
 			if (stat(consumerd64_bin, &st) == 0) {
+				DBG3("Found location #1");
 				consumer_to_use = consumerd64_bin;
 			} else if (stat(INSTALL_BIN_PATH "/" CONSUMERD_FILE, &st) == 0) {
+				DBG3("Found location #2");
 				consumer_to_use = INSTALL_BIN_PATH "/" CONSUMERD_FILE;
 			} else if (stat(consumerd32_bin, &st) == 0) {
+				DBG3("Found location #3");
 				consumer_to_use = consumerd32_bin;
 			} else {
+				DBG("Could not find any valid consumerd executable");
 				break;
 			}
 			DBG("Using kernel consumer at: %s",  consumer_to_use);
-- 
1.7.8.3




More information about the lttng-dev mailing list