X-Git-Url: http://git.lttng.org/?p=lttng-modules.git;a=blobdiff_plain;f=include%2Flttng%2Fabi.h;h=071133f6228afbb3876bbb0813ec2f4a3c340f36;hp=c7c6dc1949b8e2fa237de65f29ede9f7ac0a75d6;hb=99d223adfae9b68800e91bda470c92acb14efae6;hpb=608ab495d4e0beff75f47df2b3a19d7bced0c571 diff --git a/include/lttng/abi.h b/include/lttng/abi.h index c7c6dc19..071133f6 100644 --- a/include/lttng/abi.h +++ b/include/lttng/abi.h @@ -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. *