[lttng-dev] [BABELTRACE PATCH] ctf-text: hide packet_seq_num and packet_seq_num_padding

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Mon Jul 13 15:34:28 EDT 2015


Following my discussion with Julien, we'll await an updated patch
that won't need "seq_num_padding" at all.

Thanks,

Mathieu

----- On Jul 13, 2015, at 11:29 AM, Julien Desfossez jdesfossez at efficios.com wrote:

> These fields are introduced in lttng-tools 2.7 and do not need to be
> output to the babeltrace CLI users for now.
> 
> Signed-off-by: Julien Desfossez <jdesfossez at efficios.com>
> ---
> formats/ctf-text/ctf-text.c | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/formats/ctf-text/ctf-text.c b/formats/ctf-text/ctf-text.c
> index 9d5123a..0c2c388 100644
> --- a/formats/ctf-text/ctf-text.c
> +++ b/formats/ctf-text/ctf-text.c
> @@ -115,7 +115,9 @@ static GQuark Q_STREAM_PACKET_CONTEXT_TIMESTAMP_BEGIN,
> 	Q_STREAM_PACKET_CONTEXT_TIMESTAMP_END,
> 	Q_STREAM_PACKET_CONTEXT_EVENTS_DISCARDED,
> 	Q_STREAM_PACKET_CONTEXT_CONTENT_SIZE,
> -	Q_STREAM_PACKET_CONTEXT_PACKET_SIZE;
> +	Q_STREAM_PACKET_CONTEXT_PACKET_SIZE,
> +	Q_STREAM_PACKET_CONTEXT_PACKET_SEQ_NUM,
> +	Q_STREAM_PACKET_CONTEXT_PACKET_SEQ_NUM_PADDING;
> 
> static
> void __attribute__((constructor)) init_quarks(void)
> @@ -125,6 +127,8 @@ void __attribute__((constructor)) init_quarks(void)
> 	Q_STREAM_PACKET_CONTEXT_EVENTS_DISCARDED =
> 	g_quark_from_static_string("stream.packet.context.events_discarded");
> 	Q_STREAM_PACKET_CONTEXT_CONTENT_SIZE =
> 	g_quark_from_static_string("stream.packet.context.content_size");
> 	Q_STREAM_PACKET_CONTEXT_PACKET_SIZE =
> 	g_quark_from_static_string("stream.packet.context.packet_size");
> +	Q_STREAM_PACKET_CONTEXT_PACKET_SEQ_NUM =
> g_quark_from_static_string("stream.packet.context.packet_seq_num");
> +	Q_STREAM_PACKET_CONTEXT_PACKET_SEQ_NUM_PADDING =
> g_quark_from_static_string("stream.packet.context.packet_seq_num_padding");
> }
> 
> static
> @@ -152,6 +156,10 @@ int print_field(struct bt_definition *definition)
> 		return 0;
> 	if (definition->path == Q_STREAM_PACKET_CONTEXT_PACKET_SIZE)
> 		return 0;
> +	if (definition->path == Q_STREAM_PACKET_CONTEXT_PACKET_SEQ_NUM)
> +		return 0;
> +	if (definition->path == Q_STREAM_PACKET_CONTEXT_PACKET_SEQ_NUM_PADDING)
> +		return 0;
> 
> 	return 1;
> }
> --
> 1.9.1
> 
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list