From 21375862a0146fda3d1d991e91b2e8685bcd7bea Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Wed, 19 Aug 2015 14:17:40 -0400 Subject: [PATCH] Fix: assert(0) when listing Python events with MI Signed-off-by: Philippe Proulx --- src/common/config/config-session-abi.h | 1 + src/common/mi-lttng.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/common/config/config-session-abi.h b/src/common/config/config-session-abi.h index d8a37b718a..9251b22fc0 100644 --- a/src/common/config/config-session-abi.h +++ b/src/common/config/config-session-abi.h @@ -77,6 +77,7 @@ extern const char * const config_domain_type_kernel; extern const char * const config_domain_type_ust; extern const char * const config_domain_type_jul; extern const char * const config_domain_type_log4j; +extern const char * const config_domain_type_python; extern const char * const config_buffer_type_per_pid; extern const char * const config_buffer_type_per_uid; diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c index cc2d25b52c..e2181f692d 100644 --- a/src/common/mi-lttng.c +++ b/src/common/mi-lttng.c @@ -395,6 +395,8 @@ const char *mi_lttng_domaintype_string(enum lttng_domain_type value) return config_domain_type_jul; case LTTNG_DOMAIN_LOG4J: return config_domain_type_log4j; + case LTTNG_DOMAIN_PYTHON: + return config_domain_type_python; default: /* Should not have an unknown domain */ assert(0);