UST: update ABI for event notifier
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 10 Jan 2020 22:03:05 +0000 (17:03 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 18 Dec 2020 21:55:04 +0000 (16:55 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ia3088ebdf0fe64e57e93c2bec02625176460ffc9

src/bin/lttng-sessiond/ust-abi-internal.h
src/bin/lttng-sessiond/ust-ctl-internal.h

index 14f214f67b3a9476beecd8e0f600f6250e120d94..f560464286d19f888b61dc1e63001dfc32e4d0cb 100644 (file)
@@ -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;
index 7c245bdce266489e54b8258c4de06fbc343ae0a6..8d7217f31df2b9798baaec1230e41320a8767bf3 100644 (file)
@@ -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.
This page took 0.033612 seconds and 4 git commands to generate.