lp:~lttng/babeltrace/trunk
- Get this branch:
- bzr branch lp:~lttng/babeltrace/trunk
Branch merges
Branch information
Import details
This branch is an import of the HEAD branch of the Git repository at https://git.efficios.com/babeltrace.git.
Last successful import was .
Recent revisions
- 5567. By Kienan Stewart
-
misc: Bump clang-format version to 19
Change-Id: Iea0436b9c2db45
f3e518eae341423 65c642d18c2
Signed-off-by: Kienan Stewart <email address hidden>
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/15207
Reviewed-by: Simon Marchi <email address hidden> - 5566. By .eepp
-
doc/internal: document `src/cpp-
common/ bt2` This patch adds partial documentation for what's "internally public" in
`src/cpp-common/ bt2`. Documenting all the files, types, and functions would be a very tedious
task because it's equivalent to the effort of documenting the whole
libbabeltrace2 C API. That being said, most of the `bt2` namespace is
straightforward if you already know the libbabeltrace2 C API.I documented what might be less obvious to understand, namely:
• In `all.dox`:
‣ Quick start to show how the C++ bindings work in general.
‣ Gneral terminology.
‣ Borrowed object wrapper, optional wrapper.
‣ Shared object, reference counting, creation.
‣ How to create a new wrapper class.
‣ C++ component class development: usage and internals.
‣ C++ plugin development.• The `bt2::BorrowedO
bjectIterator` class template. • The `bt2::BorrowedO
bjectProxy` class template. • The `bt2::BorrowedO
bject` class template. • The `bt2::OptionalB
orrowedObject` class template. • The whole `component-
class-dev. hpp` header. • The whole `error.hpp` header.
• Exception classes in `exc.hpp`.
• The bt2::internal:
:validateCreate dObjPtr( ) function. • The `bt2::ConstMess
ageArray` class. • The `bt2::SharedObject` class template.
• The `type-traits.hpp` header.
• The `wrap.hpp` header.
Signed-off-by: Philippe Proulx <email address hidden>
Change-Id: I0c22d7adef99b0b5f711ae6582ba2 f947445ef03
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/14037 - 5565. By .eepp
-
bt2::Graph: add user component class instantiation methods
This patch adds new templated bt2::Graph:
:addComponent( ) methods. Those new ones are a combination of the existing addComponent() ones
and bt2::createComponentClass( ), for example: const auto myComp = myGraph.
addComponent< MyFilterComp> ("meow" ,
params) ; This is intended for simple use cases where you instantiate a component
class only once within the graph. Otherwise, it's still preferred to
create a component class first and then instantiate this one multiple
times with the non-templated bt2::Graph::addComponent( ) overload. Signed-off-by: Philippe Proulx <email address hidden>
Change-Id: I3fa90761bb9c3622c2d18f3ea3b7a db96f5d371c
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/14036 - 5564. By .eepp
-
Add bt2::createComp
onentClass( ): create CC object from user CC This patch:
• Adds `static constexpr` type() methods to `bt2::UserSourc
eComponent` ,
`bt2::UserFilterComp onent`, and `bt2::UserSinkC omponent` . Those can act as class tags for type traits, to discriminate a user
component class for example.• Removes the CommonSourceCom
ponentClass: :create( ),
CommonFilterComponentClass: :create( ), and
CommonSinkComponentClass: :create( ) static methods. • Adds three versions of the bt2::createComp
onentClass( ) template. `std::enable_if` return types ensure the correct one is picked
depending on what the type() method of the template parameter (a user
component class) returns.For example:
auto meowCompCls = bt2::createComp
onentClass< MeowFilter> (); Tests are updated accorgindly.
Signed-off-by: Philippe Proulx <email address hidden>
Change-Id: I74d021eb6bd159ccea777bf0cfff1 c5aa86382df
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/14039 - 5563. By .eepp
-
bt2::UserComponent: add clock/trace class creation methods
It just makes sense to call `this->
_createTraceCla ss()` or
`this->_createClockCla ss()` when you implement your own
C++ component class instead of going through `this->_selfComp( )`. Same spirit as bt2._UserCompon
ent._create_ trace_class( ) and
bt2._UserComponent._create_ clock_class( ) in Python. Signed-off-by: Philippe Proulx <email address hidden>
Change-Id: Ib4229ad1c5dd430407a79061ae4fe f2a50fd3222
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/14035 - 5562. By .eepp
-
doc/internal: document `src/cpp-
common/ bt2c` (except `logging.hpp`) This patch adds documentation for everything "internally public"
which the `src/cpp-common/ bt2c` headers offer, except `logging.hpp`
which will be part of the logging topic.Signed-off-by: Philippe Proulx <email address hidden>
Change-Id: I7f410ba1323f84dc433726ed16e65 d4589b2c0f7
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/14029 - 5561. By .eepp
-
doc/internal: document GLib stuff in `src/common` and `src/compat`
This patch adds documentation for everything "internally public" related
to GLib helpers which the `src/compat/glib.h` and `src/common/common. h`
headers offer.Signed-off-by: Philippe Proulx <email address hidden>
Change-Id: I189daccd1c0814a893bd7ec660202 63f050eac21
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/14013 - 5560. By .eepp
-
doc/internal: document `src/common` (except `list.h` and GLib stuff)
This patch adds documentation for everything "internally public"
which the `src/common` headers offer, except:`list.h`:
We won't use this old API in the future, probably replace its
existing usage with something like `std::list`, it's somewhat large,
and I just won't spend the time now.GLib helpers:
I'll document those in its own topic because I want to include other
related functions in there.Signed-off-by: Philippe Proulx <email address hidden>
Change-Id: I6bacd5e3f22e0d153e1679c9411fd 2d19fc4986b
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/14012 - 5559. By .eepp
-
src/common/
common. h: move private stuff to `common.c` Signed-off-by: Philippe Proulx <email address hidden>
Change-Id: I5cfb3ed3162d1ee27261abf6d8039 daed3ee8c02
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/14011 - 5558. By .eepp
-
Fix: src/common/
macros. h: "push" 👉 "pop" This mistake made some legitimate warnings escape because
`BT_DIAG_IGNORE_ SHADOW` and `BT_DIAG_ IGNORE_ UNUSED_ BUT_SET_ VARIABLE`
effectively were active where they weren't supposed to.On the other hand, with this change, some locations are missing a
`BT_DIAG_PUSH`/` BT_DIAG_ IGNORE_ SHADOW` /`BT_DIAG_ POP` block. This patch
fixes those too.Signed-off-by: Philippe Proulx <email address hidden>
Change-Id: I0b51346ef45899757e6a98dbba1cb 7222acb30b8
Reviewed-on: https://review. lttng.org/ c/babeltrace/ +/14010
Reviewed-by: Simon Marchi <email address hidden>
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)