Function lttngpy::get_perf_counter_context

Function Documentation

std::variant<int, struct lttng_event_perf_counter_ctx> lttngpy::get_perf_counter_context(const std::string &perf_counter_name)

Get perf counter context from name.

Returns:

the perf counter context, else a negative LTTng error code (if the name isn’t known)