#include <limits.h>
#include <stdint.h>
#include <lttng/constant.h>
+#include <common/macros.h>
/*
* Object used for the snapshot API. This is opaque to the public library.
char ctrl_url[PATH_MAX];
/* Destination of the output. See lttng(1) for URL format. */
char data_url[PATH_MAX];
-};
+} LTTNG_PACKED;
/*
* Snapshot output list object opaque to the user.
/* Event data */
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
- struct lttng_event event LTTNG_PACKED;
+ struct lttng_event event;
/* Length of following filter expression. */
uint32_t expression_len;
/* Length of following bytecode for filter. */
} LTTNG_PACKED enable;
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
- struct lttng_event event LTTNG_PACKED;
+ struct lttng_event event;
/* Length of following filter expression. */
uint32_t expression_len;
/* Length of following bytecode for filter. */
} LTTNG_PACKED disable;
/* Create channel */
struct {
- struct lttng_channel chan LTTNG_PACKED;
- /* struct lttng_channel_extended is already packed. */
+ struct lttng_channel chan;
struct lttng_channel_extended extended;
} LTTNG_PACKED channel;
/* Context */
struct {
char channel_name[LTTNG_SYMBOL_NAME_LEN];
- struct lttng_event_context ctx LTTNG_PACKED;
+ struct lttng_event_context ctx;
uint32_t provider_name_len;
uint32_t context_name_len;
} LTTNG_PACKED context;
uint32_t size;
} LTTNG_PACKED uri;
struct {
- struct lttng_snapshot_output output LTTNG_PACKED;
+ struct lttng_snapshot_output output;
} LTTNG_PACKED snapshot_output;
struct {
uint32_t wait;
- struct lttng_snapshot_output output LTTNG_PACKED;
+ struct lttng_snapshot_output output;
} LTTNG_PACKED snapshot_record;
struct {
uint32_t nb_uri;
unsigned int timer_interval; /* usec */
} LTTNG_PACKED session_live;
struct {
- struct lttng_save_session_attr attr; /* struct already packed */
+ struct lttng_save_session_attr attr;
} LTTNG_PACKED save_session;
struct {
char shm_path[PATH_MAX];