#define LTTNG_UST_CHANNEL_PADDING LTTNG_UST_SYM_NAME_LEN + 32
struct lttng_ust_channel {
- int overwrite; /* 1: overwrite, 0: discard */
uint64_t subbuf_size; /* in bytes */
uint64_t num_subbuf;
+ int overwrite; /* 1: overwrite, 0: discard */
unsigned int switch_timer_interval; /* usecs */
unsigned int read_timer_interval; /* usecs */
enum lttng_ust_output output; /* output mode */
*/
#define LTTNG_UST_CHANNEL_ATTR_PADDING LTTNG_UST_SYM_NAME_LEN + 32
struct lttng_ust_channel_attr {
- int overwrite; /* 1: overwrite, 0: discard */
uint64_t subbuf_size; /* bytes */
uint64_t num_subbuf; /* power of 2 */
+ int overwrite; /* 1: overwrite, 0: discard */
unsigned int switch_timer_interval; /* usec */
unsigned int read_timer_interval; /* usec */
enum lttng_ust_output output; /* splice, mmap */
struct field_ref {
/* Initially, symbol offset. After link, field offset. */
uint16_t offset;
-} __attribute__((packed));
+} LTTNG_PACKED;
struct literal_numeric {
int64_t v;
-} __attribute__((packed));
+} LTTNG_PACKED;
struct literal_double {
double v;
-} __attribute__((packed));
+} LTTNG_PACKED;
struct literal_string {
char string[0];
-} __attribute__((packed));
+} LTTNG_PACKED;
enum filter_op {
FILTER_OP_UNKNOWN = 0,
filter_opcode_t op;
char data[0];
/* data to load. Size known by enum filter_opcode and null-term char. */
-} __attribute__((packed));
+} LTTNG_PACKED;
struct binary_op {
filter_opcode_t op;
-} __attribute__((packed));
+} LTTNG_PACKED;
struct unary_op {
filter_opcode_t op;
-} __attribute__((packed));
+} LTTNG_PACKED;
/* skip_offset is absolute from start of bytecode */
struct logical_op {
filter_opcode_t op;
uint16_t skip_offset; /* bytecode insn, if skip second test */
-} __attribute__((packed));
+} LTTNG_PACKED;
struct cast_op {
filter_opcode_t op;
-} __attribute__((packed));
+} LTTNG_PACKED;
struct return_op {
filter_opcode_t op;
-} __attribute__((packed));
+} LTTNG_PACKED;
struct lttng_filter_bytecode_alloc {
uint32_t alloc_len;