X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fconfig%2Fsession-config.c;h=1b0db12cc8d448ea175192c28861a3a170edaed8;hb=16c4c9914f4e9aa1cf1a6f71f4b030fc8928e10e;hp=ed836f17e9d70e3d9cc5e0d3ea9eaf8d7e386b55;hpb=9a2df626a4991d5560cbc4fafd98d9b1120e89ed;p=lttng-tools.git diff --git a/src/common/config/session-config.c b/src/common/config/session-config.c index ed836f17e..1b0db12cc 100644 --- a/src/common/config/session-config.c +++ b/src/common/config/session-config.c @@ -185,6 +185,8 @@ LTTNG_HIDDEN const char * const config_event_context_interruptible = "INTERRUPTI LTTNG_HIDDEN const char * const config_event_context_preemptible = "PREEMPTIBLE"; LTTNG_HIDDEN const char * const config_event_context_need_reschedule = "NEED_RESCHEDULE"; LTTNG_HIDDEN const char * const config_event_context_migratable = "MIGRATABLE"; +LTTNG_HIDDEN const char * const config_event_context_callstack_user= "CALLSTACK_USER"; +LTTNG_HIDDEN const char * const config_event_context_callstack_kernel = "CALLSTACK_KERNEL"; /* Deprecated symbols */ const char * const config_element_perf; @@ -1018,6 +1020,12 @@ int get_context_type(xmlChar *context_type) } else if (!strcmp((char *) context_type, config_event_context_migratable)) { ret = LTTNG_EVENT_CONTEXT_MIGRATABLE; + } else if (!strcmp((char *) context_type, + config_event_context_callstack_user)) { + ret = LTTNG_EVENT_CONTEXT_CALLSTACK_USER; + } else if (!strcmp((char *) context_type, + config_event_context_callstack_kernel)) { + ret = LTTNG_EVENT_CONTEXT_CALLSTACK_KERNEL; } else { goto error; } @@ -3032,7 +3040,7 @@ int load_session_from_path(const char *path, const char *session_name, errno = 0; result = readdir(directory); - /* Reached end of dir stream or error out */ + /* Reached end of dir stream or error out. */ if (!result) { if (errno) { PERROR("Failed to enumerate the contents of path \"%s\" while loading session, readdir returned", path);