Simon Marchi [Thu, 7 Dec 2023 15:53:32 +0000 (15:53 +0000)]
src.ctf.lttng-live: introduce lttng_live_msg_iter::UP and use it
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: Ie87efb7a6599a738dad60cc3533f8440c283da6c
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8474
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12389
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 15:49:29 +0000 (15:49 +0000)]
src.ctf.lttng-live: add lttng_live_msg_iter destructor
Convert lttng_live_msg_iter_destroy to a destructor.
Change-Id: I4bd28e540517e11ede6c210c7645db98951c31f8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8473
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12388
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Mon, 11 Dec 2023 18:35:07 +0000 (13:35 -0500)]
src.ctf.lttng-live: introduce live_viewer_connection::UP and use it
Change lttng_live_msg_iter::viewer_connection to be a
live_viewer_connection::UP and convert live_viewer_connection_create's
output parameter to that type.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I0f91d4636c67ad9f820783932fa3c45464dfb3bb
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8472
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12387
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 15:37:16 +0000 (15:37 +0000)]
src.ctf.lttng-live: add live_viewer_connection destructor
Convert live_viewer_connection_destroy into a destructor.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I84651d6a2184c75b61667ebf23c28737e5a227c5
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8471
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12386
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Mon, 29 Jan 2024 21:15:18 +0000 (16:15 -0500)]
src.ctf.lttng-live: make live_viewer_connection::{relay_hostname,target_hostname,session_name,proto} GStringUPs
These values come from GStrings from the common code, not yet C++-ified,
so it's simpler for now to use GStringUP to automatically manage the
GString lifetimes locally. If the common code ever becomes C++, it can
all be replaced with std::string.
Change-Id: I913ab51488fc934cd049e530a2b7583cc1cefff6
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8470
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12385
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Fri, 2 Feb 2024 17:46:38 +0000 (17:46 +0000)]
src.ctf.lttng-live: make live_viewer_connection::url an std::string
Change-Id: I863b77f2b109312809df088adf374461550aac88
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8469
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12384
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 10 Apr 2024 15:49:14 +0000 (11:49 -0400)]
src.ctf.lttng-live: make lttng_live_msg_iter::sessions an std::vector
Change-Id: I1c6f23eb1cad89d431699b07ce68673ae9f19963
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8468
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12383
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 05:28:24 +0000 (05:28 +0000)]
src.ctf.lttng-live: introduce lttng_live_session::UP and use it
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: Ie270049fe8923f7608f372de4b459b645806367e
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8467
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12382
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 05:24:55 +0000 (05:24 +0000)]
src.ctf.lttng-live: add lttng_live_session destructor
Convert lttng_live_destroy_session to a destructor. Add a new
lttng_live_destroy_session function that calls delete, it's still needed
for the GPtrArray (which will be removed in a subsequent patch).
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: Icb2d9c33fb3591e206698b37c9d658ff731184ad
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8466
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12381
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 05:21:54 +0000 (05:21 +0000)]
src.ctf.lttng-live: make lttng_live_session::{hostname,session_name} std::strings
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I5b0dd1b99d741042b0b2b37a48251ea96d4b3d4f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8464
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12380
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 05:18:01 +0000 (05:18 +0000)]
src.ctf.lttng-live: make lttng_live_session::traces an std::vector
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I3b8ec1e61929fad1e024955dcfc6708cb125b5c9
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8463
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12379
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 05:14:35 +0000 (05:14 +0000)]
src.ctf.lttng-live: introduce lttng_live_trace::UP and use it
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I0008ee962a004ac6e215a5ed32c15b6367fb245b
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8462
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12378
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 05:09:24 +0000 (05:09 +0000)]
src.ctf.lttng-live: make lttng_live_trace::stream_iterators an std::vector
Change-Id: I745900032bc5d880a305e434afaeaeaef728708d
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8461
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12377
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Mon, 11 Dec 2023 17:26:46 +0000 (12:26 -0500)]
src.ctf.lttng-live: introduce and use lttng_live_stream_iterator::UP
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I50c0db7fb4a86d5081a3c049e1dc76b6311507aa
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8460
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12376
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 04:55:31 +0000 (04:55 +0000)]
src.ctf.lttng-live: add lttng_live_stream_iterator destructor
lttng_live_stream_iterator_destroy is still used for a GPtrArray, so it
is kept as a wrapper to the destructor for now.
Change-Id: Idc3fb90f2b15f44d92d9edd578783f4939474fdf
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8459
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12375
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 10 Apr 2024 14:58:05 +0000 (10:58 -0400)]
src.ctf.lttng-live: make lttng_live_stream_iterator::current_msg a bt2::Message::Shared
Adjust a bunch of related functions involved in creating the message
that ends up there.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I2dabd3b3e6d0d17ee2a23774863b160505a0b830
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8458
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12374
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 10 Apr 2024 14:47:21 +0000 (10:47 -0400)]
ctf: remove tabs used for indentation
These are leftovers from commit
4164020e790f ("Re-format new C++
files").
Change-Id: I3a3dbda6c983308c1403c3649913a6311f3bc113
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12373
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Simon Marchi [Mon, 11 Dec 2023 17:26:30 +0000 (12:26 -0500)]
src.ctf.lttng-live: make lttng_live_stream_iterator::name an std::string
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I515319dc62f147e4423c9eadd3dc00648e46e789
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8457
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12372
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 04:33:59 +0000 (04:33 +0000)]
src.ctf.lttng-live: make lttng_live_stream_iterator::buf an std::vector
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I944475345ed8dd5b1ae2824eb86cf9ead56cd92f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8456
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12371
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 04:29:47 +0000 (04:29 +0000)]
src.ctf.lttng-live: make lttng_live_stream_iterator::msg_iter a ctf_msg_iter_up
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I603a9daa109ebab118fe72e38ac175a7f7006335
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8455
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12370
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 04:26:25 +0000 (04:26 +0000)]
src.ctf.lttng-live: make lttng_live_stream_iterator::stream a bt2::Stream::Shared
Change-Id: Ia38f2feba1040749df692574e67861c81a73e8df
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8454
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12369
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 04:20:49 +0000 (04:20 +0000)]
src.ctf.lttng-live: introduce lttng_live_metadata::UP and use it
Change-Id: I3f902be075b8274485b6ce88b1b7fa1617e79cff
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8453
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12368
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Fri, 2 Feb 2024 16:50:30 +0000 (16:50 +0000)]
src.ctf.lttng-live: introduce lttng_live_component::UP and use it
Change-Id: I1bdc817239fbba02fae9696e51559daa6b1b43b9
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8452
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12367
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 20:00:11 +0000 (20:00 +0000)]
src.ctf.lttng-live: use GCharUP in lttng_live_component_create
Change-Id: Ieffb41481d6696c46fd51483414a59fae1099ede
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8451
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12366
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 22 Jun 2022 20:07:03 +0000 (16:07 -0400)]
src.ctf.lttng-live: remove lttng_live_component_destroy_data
Change-Id: I9e57187adcaba990c1f48885cc6e8e94f96c0ac3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8450
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12364
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 7 Dec 2023 03:47:54 +0000 (03:47 +0000)]
src.ctf.lttng-live: change lttng_live_component::params::url to std::string
Change-Id: I5b5c7c15e99bd9cc79c5e20ea68326a244490ce8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8449
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12363
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 6 Dec 2023 21:34:54 +0000 (21:34 +0000)]
src.ctf.fs: make create_streams_for_trace use bt2::StreamClass to instantiate streams
Wrap the stream class (ds_file_group->sc->ir_sc) in a bt2::StreamClass,
then use that to instantiate streams.
Change-Id: I9e9917dd96b0d1115b443463a0a2cd8f2da42323
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8437
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12362
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 6 Dec 2023 21:31:48 +0000 (21:31 +0000)]
src.ctf.fs: pass path to ctf_fs_ds_index_entry constructor
Change-Id: Id8c29f502cc126775e2ded67813a6f8714f06705
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8436
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12361
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 10 Apr 2024 03:31:37 +0000 (23:31 -0400)]
src.ctf.fs: remove ctf_fs_ds_file_group_create, add constructor
Replace ctf_fs_ds_file_group_create with an equivalent constructor.
Change-Id: I06d69a05ba685552dc2d6b78800d79f20569a340
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8435
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12360
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 21:10:29 +0000 (17:10 -0400)]
src.ctf.fs: change a pointer parameter to a reference, remove unused parameter
- Change add_range's range parameter to a const ref.
- Remove the output parameter of populate_stream_info, its caller
doesn't use it.
Change-Id: I9d9268b3f3e6f6446b2422e9bfb098359c71da02
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8425
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12359
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 6 Dec 2023 19:43:34 +0000 (19:43 +0000)]
ctf: convert ctx_destroy to ~ctf_visitor_generate_ir
Convert ctx_destroy into a destructor for ctf_visitor_generate_ir.
Change-Id: I7963276587e44621381c3b47a734986c1696df64
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8423
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12358
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 20:46:55 +0000 (16:46 -0400)]
src.ctf.fs: pass clkClsCfg to ctf_fs_component constructor
Change-Id: I3a9d696780d044505d273a28804915bf2f9e9c16
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8422
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12357
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 12 Dec 2023 15:44:58 +0000 (15:44 +0000)]
src.ctf.fs: modernize read_src_fs_parameters
- Change the input parameter `params` to be bt2::ConstMapValue.
- Changethe return type to be of a new structure type containing all
processed parameters, rather than using output parameters and rather
than setting the clkClsCfg inside the ctf_fs object directly.
- Change the type of the parameters of
ctf_fs_component_create_ctf_fs_trace and other helper functions
accordingly.
Change-Id: I2ba5aca22f907ffcfbdd19c8d8077e17d0c47a71
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8421
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12356
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Sun, 19 Jun 2022 03:47:39 +0000 (23:47 -0400)]
src.ctf.fs: change two functions to take ctf_fs_ds_index by reference
Change-Id: I76211e8fb321b87618cccb23e547982b80535c91
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8419
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12355
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Mon, 29 Jan 2024 17:05:23 +0000 (17:05 +0000)]
src.ctf.fs: make set_trace_name use bt2::Trace
Add an out-of-class `operator+=` to append a `bt2c::CStringView` to an
`std::string`. Without it, I get:
CXX plugins/ctf/fs-src/fs.lo
/home/simark/src/babeltrace/src/plugins/ctf/fs-src/fs.cpp: In function 'void set_trace_name(bt2::Trace, const char*)':
/home/simark/src/babeltrace/src/plugins/ctf/fs-src/fs.cpp:598:14: error: ambiguous overload for 'operator+=' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'bt2::CommonStringValue<const bt_value>::Value' {aka 'bt2c::CStringView'})
598 | name += val->asString().value();
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13.2.1/string:54,
from /usr/include/c++/13.2.1/bits/locale_classes.h:40,
from /usr/include/c++/13.2.1/bits/ios_base.h:41,
from /usr/include/c++/13.2.1/ios:44,
from /usr/include/c++/13.2.1/istream:40,
from /usr/include/c++/13.2.1/sstream:40,
from /home/simark/src/babeltrace/src/plugins/ctf/fs-src/fs.cpp:10:
/usr/include/c++/13.2.1/bits/basic_string.h:1354:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator+=(const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1354 | operator+=(const basic_string& __str)
| ^~~~~~~~
/usr/include/c++/13.2.1/bits/basic_string.h:1364:7: note: candidate: 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator+=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
1364 | operator+=(const _CharT* __s)
| ^~~~~~~~
Change-Id: I3f47878658a431f81a129fc9e644efe50608e7ce
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8418
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12354
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Mon, 11 Dec 2023 17:25:19 +0000 (12:25 -0500)]
ctf: make ctf_trace_class_configure_ir_trace use bt2::Trace
Use the bt2::Trace wrapper instead of a raw `bt_trace *`. Change the
return type to void, since failures are now reported using exceptions.
Change-Id: I2e30b0aa9a6f33e765ac32d274032ef4ab3aa9f8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8417
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12353
Tested-by: jenkins <jenkins@lttng.org>
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Simon Marchi [Wed, 6 Dec 2023 17:29:01 +0000 (17:29 +0000)]
src.ctf.lttng-live: make lttng_live_trace::trace a bt2::Trace::Shared
Use the C++ wrapper to hold the reference to the trace.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: Iadfe9add10e5a6e3112cc0626b2ece868a013b40
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8416
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12352
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 6 Dec 2023 17:20:21 +0000 (17:20 +0000)]
src.ctf.lttng-live: make lttng_live_trace::trace_class a bt2::TraceClass::Shared
Use the C++ wrapper to hold the reference to the trace class.
Note that the existing comment said it is a weak reference, but the code
shows otherwise.
Change-Id: Ic486a65ab40953c5d6a3ddb7d057d2caa85cf1c0
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8415
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12351
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Sun, 19 Jun 2022 02:50:16 +0000 (22:50 -0400)]
src.ctf.lttng-live: use std::string in list_append_session
Use `fmt::format` to create a temporary `std::string`.
Change-Id: I2a930cff82e4f43ff303f62a7371eb67d8144c04
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8414
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12350
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 6 Dec 2023 17:13:14 +0000 (17:13 +0000)]
src.ctf.lttng-live: use std::vector in lttng_live_get_one_metadata_packet
Use an std::vector to manage the buffer used to store the received data.
Change-Id: I04f99440573c722d982378ef9d8bb47f35b343aa
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8413
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12349
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 6 Dec 2023 17:10:22 +0000 (17:10 +0000)]
src.ctf.lttng-live: lttng_live_metadata_update: use std::vector as metadata buffer
Use an std::vector to store the metadata contents in
lttng_live_metadata_update, instead of opening a memstream. Modify
lttng_live_get_one_metadata_packet to append to a vector instead of
writing to a `FILE *`. We still open a read-only memstream around the
vector's contents to pass a `FILE *` to
ctf_metadata_decoder_append_content. Change that variable to be a
FileUP, so it's automatically closed on exit.
Change-Id: Ie7b57d25ea90fc82fb96bf19ff707edccdf46072
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8412
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12348
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Fri, 17 Jun 2022 20:55:30 +0000 (16:55 -0400)]
src.ctf.fs: make ds_file_group_insert_ds_file_info_sorted a method of ctf_fs_ds_file_group
Change-Id: I743359a80d39e307f4aa36b2deaa92429c536cea
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8404
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12347
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 21:10:11 +0000 (17:10 -0400)]
src.ctf.fs: fs.cpp: declare variables on first use
Move variable declarations to be at or closer to their first use.
Change-Id: Iec7b1789a9cd007938b992292ad48a09d23f79e5
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8403
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12346
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Mon, 11 Dec 2023 19:23:19 +0000 (14:23 -0500)]
src.ctf.fs: data-stream-file.cpp: declare variables on first use
Move variables declarations to be at or closer to their first use.
Change-Id: I0649c4fda3b42c6bca02217481c08b575fda6a5d
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8402
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12345
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 19:44:48 +0000 (15:44 -0400)]
src.ctf.fs: remove ctf_fs_ds_index::UP
We don't need to dynamically allocate ctf_fs_ds_index objects, we can
store / return / pass objects directly. Remove ctf_fs_ds_index::UP and
update all users.
Change-Id: I7ce9de83b111c782299a1caebea3ead0fd945cb5
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8401
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12344
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 6 Dec 2023 16:15:18 +0000 (16:15 +0000)]
src.ctf.fs: store index entry objects instead of pointers
Store `ctf_fs_ds_index_entry` objects in a flag vector, instead of a
vector of pointers.
Change-Id: I4fea078cddf97292cc1f040ca998acef465d6808
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8348
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12343
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Wed, 6 Dec 2023 15:52:10 +0000 (15:52 +0000)]
src.ctf.fs: remove ctf_fs_ds_index_entry_create
This function is now a simple wrapper around constructing a
ctf_fs_ds_index_entry, remove it.
Change-Id: I20905864876588f7e6db79b6b344833275131871
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8347
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12342
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Mon, 13 Jun 2022 16:47:53 +0000 (12:47 -0400)]
src.ctf.fs: initialize ctf_fs_ds_index_entry::packet_seq_num to UINT64_MAX in class
Initialize the field directly to the right value. The field was
originally initialized to 0 to mimic the g_new0 behavior.
Change-Id: Ia1df1be730b77ca0d69ae05dae12bd60ef9e9ed8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8346
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12341
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Fri, 2 Feb 2024 17:33:00 +0000 (17:33 +0000)]
src.ctf.fs: remove goto error handling from data-stream-file.cpp
Same as previous patch, but for data-stream-file.cpp.
Change-Id: Ieb52faca6142ff33591fce2d880bcde664f2c1b7
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8320
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12340
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 21:09:47 +0000 (17:09 -0400)]
src.ctf.fs: remove goto error handling from fs.cpp
gotos prevent declaring variables in the middle of functions, which is
sometimes necessary in C++. Remove gotos used for error handling,
replace them with returning directly.
Change-Id: I15b5d6aa4897e5326fc03e2626045c83258d8eca
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8318
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12339
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 05:52:55 +0000 (05:52 +0000)]
src.ctf.fs: use GMappedFileUP in build_index_from_idx_file
Change-Id: I24d4cf509839923e704870953b6c9fb379cf1880
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8312
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12338
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 05:50:32 +0000 (05:50 +0000)]
src.ctf.fs: use std::string in build_index_from_idx_file
Change-Id: Ifdb2c818f66efbc328b095408ae2834646fba4fe
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8310
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12337
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 05:46:56 +0000 (05:46 +0000)]
src.ctf.fs: use GCharUP in build_index_from_idx_file
Change-Id: Ifb4e1b3ac7d484af2d570d75cff21e310f752add
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8309
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12336
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 05:43:19 +0000 (05:43 +0000)]
src.ctf.fs: remove ctf_fs_ds_index_create
Remove ctf_fs_ds_index_create, since it's now just a wrapper around
constructing a ctf_fs_ds_index.
Change-Id: Ia256fde3286f3f77a514835806f8862678e02359
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8308
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12335
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 21:08:57 +0000 (17:08 -0400)]
src.ctf.fs: remove ctf_fs_component_create
Remove this function, as it's now a simple wrapper around constructing a
ctf_fs_component.
Change-Id: Ifc6c751ff66f43c81c1a0abd6d7b27393b96f4ad
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8307
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12334
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Mon, 11 Dec 2023 17:24:27 +0000 (12:24 -0500)]
src.ctf.fs: remove ctf_fs_file_create
Remove this function, it's now just a wrapper around constructing a
ctf_fs_file.
Change-Id: I95e4d6eb26b0d359e0f480cac51af11f3a1db539
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8297
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12333
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 21:08:37 +0000 (17:08 -0400)]
src.ctf.fs: make ctf_fs_make_port_name return std::string
Change-Id: I9e2f4d2ac47e4f061e5dda1a3813d1a092ffe433
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8296
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12332
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 05:28:25 +0000 (05:28 +0000)]
src.ctf.fs: use GDirUp in create_ds_file_groups
Change-Id: I0d0ca566d8123e8419a9345f78224f92f17e9a47
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8295
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12331
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 05:25:32 +0000 (05:25 +0000)]
src.ctf.fs: use std::vector<std::string> in ctf_fs_component_create_ctf_fs_trace
Change-Id: I51af73cb2bdaf10318b19aa493129bdb8401cc3b
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8293
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12330
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 9 Jun 2022 15:32:46 +0000 (11:32 -0400)]
src.ctf.fs: use std::string in path_is_ctf_trace
Change-Id: I796d135f7daee29a4481e61cf073e8bbd2e0f05f
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8292
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12329
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 05:19:53 +0000 (05:19 +0000)]
src.ctf.fs: use std::string in set_trace_name
Change-Id: Ib44748ebda40b197d5ef0ca20d23b55496c3e918
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8291
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12328
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 21:08:19 +0000 (17:08 -0400)]
src.ctf.fs: make get_stream_instance_unique_name return `const std::string &`
We always return the first stream's name. Return a reference to that
name instead of a new object and a copy of the string.
Change-Id: I657265b74e0566a36f2ae05f6b5b1b6d21f53c66
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8290
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12327
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 05:12:00 +0000 (05:12 +0000)]
src.ctf.fs: use GStringUP in ctf_fs_component_create_ctf_fs_trace_one_path
Change-Id: I6405c80bdfc519fe45ebadadcfd2e396da9a74cb
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8289
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12326
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 05:09:22 +0000 (05:09 +0000)]
src.ctf.fs: remove ctf_fs_trace_destroy
Remove it and the custom deleter, since ctf_fs_trace instances can now
be simply deleted.
Change-Id: I59f3f89b4b3faee45b3708245242cee009d218b7
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8287
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12325
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 9 Jun 2022 15:19:30 +0000 (11:19 -0400)]
src.ctf.fs: make ctf_fs_trace::metadata a unique_ptr
Introduce ctf_fs_metadata::UP and change the ctf_fs_trace::metadata
field to be of that type.
Change-Id: I0221ef7786cc8fb4c2e8a9264573ab5c2e5420d6
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8286
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12324
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 2 Nov 2023 19:04:35 +0000 (19:04 +0000)]
src.ctf.fs: remove ctf_fs_metadata_init and ctf_fs_metadata_fini
Change-Id: Ie34c0a5c5aea60aa2fc771d35a39b61ec0eca336
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8285
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12323
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 04:57:52 +0000 (04:57 +0000)]
src.ctf.fs: make ctf_fs_metadata::trace_class a bt2::TraceClass::Shared
Change-Id: I1ee6a21525757197213c35acfa1f0a17d7052541
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8284
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12322
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Mon, 11 Dec 2023 17:24:09 +0000 (12:24 -0500)]
src.ctf.fs: make ctf_visitor_generate_ir::trace_class a bt2::TraceClass::Shared
Change-Id: I9b414384b025f39c3cfb9900659235a17426b649
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8283
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12321
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 9 Jun 2022 15:05:38 +0000 (11:05 -0400)]
src.ctf.fs: remove ctf_fs_metadata::text
Change-Id: Id15010c2d5c1f9fccd60adfb0920b1dca2f2074b
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8282
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12320
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 04:44:06 +0000 (04:44 +0000)]
src.ctf.fs: make ctf_fs_trace::path an std::string
Change-Id: I9938c37f4effca7e83ed2e495feb5dd596d2320e
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8281
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12319
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 04:40:07 +0000 (04:40 +0000)]
src.ctf.fs: make ctf_fs_trace::trace a bt2::Trace::Shared
Change-Id: I4fabe113da7b5adb794377706ab07fac9b59df02
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8280
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12318
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 20:30:19 +0000 (16:30 -0400)]
src.ctf.fs: introduce and use ctf_fs_msg_iter_data::UP
Introduce ctf_fs_msg_iter_data::UP and use it in ctf_fs_iterator_init
and ctf_fs_iterator_finalize.
Change-Id: I448cedc164d93f9ba26da5640578889b0fff580c
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8279
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12317
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 04:29:51 +0000 (04:29 +0000)]
src.ctf.fs: use ctf_msg_iter_up in decode_clock_snapshot_after_event
Change-Id: I4f230d16b96764d5097cb30b8a063d41268bb237
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8278
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12316
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 04:25:06 +0000 (04:25 +0000)]
src.ctf.fs: use ctf_msg_iter_up in add_ds_file_to_ds_file_group
Change-Id: I3970358b6eab556fd5971d94a8e35b720c6f9450
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8277
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12315
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Sat, 9 Dec 2023 16:26:12 +0000 (16:26 +0000)]
src.ctf.fs: make ctf_fs_msg_iter_data::msg_iter a ctf_msg_iter_up
Change-Id: I44ef5f74fdee99a4bf5962cf03757acc7ba774b2
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8276
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12314
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 9 Apr 2024 20:36:45 +0000 (16:36 -0400)]
src.ctf.fs: make ctf_msg_iter_create return a unique_ptr
Introduce ctf_msg_iter_up, a unique_ptr type with a deleter that calls
ctf_msg_iter_destroy. Make ctf_msg_iter_create return that.
Change-Id: Ibba15a84c58804a88f18c6ed47b9197fe46541b3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8275
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12313
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 04:11:57 +0000 (04:11 +0000)]
src.ctf.fs: remove ctf_fs_destroy
Remove it, since a ctf_fs_destroy instance can simply be deleted.
Change-Id: Ic6b879dbdff5e5172c2f07c810f97ceaf45a77f9
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8274
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12312
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Thu, 9 Jun 2022 14:27:25 +0000 (10:27 -0400)]
src.ctf.fs: remove ctf_fs_ds_group_medops_data_destroy
Remove it, simply delete `data` in the custom deleter. Note that we
still use a custom deleter because ctf_fs_ds_group_medops_data is in the
.cpp file, and therefore not visible to other compilation units. We
could move it to the .hpp to avoid this, but it's going to be removed
soon anyway, so it's not worth it.
Change-Id: Ib5741e0e0a535cb84b2a4e27ff6ff9620eaaebce
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8273
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12311
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 04:06:35 +0000 (04:06 +0000)]
src.ctf.fs: make ctf_fs_ds_group_medops_data_create return a unique_ptr
Introduce ctf_fs_ds_group_medops_data_up, a unique_ptr type with a
deleter that calls ctf_fs_ds_group_medops_data_destroy. Make
ctf_fs_ds_group_medops_data_create return (by parameter) a value of this
type.
Change ctf_fs_msg_iter_data::msg_iter_medops_data to be of this type too,
since the result of ctf_fs_ds_group_medops_data_create is put directly in
that field.
Change-Id: I971e2e6db622f5cfe492eaede239852886a24483
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8272
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12310
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 04:03:12 +0000 (04:03 +0000)]
src.ctf.fs: make ctf_fs_ds_group_medops_data::file a ctf_fs_ds_file::UP
Change-Id: Ibe6b3882c29725f7563fb141bd823ec2adeabc6a
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8271
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12309
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 04:00:16 +0000 (04:00 +0000)]
src.ctf.fs: use ctf_fs_ds_file::UP in add_ds_file_to_ds_file_group
Change-Id: I8b7a55f28b746cc6b93bfb4459bfc41789d7d4f2
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8270
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12308
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Sat, 9 Dec 2023 14:50:47 +0000 (14:50 +0000)]
src.ctf.fs: use ctf_fs_ds_file::UP in decode_clock_snapshot_after_event
Change-Id: I0b476dd18ee4dfd53ac7bffb12d9fae9b1a1b359
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8269
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12307
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Sat, 9 Dec 2023 14:37:28 +0000 (14:37 +0000)]
src.ctf.fs: make ctf_fs_ds_file_create return a unique_ptr
Introduce ctf_fs_ds_file::UP, make ctf_fs_ds_file_create return it.
Change-Id: I0139e9504d65425bf53fb21a5b81a4e48da4fe4e
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8268
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12306
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 03:42:10 +0000 (03:42 +0000)]
src.ctf.fs: rename ctf_fs_ds_file_destroy to ~ctf_fs_ds_file
This makes the ctf_fs_ds_file type deletable.
Change-Id: Ibaedb136777a39db11a1bd30355c7123e186e489
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8267
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12305
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 03:38:56 +0000 (03:38 +0000)]
src.ctf.fs: remove ctf_fs_file_destroy
Remove it, and the custom deleter, now that a ctf_fs_file can be simply
deleted.
Change-Id: Iaef8b0cdbe525272019e0258665b45cbaee6ad05
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8266
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12304
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 03:35:00 +0000 (03:35 +0000)]
src.ctf.fs: make ctf_fs_file::path an std::string
Change-Id: Ifbe7cd2c184031465428c28701131a82ba219b02
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8265
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12303
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 03:25:35 +0000 (03:25 +0000)]
src.ctf.fs: make ctf_fs_file::fp a FileUP
Change-Id: I7c0467a20942cf107d8f10951c8a393e3da7c608
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8264
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12302
Tested-by: jenkins <jenkins@lttng.org>
Simon Marchi [Tue, 5 Dec 2023 03:21:28 +0000 (03:21 +0000)]
src.ctf.fs: make get_file return ctf_fs_file::UP
Change-Id: I9f115907d062db0a227a49adb7d5786342ca4147
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8263
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12301
Simon Marchi [Tue, 5 Dec 2023 03:17:40 +0000 (03:17 +0000)]
src.ctf.fs: use ctf_fs_file::UP in create_ds_file_groups
Change-Id: I45b50e6c808d5ae17ac755b96e03f260a0972c15
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8262
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12300
Simon Marchi [Tue, 5 Dec 2023 03:08:45 +0000 (03:08 +0000)]
src.ctf.fs: make ctf_fs_ds_file::file a ctf_fs_file::UP
Change-Id: Id6a62715e3e2a29216debe1c72986215d7f47459
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8261
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12299
Simon Marchi [Fri, 5 Apr 2024 19:45:51 +0000 (15:45 -0400)]
src.ctf.fs: make ctf_fs_file_create return a unique_ptr
Introduce ctf_fs_file::UP, make ctf_fs_file_create return that, adjust
impacted callers.
Change-Id: Ice241fd596af3d54e9c7bc7f562ca010bb5833aa
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8260
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12298
Simon Marchi [Tue, 12 Dec 2023 04:59:05 +0000 (04:59 +0000)]
src.ctf.fs: move ctf_fs_file to file.hpp
This helps resolve some cyclic include problem between file.hpp and
fs.hpp in the next patches (and I think it makes sense to put it there).
Change-Id: I2904d17eb3ea51699464fba17a992ddf3b691f60
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8259
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12297
Simon Marchi [Mon, 4 Dec 2023 21:51:03 +0000 (21:51 +0000)]
src.ctf.fs: make ctf_fs_ds_file::stream a bt2::Stream::Shared
Change-Id: I2df309d73c7a1b987e4d25c63251e13bf47a38a3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8258
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12296
Simon Marchi [Thu, 9 Jun 2022 13:34:22 +0000 (09:34 -0400)]
src.ctf.fs: remove ctf_fs_ds_file_group_destroy
Remove ctf_fs_ds_file_group_destroy and the custom deleter, now that
ctf_fs_ds_file_group can be simply deleted.
Change-Id: I41100be8a99276ef17df4c9aa37a7f4db0275869
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8257
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12295
Simon Marchi [Mon, 4 Dec 2023 21:34:02 +0000 (21:34 +0000)]
src.ctf.fs: make ctf_fs_ds_file_group::stream a bt2::Stream::Shared
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I0f84b26ccf43b0469da15946fa825a1255e7ab3d
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8256
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12294
Simon Marchi [Thu, 9 Jun 2022 13:24:46 +0000 (09:24 -0400)]
src.ctf.fs: remove ctf_fs_ds_index_destroy
Remove ctf_fs_ds_index_destroy and ctf_fs_ds_index_deleter, since
ctf_fs_ds_index objects can simply be deleted now.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I64eb93eb3f06174523e7f9ceaf94cf103a9e69eb
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8255
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12293
Simon Marchi [Tue, 9 Apr 2024 21:07:50 +0000 (17:07 -0400)]
src.ctf.fs: make ctf_fs_ds_index::entries a vector of ctf_fs_ds_index_entry::UP
Change-Id: If56c5ab6c35b6d93bf38b264f384496d2d06f4eb
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8254
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12292
Simon Marchi [Mon, 4 Dec 2023 21:13:53 +0000 (21:13 +0000)]
src.ctf.fs: make ctf_fs_ds_index_entry_create return a unique_ptr
Introduce ctf_fs_ds_index_entry::UP and make
ctf_fs_ds_index_entry_create return that. Modify a few functions in
data-stream-file.cpp that deal with this.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: I39598d860327cff5af32804f75b68b58e4ee0821
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8253
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12291
Simon Marchi [Sat, 6 Apr 2024 04:08:54 +0000 (00:08 -0400)]
src.ctf.fs: make ctf_fs_ds_file_group::index a ctf_fs_ds_index::UP
Change that field to be a unique_ptr. Adjust some functions in fs.cpp
around that.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: Ie2cdfe0b81f1d817093de74faf6c12ef2e6169a1
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8252
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12290
Simon Marchi [Mon, 4 Dec 2023 20:20:20 +0000 (20:20 +0000)]
src.ctf.fs: make ctf_fs_ds_index_create return a unique_ptr
Introduce ctf_fs_ds_index::UP, a unique_ptr with a deleter that calls
ctf_fs_ds_index_destroy. Make ctf_fs_ds_index_create (and the
other functions creating an index in data-stream-file.cpp) return it.
Change-Id: Id04124aeaff3384e566a43fbbd6c1fedd2bf9bc3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8251
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12289
This page took 0.045177 seconds and 4 git commands to generate.