Add extended info to liblttng-ctl's struct lttng_channel
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 7 Mar 2016 22:14:24 +0000 (17:14 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 7 Mar 2016 23:47:22 +0000 (18:47 -0500)
The change has been tested to maintain lttng_channel's size
on x86, x86-64 and ARM32. The alignment rules of these
architectures should cover all cases.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/lttng/channel.h

index bb5bbcd382f47723eae934e94da69fc9eb11375e..e770f6835a491f35c3dbdea7b4705ad65afefbdc 100644 (file)
@@ -43,6 +43,12 @@ struct lttng_channel_attr {
        uint64_t tracefile_count;           /* number of tracefiles */
        /* LTTng 2.3 padding limit */
        unsigned int live_timer_interval;   /* usec */
+       /* LTTng 2.7 padding limit */
+       uint32_t align_to_64;
+       union {
+               uint64_t padding;
+               void *ptr;
+       } extended;
 
        char padding[LTTNG_CHANNEL_ATTR_PADDING1];
 };
This page took 0.026704 seconds and 4 git commands to generate.