From 233350e5aa20f20142da40b28410c471d269b316 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Fri, 10 Jan 2020 17:03:05 -0500 Subject: [PATCH] UST: update ABI for event notifier MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: Ia3088ebdf0fe64e57e93c2bec02625176460ffc9 --- src/bin/lttng-sessiond/ust-abi-internal.h | 15 +++++++++++++++ src/bin/lttng-sessiond/ust-ctl-internal.h | 8 ++++++++ 2 files changed, 23 insertions(+) diff --git a/src/bin/lttng-sessiond/ust-abi-internal.h b/src/bin/lttng-sessiond/ust-abi-internal.h index 14f214f67..f56046428 100644 --- a/src/bin/lttng-sessiond/ust-abi-internal.h +++ b/src/bin/lttng-sessiond/ust-abi-internal.h @@ -103,6 +103,18 @@ struct lttng_ust_event { } u; } LTTNG_PACKED; +#define LTTNG_UST_EVENT_NOTIFIER_PADDING 40 +struct lttng_ust_event_notifier { + struct lttng_ust_event event; + char padding[LTTNG_UST_EVENT_NOTIFIER_PADDING]; +} LTTNG_PACKED; + +#define LTTNG_UST_EVENT_NOTIFIER_NOTIFICATION_PADDING 34 +struct lttng_ust_event_notifier_notification { + uint64_t token; + char padding[LTTNG_UST_EVENT_NOTIFIER_NOTIFICATION_PADDING]; +} LTTNG_PACKED; + enum lttng_ust_field_type { LTTNG_UST_FIELD_OTHER = 0, LTTNG_UST_FIELD_INTEGER = 1, @@ -306,6 +318,9 @@ struct lttng_ust_event_exclusion { #define LTTNG_UST_FILTER _UST_CMD(0xA0) #define LTTNG_UST_EXCLUSION _UST_CMD(0xA1) +#define LTTNG_UST_EVENT_NOTIFIER_SEND_FD _UST_CMD(0xB0) +#define LTTNG_UST_EVENT_NOTIFIER_CREATE _UST_CMDW(0xB1, struct lttng_ust_event_notifier) + #define LTTNG_UST_ROOT_HANDLE 0 struct lttng_ust_obj; diff --git a/src/bin/lttng-sessiond/ust-ctl-internal.h b/src/bin/lttng-sessiond/ust-ctl-internal.h index 7c245bdce..8d7217f31 100644 --- a/src/bin/lttng-sessiond/ust-ctl-internal.h +++ b/src/bin/lttng-sessiond/ust-ctl-internal.h @@ -85,6 +85,14 @@ int ustctl_disable(int sock, struct lttng_ust_object_data *object); int ustctl_start_session(int sock, int handle); int ustctl_stop_session(int sock, int handle); +int ustctl_create_event_notifier_group(int sock, + int pipe_fd, + struct lttng_ust_object_data **event_notifier_group_handle); +int ustctl_create_event_notifier(int sock, + struct lttng_ust_event_notifier *event_notifier, + struct lttng_ust_object_data *event_notifier_group_handle, + struct lttng_ust_object_data **event_notifier_data); + /* * ustctl_tracepoint_list returns a tracepoint list handle, or negative * error value. -- 2.34.1