From 41ef8f6305f01c9e31e8be48db625788ef01e758 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Thu, 7 Nov 2019 16:16:56 -0500 Subject: [PATCH] trackers: introduce new tracker types MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Rajotte Change-Id: I749915124dbfe7cbe15d889a5dbcb648c17374dc Signed-off-by: Jérémie Galarneau --- include/lttng/session.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/lttng/session.h b/include/lttng/session.h index 9b2d7eb41..824323bdf 100644 --- a/include/lttng/session.h +++ b/include/lttng/session.h @@ -23,6 +23,28 @@ extern "C" { #endif +enum lttng_tracker_type { + LTTNG_TRACKER_PID = 0, + LTTNG_TRACKER_VPID = 1, + LTTNG_TRACKER_UID = 2, + LTTNG_TRACKER_GID = 3, + LTTNG_TRACKER_VUID = 4, + LTTNG_TRACKER_VGID = 5, +}; + +enum lttng_tracker_id_type { + LTTNG_ID_UNKNOWN = -1, + LTTNG_ID_ALL = 0, + LTTNG_ID_VALUE = 1, + LTTNG_ID_STRING = 2, +}; + +struct lttng_tracker_id { + enum lttng_tracker_id_type type; + int value; + char *string; +}; + struct lttng_session_descriptor; struct lttng_destruction_handle; -- 2.34.1