Skip to contentSkip to conversation

ctf-text: hide packet_seq_num and packet_seq_num_padding

PATCH Mathieu Desnoyers 1 participant 1 message Jul 13, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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

Thanks,

Mathieu

Quoted 56 lines · ----- On Jul 13, 2015, at 11:29 AM, Julien Desfossez [email protected]…

These fields are introduced in lttng-tools 2.7 and do not need to be output to the babeltrace CLI users for now.

---
formats/ctf-text/ctf-text.c | 10 +++++++++-

1 file changed, 9 insertions(+), 1 deletion(-)
formats/ctf-text/ctf-text.c +3 -1
index 9d5123a..0c2c388 100644
@@ -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)

formats/ctf-text/ctf-text.c +1 -0
@@ -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");

formats/ctf-text/ctf-text.c +1 -0
+	Q_STREAM_PACKET_CONTEXT_PACKET_SEQ_NUM_PADDING =

g_quark_from_static_string("stream.packet.context.packet_seq_num_padding"); }

static

formats/ctf-text/ctf-text.c +4 -1
@@ -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
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Signature · 3 lines
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com