Function lttngpy::get_app_context

Function Documentation

std::variant<int, struct lttng_event_context_app_ctx> lttngpy::get_app_context(const std::string &app_context_name)

Get provider name and context name from app context type name.

The expected format is: ‘$app.PROVIDER:TYPE’ (see lttng-add-context(1)).

Returns:

the provider name and context name, else a negative LTTng error code (if the name isn’t using the expected format)