Return string for LTTNG_UST_CONTEXT_PERF_THREAD_COUNTER was missing and
caused an error on save when a context of PERF_THREAD_COUNTER type was
present (Error: Invalid parameter).
Fixes #804
Signed-off-by: Jonathan Rajotte Julien <jonathan.r.julien@gmail.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
case LTTNG_UST_CONTEXT_PTHREAD_ID:
context_type_string = config_event_context_pthread_id;
break;
+ case LTTNG_UST_CONTEXT_PERF_THREAD_COUNTER:
+ context_type_string = config_event_context_perf_thread_counter;
+ break;
default:
context_type_string = NULL;
+ break;
}
return context_type_string;
const char * const config_event_context_pthread_id;
const char * const config_event_context_hostname;
const char * const config_event_context_ip;
+const char * const config_event_context_perf_thread_counter;
#endif /* CONFIG_SESSION_INTERNAL_H */
const char * const config_event_context_pthread_id = "PTHREAD_ID";
const char * const config_event_context_hostname = "HOSTNAME";
const char * const config_event_context_ip = "IP";
+const char * const config_event_context_perf_thread_counter = "PERF_THREAD_COUNTER";
struct consumer_output {
int enabled;