extern "C" {
#endif
-#ifndef LTTNG_PACKED
-#define LTTNG_PACKED __attribute__((__packed__))
-#endif
-
/*
* Event symbol length. Copied from LTTng kernel ABI.
*/
char exec_name[NAME_MAX];
char padding[LTTNG_DOMAIN_PADDING2];
} attr;
-} LTTNG_PACKED;
+};
/*
* Perf counter attributes
char name[LTTNG_SYMBOL_NAME_LEN];
char padding[LTTNG_PERF_EVENT_PADDING1];
-} LTTNG_PACKED;
+};
/*
* Event/channel context
struct lttng_event_perf_counter_ctx perf_counter;
char padding[LTTNG_EVENT_CONTEXT_PADDING2];
} u;
-} LTTNG_PACKED;
+};
/*
* Event probe.
char symbol_name[LTTNG_SYMBOL_NAME_LEN];
char padding[LTTNG_EVENT_PROBE_PADDING1];
-} LTTNG_PACKED;
+};
/*
* Function tracer
char symbol_name[LTTNG_SYMBOL_NAME_LEN];
char padding[LTTNG_EVENT_FUNCTION_PADDING1];
-} LTTNG_PACKED;
+};
/*
* Generic lttng event
char padding[LTTNG_EVENT_PADDING2];
} attr;
-} LTTNG_PACKED;
+};
enum lttng_event_field_type {
LTTNG_EVENT_FIELD_OTHER = 0,
char padding[LTTNG_EVENT_FIELD_PADDING];
struct lttng_event event;
int nowrite;
-} LTTNG_PACKED;
+};
/*
* Tracer channel attributes. For both kernel and user-space.
enum lttng_event_output output; /* splice, mmap */
char padding[LTTNG_CHANNEL_ATTR_PADDING1];
-} LTTNG_PACKED;
+};
/*
* Channel information structure. For both kernel and user-space.
struct lttng_channel_attr attr;
char padding[LTTNG_CHANNEL_PADDING1];
-} LTTNG_PACKED;
+};
#define LTTNG_CALIBRATE_PADDING1 16
struct lttng_calibrate {
enum lttng_calibrate_type type;
char padding[LTTNG_CALIBRATE_PADDING1];
-} LTTNG_PACKED;
+};
/*
* Basic session information.
uint32_t enabled; /* enabled/started: 1, disabled/stopped: 0 */
char padding[LTTNG_SESSION_PADDING1];
-} LTTNG_PACKED;
+};
/*
* Handle used as a context for commands.
struct lttng_domain domain;
char padding[LTTNG_HANDLE_PADDING1];
-} LTTNG_PACKED;
+};
/*
* Public LTTng control API