bt_trace_class_create(): accept mandatory self component
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 10 Dec 2018 13:03:58 +0000 (08:03 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:37 +0000 (18:19 -0400)
commite5e71bf8bba4250e56a4195a9e43bebf88134179
treeb2ffe317b7d6b8a5a3fcefb7fbc00ad8cfd6522c
parent4d2e0cb53885735aa4039fec6bdda7dbacc90944
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.025846 seconds and 4 git commands to generate.