bt_trace_class_create(): accept mandatory self component
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 10 Dec 2018 13:03:58 +0000 (08:03 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:09:18 +0000 (00:09 -0400)
commit8f5d08f2dd0da95fce6400afa81c33638330b613
tree7d3a7fe6883ad5501e5b84e7feb71cbd5b86991e
parent3f7f82342c36984f35bf9b1dc5a3863833f469aa
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.029025 seconds and 5 git commands to generate.