case LTTNG_KERNEL_CONTEXT_MIGRATABLE:
context_type_string = config_event_context_migratable;
break;
+ case LTTNG_KERNEL_CONTEXT_CALLSTACK_USER:
+ context_type_string = config_event_context_callstack_user;
+ break;
+ case LTTNG_KERNEL_CONTEXT_CALLSTACK_KERNEL:
+ context_type_string = config_event_context_callstack_kernel;
+ break;
default:
context_type_string = NULL;
}
extern const char * const config_event_context_preemptible;
extern const char * const config_event_context_need_reschedule;
extern const char * const config_event_context_migratable;
+extern const char * const config_event_context_callstack_user;
+extern const char * const config_event_context_callstack_kernel;
#endif /* CONFIG_SESSION_INTERNAL_H */
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;
} 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;
}
<xs:enumeration value="PREEMPTIBLE" />
<xs:enumeration value="NEED_RESCHEDULE" />
<xs:enumeration value="MIGRATABLE" />
+ <xs:enumeration value="CALLSTACK_USER" />
+ <xs:enumeration value="CALLSTACK_KERNEL" />
</xs:restriction>
</xs:simpleType>
<xs:enumeration value="PREEMPTIBLE" />
<xs:enumeration value="NEED_RESCHEDULE" />
<xs:enumeration value="MIGRATABLE" />
+ <xs:enumeration value="CALLSTACK_USER" />
+ <xs:enumeration value="CALLSTACK_KERNEL" />
</xs:restriction>
</xs:simpleType>
return config_event_context_need_reschedule;
case LTTNG_EVENT_CONTEXT_MIGRATABLE:
return config_event_context_migratable;
+ case LTTNG_EVENT_CONTEXT_CALLSTACK_USER:
+ return config_event_context_callstack_user;
+ case LTTNG_EVENT_CONTEXT_CALLSTACK_KERNEL:
+ return config_event_context_callstack_kernel;
default:
return NULL;
}