Implement capturing payload on event notifier
[lttng-modules.git] / include / lttng / abi.h
index c7c6dc1949b8e2fa237de65f29ede9f7ac0a75d6..071133f6228afbb3876bbb0813ec2f4a3c340f36 100644 (file)
@@ -144,6 +144,13 @@ struct lttng_kernel_event_notifier {
        char padding[LTTNG_KERNEL_EVENT_NOTIFIER_PADDING1];
 } __attribute__((packed));
 
+#define LTTNG_KERNEL_EVENT_NOTIFIER_NOTIFICATION_PADDING 32
+struct lttng_kernel_event_notifier_notification {
+       uint64_t token;
+       uint16_t capture_buf_size;
+       char padding[LTTNG_KERNEL_EVENT_NOTIFIER_NOTIFICATION_PADDING];
+} __attribute__((packed));
+
 struct lttng_kernel_tracer_version {
        uint32_t major;
        uint32_t minor;
@@ -243,6 +250,14 @@ struct lttng_kernel_filter_bytecode {
        char data[0];
 } __attribute__((packed));
 
+#define LTTNG_KERNEL_CAPTURE_BYTECODE_MAX_LEN          65536
+struct lttng_kernel_capture_bytecode {
+       uint32_t len;
+       uint32_t reloc_offset;
+       uint64_t seqnum;
+       char data[0];
+} __attribute__((packed));
+
 enum lttng_kernel_tracker_type {
        LTTNG_KERNEL_TRACKER_UNKNOWN            = -1,
 
@@ -337,6 +352,9 @@ struct lttng_kernel_tracker_args {
 #define LTTNG_KERNEL_EVENT_NOTIFIER_GROUP_NOTIFICATION_FD \
        _IO(0xF6, 0xB1)
 
+/* Event notifier file descriptor ioctl */
+#define LTTNG_KERNEL_CAPTURE                   _IO(0xF6, 0xB8)
+
 /*
  * LTTng-specific ioctls for the lib ringbuffer.
  *
This page took 0.023473 seconds and 4 git commands to generate.