Function lttngpy::get_lttng_context_type

Function Documentation

std::optional<enum lttng_event_context_type> lttngpy::get_lttng_context_type(const std::string &lttng_context_field_name)

Get LTTng context type from name.

Returns:

the context type, or std::nullopt on failure (if the name isn’t known)