ctf plugins: prepend trace's hostname, if exists, to trace name
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 30 May 2017 00:21:46 +0000 (20:21 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 9 Jun 2017 20:58:13 +0000 (16:58 -0400)
commit91fd6f6a3e6a49647c31cc5a5ada2216dde9b29d
treece046371db21ae84324b2e593cfaceba512956f6
parent4bd72b60e2b236ef91b7dcb577777bab87d0fdc8
ctf plugins: prepend trace's hostname, if exists, to trace name

This makes the trace names a little more precise.

Note that as of this patch the visitor sets the trace's name just before
adding the first stream class, because after this, the trace is frozen
and we cannot set its name anymore. This is done as lately as possible
to increase our chance of having decoded the metadata's `env` block
(where the hostname is), if any. This can lead to an unnamed trace if
there's no stream classes. But if there's no stream classes, there can't
be any packet or event anyway, so there can't be any notification which
refers to this trace, so no other component should see the fact that
there's no name.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/ctf/common/metadata/visitor-generate-ir.c
This page took 0.025431 seconds and 4 git commands to generate.