bt_trace_class_create(): accept mandatory self component
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 10 Dec 2018 13:03:58 +0000 (08:03 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 2 May 2019 20:50:15 +0000 (20:50 +0000)
commit416937235b48b55387c6074adc6a0dd59a5c76f4
tree7d3a7fe6883ad5501e5b84e7feb71cbd5b86991e
parentd0cf29eea302e1f262da0ed68d60bceb53380d46
bt_trace_class_create(): accept mandatory self component

This patch makes bt_trace_class_create() accept a mandatory self
component. The self component parameter is not used now, but it could be
in the future to control allocation (object pooling) and for
bookkeeping, as well as to have a system where a new trace class within
the graph can lead to notifying other components about it so they can
prepare associated data.

The `ctf` plugin is changed so that it does not require a trace class to
create packet indexes. This is required because the `trace-info` query
requires packet indexes to exist, but there's no self component in this
context to create a trace class.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
18 files changed:
include/babeltrace/trace-ir/trace-class.h
lib/trace-ir/trace-class.c
plugins/ctf/common/metadata/ast.h
plugins/ctf/common/metadata/decoder.c
plugins/ctf/common/metadata/decoder.h
plugins/ctf/common/metadata/visitor-generate-ir.c
plugins/ctf/common/msg-iter/msg-iter.c
plugins/ctf/common/msg-iter/msg-iter.h
plugins/ctf/fs-src/data-stream-file.c
plugins/ctf/fs-src/data-stream-file.h
plugins/ctf/fs-src/fs.c
plugins/ctf/fs-src/fs.h
plugins/ctf/fs-src/metadata.c
plugins/ctf/fs-src/metadata.h
plugins/ctf/fs-src/query.c
plugins/text/dmesg/dmesg.c
tests/lib/test_bt_message_iterator.c
tests/lib/test_trace_ir_ref.c
This page took 0.02619 seconds and 4 git commands to generate.