Set the `SortIncludes` option of clang-format to `Regroup`, meaning that
it will group include statements based on the categories in
`IncludeCategories`.
In `IncludeCategories`, define categories such that the groups are (in
order of priority):
1. C++ system headers
2. C system headers
3. Babeltrace 2 public headers
4. Logging headers (logging/log.h, as well as other header files
including it): it might be important for these files to stay at the
top, in case there is some logging in header files, so that things
like log tags are properly set.
5 Internal common headers (e.g. from common, cpp-common, compat,
logging)
6. Plugin common files (from plugins/common)
7. Local headers
8. tap/tap.h: it defines macros with common names, such as `ok` and
`fail`, which may clash with identifiers in other headers. It's
safer to keep it last.
Includes in files parser.ypp and lexer.lpp were sorted by hand. Due to
the change in inclusion order, parser.hpp (generated from parser.ypp)
did not see the definition of yyscan_t anymore. Add an inclusion of
scanner.hpp in the `%code requires` section, which ends up in both the
generated .cpp and .hpp files.
Change-Id: I0568167065b90070ac03ea4daf4d0a1927bec4b5
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11459
Tested-by: jenkins <jenkins@lttng.org>
91 files changed:
'bt_list_for_each_prev',
'bt_list_for_each_prev_safe',
]
'bt_list_for_each_prev',
'bt_list_for_each_prev_safe',
]
+IncludeBlocks: Regroup
+IncludeCategories:
+ # Babeltrace 2 public headers
+ - Regex: '^<babeltrace2/.+>$'
+ Priority: 3
+ # System C headers
+ - Regex: '^<.+\.h>$'
+ Priority: 2
+ # System C++ headers
+ - Regex: '^<.+>$'
+ Priority: 1
+ # Logging headers
+ - Regex: '^"(logging\.hpp|logging/comp-logging\.h|logging/log\.h)"$'
+ Priority: 4
+ # Common headers
+ - Regex: '^"(argpar|autodisc|common|compat|cpp-common|ctfser|fd-cache|param-parse|py-common|logging|string-format)/.+"$'
+ Priority: 5
+ # Plugins common headers
+ - Regex: '^"plugins/common/.+"$'
+ Priority: 6
+ # tap header file
+ - Regex: '^"(tap/)?tap\.h"$'
+ Priority: 8
+ # The rest (local headers)
+ - Regex: '.+'
+ Priority: 7
+IncludeIsMainRegex: "please_dont_do_that"
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: false
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: false
PointerAlignment: Right
ReferenceAlignment: Left
ReflowComments: false
PointerAlignment: Right
ReferenceAlignment: Left
ReflowComments: false
+SortIncludes: CaseInsensitive
SortUsingDeclarations: false
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
SortUsingDeclarations: false
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
#ifndef BABELTRACE_CPP_COMMON_BT2_CLOCK_CLASS_HPP
#define BABELTRACE_CPP_COMMON_BT2_CLOCK_CLASS_HPP
#ifndef BABELTRACE_CPP_COMMON_BT2_CLOCK_CLASS_HPP
#define BABELTRACE_CPP_COMMON_BT2_CLOCK_CLASS_HPP
#include <cstdint>
#include <string>
#include <cstdint>
#include <string>
+#include <type_traits>
+
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
-#include "internal/borrowed-obj.hpp"
-#include "internal/shared-obj.hpp"
-#include "internal/utils.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
#include "cpp-common/uuid-view.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
#include "cpp-common/uuid-view.hpp"
+#include "internal/borrowed-obj.hpp"
+#include "internal/shared-obj.hpp"
+#include "internal/utils.hpp"
#include "value.hpp"
namespace bt2 {
#include "value.hpp"
namespace bt2 {
#define BABELTRACE_CPP_COMMON_BT2_CLOCK_SNAPSHOT_HPP
#include <cstdint>
#define BABELTRACE_CPP_COMMON_BT2_CLOCK_SNAPSHOT_HPP
#include <cstdint>
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
-#include "internal/borrowed-obj.hpp"
+#include "internal/borrowed-obj.hpp"
#ifndef BABELTRACE_CPP_COMMON_BT2_EXC_HPP
#define BABELTRACE_CPP_COMMON_BT2_EXC_HPP
#ifndef BABELTRACE_CPP_COMMON_BT2_EXC_HPP
#define BABELTRACE_CPP_COMMON_BT2_EXC_HPP
#include "cpp-common/exc.hpp"
#include "cpp-common/exc.hpp"
#ifndef BABELTRACE_CPP_COMMON_BT2_FIELD_CLASS_HPP
#define BABELTRACE_CPP_COMMON_BT2_FIELD_CLASS_HPP
#ifndef BABELTRACE_CPP_COMMON_BT2_FIELD_CLASS_HPP
#define BABELTRACE_CPP_COMMON_BT2_FIELD_CLASS_HPP
+#include <type_traits>
+
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
-#include "internal/borrowed-obj.hpp"
-#include "internal/shared-obj.hpp"
-#include "internal/utils.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
#include "common-iter.hpp"
#include "exc.hpp"
#include "common-iter.hpp"
#include "exc.hpp"
-#include "integer-range-set.hpp"
#include "field-path.hpp"
#include "field-path.hpp"
+#include "integer-range-set.hpp"
+#include "internal/borrowed-obj.hpp"
+#include "internal/shared-obj.hpp"
+#include "internal/utils.hpp"
#include "value.hpp"
namespace bt2 {
#include "value.hpp"
namespace bt2 {
#define BABELTRACE_CPP_COMMON_BT2_FIELD_PATH_HPP
#include <cstdint>
#define BABELTRACE_CPP_COMMON_BT2_FIELD_PATH_HPP
#include <cstdint>
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include "common-iter.hpp"
#include "internal/borrowed-obj.hpp"
#include "internal/shared-obj.hpp"
#include "common-iter.hpp"
#include "internal/borrowed-obj.hpp"
#include "internal/shared-obj.hpp"
#ifndef BABELTRACE_CPP_COMMON_BT2_FIELD_HPP
#define BABELTRACE_CPP_COMMON_BT2_FIELD_HPP
#ifndef BABELTRACE_CPP_COMMON_BT2_FIELD_HPP
#define BABELTRACE_CPP_COMMON_BT2_FIELD_HPP
+#include <type_traits>
+
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
-#include "internal/borrowed-obj.hpp"
-#include "internal/utils.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
#include "field-class.hpp"
#include "field-class.hpp"
+#include "internal/borrowed-obj.hpp"
+#include "internal/utils.hpp"
#include <cstdint>
#include <type_traits>
#include <cstdint>
#include <type_traits>
#include <babeltrace2/babeltrace.h>
#include "common-iter.hpp"
#include <babeltrace2/babeltrace.h>
#include "common-iter.hpp"
+#include "exc.hpp"
+#include "integer-range.hpp"
#include "internal/borrowed-obj.hpp"
#include "internal/utils.hpp"
#include "internal/borrowed-obj.hpp"
#include "internal/utils.hpp"
-#include "integer-range.hpp"
-#include "exc.hpp"
#ifndef BABELTRACE_CPP_COMMON_BT2_INTEGER_RANGE_HPP
#define BABELTRACE_CPP_COMMON_BT2_INTEGER_RANGE_HPP
#ifndef BABELTRACE_CPP_COMMON_BT2_INTEGER_RANGE_HPP
#define BABELTRACE_CPP_COMMON_BT2_INTEGER_RANGE_HPP
+#include <type_traits>
+
#include <babeltrace2/babeltrace.h>
#include "internal/borrowed-obj.hpp"
#include <babeltrace2/babeltrace.h>
#include "internal/borrowed-obj.hpp"
#ifndef BABELTRACE_CPP_COMMON_BT2_MESSAGE_HPP
#define BABELTRACE_CPP_COMMON_BT2_MESSAGE_HPP
#ifndef BABELTRACE_CPP_COMMON_BT2_MESSAGE_HPP
#define BABELTRACE_CPP_COMMON_BT2_MESSAGE_HPP
#include <cstdint>
#include <functional>
#include <cstdint>
#include <functional>
+#include <type_traits>
+
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include "common/common.h"
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include "common/common.h"
-#include "internal/borrowed-obj.hpp"
-#include "internal/shared-obj.hpp"
-#include "internal/utils.hpp"
#include "cpp-common/bt2/trace-ir.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
#include "cpp-common/bt2/trace-ir.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
+#include "internal/borrowed-obj.hpp"
+#include "internal/shared-obj.hpp"
+#include "internal/utils.hpp"
namespace bt2 {
namespace internal {
namespace bt2 {
namespace internal {
#ifndef BABELTRACE_CPP_COMMON_BT2_TRACE_IR_HPP
#define BABELTRACE_CPP_COMMON_BT2_TRACE_IR_HPP
#ifndef BABELTRACE_CPP_COMMON_BT2_TRACE_IR_HPP
#define BABELTRACE_CPP_COMMON_BT2_TRACE_IR_HPP
+#include <type_traits>
+
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
-#include "internal/borrowed-obj.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
#include "cpp-common/optional.hpp"
#include "cpp-common/string_view.hpp"
#include "clock-class.hpp"
#include "clock-snapshot.hpp"
#include "field-class.hpp"
#include "field.hpp"
#include "clock-class.hpp"
#include "clock-snapshot.hpp"
#include "field-class.hpp"
#include "field.hpp"
+#include "internal/borrowed-obj.hpp"
#include "internal/utils.hpp"
#include "internal/utils.hpp"
#ifndef BABELTRACE_CPP_COMMON_BT2_VALUE_HPP
#define BABELTRACE_CPP_COMMON_BT2_VALUE_HPP
#ifndef BABELTRACE_CPP_COMMON_BT2_VALUE_HPP
#define BABELTRACE_CPP_COMMON_BT2_VALUE_HPP
#include <cstdint>
#include <functional>
#include <iterator>
#include <cstdint>
#include <functional>
#include <iterator>
+#include <type_traits>
+
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include "common/common.h"
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include "common/common.h"
+#include "cpp-common/optional.hpp"
+#include "cpp-common/string_view.hpp"
+
#include "common-iter.hpp"
#include "common-iter.hpp"
#include "internal/borrowed-obj.hpp"
#include "internal/shared-obj.hpp"
#include "internal/utils.hpp"
#include "internal/borrowed-obj.hpp"
#include "internal/shared-obj.hpp"
#include "internal/utils.hpp"
-#include "cpp-common/optional.hpp"
-#include "cpp-common/string_view.hpp"
-#include "exc.hpp"
namespace bt2 {
namespace internal {
namespace bt2 {
namespace internal {
#define BABELTRACE_CPP_COMMON_CFG_ERROR_REPORTING_THROW_HPP
#include <babeltrace2/babeltrace.h>
#define BABELTRACE_CPP_COMMON_CFG_ERROR_REPORTING_THROW_HPP
#include <babeltrace2/babeltrace.h>
#include "cfg-error-reporting.hpp"
/*
#include "cfg-error-reporting.hpp"
/*
#define BABELTRACE_CPP_COMMON_CFG_ERROR_REPORTING_HPP
#include <babeltrace2/babeltrace.h>
#define BABELTRACE_CPP_COMMON_CFG_ERROR_REPORTING_HPP
#include <babeltrace2/babeltrace.h>
#include "cfg-logging.hpp"
/*
#include "cfg-logging.hpp"
/*
#define BABELTRACE_CPP_COMMON_CFG_LOGGING_ERROR_REPORTING_THROW_HPP
#include <babeltrace2/babeltrace.h>
#define BABELTRACE_CPP_COMMON_CFG_LOGGING_ERROR_REPORTING_THROW_HPP
#include <babeltrace2/babeltrace.h>
#include "cfg-logging-error-reporting.hpp"
/*
#include "cfg-logging-error-reporting.hpp"
/*
#define BABELTRACE_CPP_COMMON_CFG_LOGGING_ERROR_REPORTING_HPP
#include <babeltrace2/babeltrace.h>
#define BABELTRACE_CPP_COMMON_CFG_LOGGING_ERROR_REPORTING_HPP
#include <babeltrace2/babeltrace.h>
-#include "cfg-logging.hpp"
#include "cfg-error-reporting.hpp"
#include "cfg-error-reporting.hpp"
+#include "cfg-logging.hpp"
/*
* Logs with the error level using the configuration `_log_cfg` and
/*
* Logs with the error level using the configuration `_log_cfg` and
#endif
#include <babeltrace2/babeltrace.h>
#endif
#include <babeltrace2/babeltrace.h>
#include "logging/log.h"
#define _BT_CLOG_OBJ_FMT_PREFIX "[%s] "
#include "logging/log.h"
#define _BT_CLOG_OBJ_FMT_PREFIX "[%s] "
#define BABELTRACE_CPP_COMMON_EXC_HPP
#include <exception>
#define BABELTRACE_CPP_COMMON_EXC_HPP
#include <exception>
#include <new>
#include <stdexcept>
#include <new>
#include <stdexcept>
#ifndef BABELTRACE_CPP_COMMON_GLIB_UP_HPP
#define BABELTRACE_CPP_COMMON_GLIB_UP_HPP
#ifndef BABELTRACE_CPP_COMMON_GLIB_UP_HPP
#define BABELTRACE_CPP_COMMON_GLIB_UP_HPP
namespace bt2_common {
namespace internal {
namespace bt2_common {
namespace internal {
#define BABELTRACE_CPP_COMMON_LOG_CFG_HPP
#include <babeltrace2/babeltrace.h>
#define BABELTRACE_CPP_COMMON_LOG_CFG_HPP
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
namespace bt2_common {
#include "common/assert.h"
namespace bt2_common {
#define BABELTRACE_CPP_COMMON_MAKE_UNIQUE_HPP
#include <memory>
#define BABELTRACE_CPP_COMMON_MAKE_UNIQUE_HPP
#include <memory>
* SPDX-License-Identifier: MIT
*/
* SPDX-License-Identifier: MIT
*/
#ifndef BABELTRACE_CPP_COMMON_UUID_VIEW_HPP
#define BABELTRACE_CPP_COMMON_UUID_VIEW_HPP
#ifndef BABELTRACE_CPP_COMMON_UUID_VIEW_HPP
#define BABELTRACE_CPP_COMMON_UUID_VIEW_HPP
#include <array>
#include <cstdint>
#include <string>
#include <array>
#include <cstdint>
#include <string>
#include "common/assert.h"
#include "common/uuid.h"
#include "common/assert.h"
#include "common/uuid.h"
#include "common/assert.h"
#include "common/uuid.h"
#include "common/assert.h"
#include "common/uuid.h"
#include "uuid-view.hpp"
namespace bt2_common {
#include "uuid-view.hpp"
namespace bt2_common {
#define SRC_CPP_COMMON_VECTOR_HPP
#include <vector>
#define SRC_CPP_COMMON_VECTOR_HPP
#include <vector>
#include "common/assert.h"
namespace bt2_common {
#include "common/assert.h"
namespace bt2_common {
* Babeltrace - CTF binary field class reader (BFCR)
*/
* Babeltrace - CTF binary field class reader (BFCR)
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (bfcr->self_comp)
#define BT_LOG_OUTPUT_LEVEL (bfcr->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/BFCR"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP (bfcr->self_comp)
#define BT_LOG_OUTPUT_LEVEL (bfcr->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/BFCR"
#include "logging/comp-logging.h"
-#include <stdlib.h>
-#include <stdint.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stddef.h>
-#include <stdbool.h>
+#include "common/align.h"
#include "common/assert.h"
#include "common/assert.h"
-#include <string.h>
-#include "compat/bitfield.h"
#include "common/common.h"
#include "common/common.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/align.h"
-#include <glib.h>
+#include "compat/bitfield.h"
#include "../metadata/ctf-meta.hpp"
#include "../metadata/ctf-meta.hpp"
#define DIV8(_x) ((_x) >> 3)
#define BYTES_TO_BITS(_x) ((_x) *8)
#define DIV8(_x) ((_x) >> 3)
#define BYTES_TO_BITS(_x) ((_x) *8)
#ifndef CTF_BFCR_H
#define CTF_BFCR_H
#ifndef CTF_BFCR_H
#define CTF_BFCR_H
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include "../metadata/ctf-meta.hpp"
#include "common/macros.h"
#include "../metadata/ctf-meta.hpp"
#ifndef _CTF_AST_H
#define _CTF_AST_H
#ifndef _CTF_AST_H
#define _CTF_AST_H
#include <stdint.h>
#include <stdio.h>
#include <stdint.h>
#include <stdio.h>
-#include <glib.h>
-#include "common/list.h"
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
#include "common/assert.h"
#include "common/assert.h"
+#include "common/list.h"
+#include "common/macros.h"
// the parameter name (of the reentrant 'yyparse' function)
// data is a pointer to a 'SParserParam' structure
// the parameter name (of the reentrant 'yyparse' function)
// data is a pointer to a 'SParserParam' structure
* Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*/
* Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <limits.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (ctx->self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (ctx->self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (ctx->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/RESOLVE"
#define BT_COMP_LOG_SELF_COMP (ctx->self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (ctx->self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (ctx->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/RESOLVE"
#include "logging/comp-logging.h"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
#include "common/assert.h"
#include "common/common.h"
#include "common/assert.h"
#include "common/common.h"
-#include <glib.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <string.h>
-#include <inttypes.h>
-#include <limits.h>
-#include <stdlib.h>
-#include <glib.h>
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
using field_class_stack_t = GPtrArray;
using field_class_stack_t = GPtrArray;
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
* Copyright 2020 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2020 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <stdint.h>
#include <string.h>
#include <stdint.h>
#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <stdint.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (log_cfg->self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/UPDATE-DEF-CC"
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (log_cfg->self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/UPDATE-DEF-CC"
#include "logging/comp-logging.h"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
#include "common/assert.h"
#include "common/assert.h"
-#include <glib.h>
-#include <stdint.h>
-#include <string.h>
-#include <inttypes.h>
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
static inline int find_mapped_clock_class(struct ctf_field_class *fc,
struct ctf_clock_class **clock_class,
static inline int find_mapped_clock_class(struct ctf_field_class *fc,
struct ctf_clock_class **clock_class,
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
-#include "compat/glib.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#include "common/assert.h"
#include "common/assert.h"
+#include "common/macros.h"
+#include "compat/glib.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <stdint.h>
#include <string.h>
#include <stdint.h>
#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <stdint.h>
#include <string.h>
#include <stdint.h>
#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <stdint.h>
#include <string.h>
#include <stdint.h>
#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <stdint.h>
#include <string.h>
#include <stdint.h>
#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <stdint.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (log_cfg->self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/VALIDATE"
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (log_cfg->self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/VALIDATE"
#include "logging/comp-logging.h"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
#include "common/assert.h"
#include "common/assert.h"
-#include <glib.h>
-#include <stdint.h>
-#include <string.h>
-#include <inttypes.h>
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
static int validate_stream_class(struct ctf_stream_class *sc, struct meta_log_config *log_cfg)
{
static int validate_stream_class(struct ctf_stream_class *sc, struct meta_log_config *log_cfg)
{
#define _CTF_META_VISITORS_H
#include <babeltrace2/babeltrace.h>
#define _CTF_META_VISITORS_H
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include "ctf-meta.hpp"
#include "common/macros.h"
#include "ctf-meta.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <stdint.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/WARN-MEANINGLESS-HEADER-FIELDS"
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/WARN-MEANINGLESS-HEADER-FIELDS"
#include "logging/comp-logging.h"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
#include "common/assert.h"
#include "common/assert.h"
-#include <glib.h>
-#include <stdint.h>
-#include <string.h>
-#include <inttypes.h>
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
static inline void warn_meaningless_field(const char *name, const char *scope_name,
struct meta_log_config *log_cfg)
static inline void warn_meaningless_field(const char *name, const char *scope_name,
struct meta_log_config *log_cfg)
#ifndef _CTF_META_H
#define _CTF_META_H
#ifndef _CTF_META_H
#define _CTF_META_H
-#include <babeltrace2/babeltrace.h>
-#include "common/common.h"
-#include "common/uuid.h"
-#include "common/assert.h"
#include <glib.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <glib.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/common.h"
+#include "common/uuid.h"
+
enum ctf_field_class_type
{
CTF_FIELD_CLASS_TYPE_INT,
enum ctf_field_class_type
{
CTF_FIELD_CLASS_TYPE_INT,
* Copyright 2016-2017 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2016-2017 Philippe Proulx <pproulx@efficios.com>
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP self_comp
#define BT_COMP_LOG_SELF_COMP_CLASS self_comp_class
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/CTF/META/DECODER-DECODE-PACKET"
#define BT_COMP_LOG_SELF_COMP self_comp
#define BT_COMP_LOG_SELF_COMP_CLASS self_comp_class
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/CTF/META/DECODER-DECODE-PACKET"
#include "logging/comp-logging.h"
#include "logging/comp-logging.h"
-#include "decoder-packetized-file-stream-to-buf.hpp"
-
-#include <stdio.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <inttypes.h>
#include "common/assert.h"
#include "common/uuid.h"
#include "compat/memstream.h"
#include "common/assert.h"
#include "common/uuid.h"
#include "compat/memstream.h"
-#include <babeltrace2/babeltrace.h>
-#include <glib.h>
-#include <string.h>
+#include "decoder-packetized-file-stream-to-buf.hpp"
#include "decoder.hpp"
#include "scanner.hpp"
#include "decoder.hpp"
#include "scanner.hpp"
#define TSDL_MAGIC 0x75d11d57
#define TSDL_MAGIC 0x75d11d57
* Copyright 2016-2017 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2016-2017 Philippe Proulx <pproulx@efficios.com>
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (mdec->config.self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (mdec->config.self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (mdec->config.log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/DECODER"
#define BT_COMP_LOG_SELF_COMP (mdec->config.self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (mdec->config.self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (mdec->config.log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/DECODER"
#include "logging/comp-logging.h"
#include "logging/comp-logging.h"
-#include <stdio.h>
-#include <stdbool.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <inttypes.h>
#include "common/assert.h"
#include "common/uuid.h"
#include "compat/memstream.h"
#include "common/assert.h"
#include "common/uuid.h"
#include "compat/memstream.h"
-#include <babeltrace2/babeltrace.h>
-#include <glib.h>
-#include <string.h>
+#include "decoder-packetized-file-stream-to-buf.hpp"
-#include "scanner.hpp"
-#include "logging.hpp"
#include "parser-wrap.hpp"
#include "parser-wrap.hpp"
-#include "decoder-packetized-file-stream-to-buf.hpp"
#define TSDL_MAGIC 0x75d11d57
#define TSDL_MAGIC 0x75d11d57
#ifndef _METADATA_DECODER_H
#define _METADATA_DECODER_H
#ifndef _METADATA_DECODER_H
#define _METADATA_DECODER_H
#include <stdio.h>
#include <babeltrace2/babeltrace.h>
#include <stdio.h>
#include <babeltrace2/babeltrace.h>
* Common Trace Formal Lexer
*/
* Common Trace Formal Lexer
*/
+#include <ctype.h>
+#include <stdio.h>
+
#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
#define BT_LOG_TAG "PLUGIN-CTF-METADATA-LEXER"
#include "plugins/ctf/common/metadata/logging.hpp"
#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
#define BT_LOG_TAG "PLUGIN-CTF-METADATA-LEXER"
#include "plugins/ctf/common/metadata/logging.hpp"
-#include <stdio.h>
-#include <ctype.h>
-#include "plugins/ctf/common/metadata/scanner.hpp"
-#include "plugins/ctf/common/metadata/parser-wrap.hpp"
#include "plugins/ctf/common/metadata/ast.hpp"
#include "plugins/ctf/common/metadata/ast.hpp"
+#include "plugins/ctf/common/metadata/parser-wrap.hpp"
+#include "plugins/ctf/common/metadata/scanner.hpp"
#define YY_FATAL_ERROR(_msg) BT_LOGF_STR(_msg)
#define YY_FATAL_ERROR(_msg) BT_LOGF_STR(_msg)
#define CTF_METADATA_LOGGING_H
#include <babeltrace2/babeltrace.h>
#define CTF_METADATA_LOGGING_H
#include <babeltrace2/babeltrace.h>
#include "logging/log.h"
/*
#include "logging/log.h"
/*
* Common Trace Format Object Stack.
*/
* Common Trace Format Object Stack.
*/
#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
#define BT_LOG_TAG "PLUGIN/CTF/META/OBJSTACK"
#include "logging.hpp"
#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
#define BT_LOG_TAG "PLUGIN/CTF/META/OBJSTACK"
#include "logging.hpp"
-#include "objstack.hpp"
-
-#include <stdlib.h>
+#include "common/align.h"
#include "common/list.h"
#include "common/macros.h"
#include "common/list.h"
#include "common/macros.h"
-#include "common/align.h"
+
+#include "objstack.hpp"
#define OBJSTACK_ALIGN 8 /* Object stack alignment */
#define OBJSTACK_INIT_LEN 128
#define OBJSTACK_ALIGN 8 /* Object stack alignment */
#define OBJSTACK_INIT_LEN 128
* Common Trace Format Metadata Grammar.
*/
* Common Trace Format Metadata Grammar.
*/
+#include <assert.h>
+#include <ctype.h>
+#include <errno.h>
+#include <glib.h>
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
#define BT_LOG_TAG "PLUGIN/CTF/META/PARSER"
#include "plugins/ctf/common/metadata/logging.hpp"
#define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
#define BT_LOG_TAG "PLUGIN/CTF/META/PARSER"
#include "plugins/ctf/common/metadata/logging.hpp"
-#include <stdio.h>
-#include <ctype.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <glib.h>
-#include <errno.h>
-#include <inttypes.h>
#include "common/list.h"
#include "common/assert.h"
#include "common/list.h"
#include "common/assert.h"
-#include "plugins/ctf/common/metadata/scanner.hpp"
#include "plugins/ctf/common/metadata/ast.hpp"
#include "plugins/ctf/common/metadata/objstack.hpp"
#include "plugins/ctf/common/metadata/ast.hpp"
#include "plugins/ctf/common/metadata/objstack.hpp"
#include "plugins/ctf/common/metadata/parser-wrap.hpp"
/*
#include "plugins/ctf/common/metadata/parser-wrap.hpp"
/*
#ifndef ALLOW_INCLUDE_PARSER_H
# error "Don't include parser.h directly, include parser-wrap.h instead."
#endif
#ifndef ALLOW_INCLUDE_PARSER_H
# error "Don't include parser.h directly, include parser-wrap.h instead."
#endif
+
+#include "plugins/ctf/common/metadata/scanner.hpp"
#define _CTF_SCANNER_H
#include <stdio.h>
#define _CTF_SCANNER_H
#include <stdio.h>
#include "common/macros.h"
#include "common/macros.h"
#include "ast.hpp"
#ifndef YY_TYPEDEF_YY_SCANNER_T
#include "ast.hpp"
#ifndef YY_TYPEDEF_YY_SCANNER_T
* Common Trace Format metadata visitor (generates CTF IR objects).
*/
* Common Trace Format metadata visitor (generates CTF IR objects).
*/
+#include <string>
+
+#include <ctype.h>
+#include <errno.h>
+#include <glib.h>
+#include <inttypes.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (ctx->log_cfg.self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (ctx->log_cfg.self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (ctx->log_cfg.log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/IR-VISITOR"
#define BT_COMP_LOG_SELF_COMP (ctx->log_cfg.self_comp)
#define BT_COMP_LOG_SELF_COMP_CLASS (ctx->log_cfg.self_comp_class)
#define BT_LOG_OUTPUT_LEVEL (ctx->log_cfg.log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/IR-VISITOR"
#include "logging/comp-logging.h"
#include "logging/comp-logging.h"
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdbool.h>
-#include <stdlib.h>
-#include <ctype.h>
#include "common/assert.h"
#include "common/assert.h"
-#include <glib.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <string>
#include "common/common.h"
#include "common/uuid.h"
#include "compat/endian.h"
#include "common/common.h"
#include "common/uuid.h"
#include "compat/endian.h"
-#include <babeltrace2/babeltrace.h>
-#include "logging.hpp"
-#include "scanner.hpp"
-#include "decoder.hpp"
-#include "ctf-meta.hpp"
#include "ctf-meta-visitors.hpp"
#include "ctf-meta-visitors.hpp"
+#include "ctf-meta.hpp"
+#include "decoder.hpp"
+#include "scanner.hpp"
/* Bit value (left shift) */
#define _BV(_val) (1 << (_val))
/* Bit value (left shift) */
#define _BV(_val) (1 << (_val))
* Common Trace Format Metadata Parent Link Creator.
*/
* Common Trace Format Metadata Parent Link Creator.
*/
+#include <errno.h>
+#include <glib.h>
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/PARENT-LINKS-VISITOR"
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/PARENT-LINKS-VISITOR"
#include "logging/comp-logging.h"
#include "logging/comp-logging.h"
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
#include "common/assert.h"
#include "common/assert.h"
-#include <glib.h>
-#include <inttypes.h>
-#include <errno.h>
-#include "common/macros.h"
+#include "common/macros.h"
+
static int ctf_visitor_unary_expression(int depth, struct ctf_node *node,
struct meta_log_config *log_cfg)
static int ctf_visitor_unary_expression(int depth, struct ctf_node *node,
struct meta_log_config *log_cfg)
* Common Trace Format Metadata Semantic Validator.
*/
* Common Trace Format Metadata Semantic Validator.
*/
+#include <errno.h>
+#include <glib.h>
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/SEMANTIC-VALIDATOR-VISITOR"
#define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
#define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/META/SEMANTIC-VALIDATOR-VISITOR"
#include "logging/comp-logging.h"
#include "logging/comp-logging.h"
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
#include "common/assert.h"
#include "common/assert.h"
-#include <glib.h>
-#include <inttypes.h>
-#include <errno.h>
#define _bt_list_first_entry(ptr, type, member) bt_list_entry((ptr)->next, type, member)
#define _bt_list_first_entry(ptr, type, member) bt_list_entry((ptr)->next, type, member)
* Babeltrace - CTF message iterator
*/
* Babeltrace - CTF message iterator
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (msg_it->self_comp)
#define BT_LOG_OUTPUT_LEVEL (msg_it->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/MSG-ITER"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP (msg_it->self_comp)
#define BT_LOG_OUTPUT_LEVEL (msg_it->log_level)
#define BT_LOG_TAG "PLUGIN/CTF/MSG-ITER"
#include "logging/comp-logging.h"
-#include <stdint.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stddef.h>
-#include <stdbool.h>
#include "common/assert.h"
#include "common/assert.h"
-#include <string.h>
-#include <babeltrace2/babeltrace.h>
#include "common/common.h"
#include "common/common.h"
-#include <glib.h>
-#include <stdlib.h>
#include "../bfcr/bfcr.hpp"
#include "../bfcr/bfcr.hpp"
#define CTF_MSG_ITER_H
#include <stdbool.h>
#define CTF_MSG_ITER_H
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdint.h>
#include <stdio.h>
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include "../metadata/ctf-meta.hpp"
#include "common/macros.h"
#include "../metadata/ctf-meta.hpp"
#define CTF_BTR_PRINT_H
#include <stdio.h>
#define CTF_BTR_PRINT_H
#include <stdio.h>
#include "common/macros.h"
#define PERR(fmt, ...) \
#include "common/macros.h"
#define PERR(fmt, ...) \
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H
-#include <babeltrace2/babeltrace.h>
-#include "common/common.h"
-#include "common/assert.h"
-#include "common/uuid.h"
#include <stdint.h>
#include <string.h>
#include <stdint.h>
#include <string.h>
-#include <stdbool.h>
-#include <ctype.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/common.h"
+#include "common/uuid.h"
enum fs_sink_ctf_field_class_type
{
enum fs_sink_ctf_field_class_type
{
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
+#include <glib.h>
+#include <stdbool.h>
+#include <stdio.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (stream->trace->fs_sink->self_comp)
#define BT_LOG_OUTPUT_LEVEL (stream->log_level)
#define BT_LOG_TAG "PLUGIN/SINK.CTF.FS/STREAM"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP (stream->trace->fs_sink->self_comp)
#define BT_LOG_OUTPUT_LEVEL (stream->log_level)
#define BT_LOG_TAG "PLUGIN/SINK.CTF.FS/STREAM"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include <glib.h>
#include "common/assert.h"
#include "common/assert.h"
-#include "ctfser/ctfser.h"
#include "compat/endian.h"
#include "compat/endian.h"
+#include "ctfser/ctfser.h"
-#include "fs-sink.hpp"
-#include "fs-sink-trace.hpp"
#include "fs-sink-stream.hpp"
#include "fs-sink-stream.hpp"
+#include "fs-sink-trace.hpp"
+#include "fs-sink.hpp"
#include "translate-trace-ir-to-ctf-ir.hpp"
void fs_sink_stream_destroy(struct fs_sink_stream *stream)
#include "translate-trace-ir-to-ctf-ir.hpp"
void fs_sink_stream_destroy(struct fs_sink_stream *stream)
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_STREAM_H
-#include "common/macros.h"
-#include <babeltrace2/babeltrace.h>
-#include "ctfser/ctfser.h"
#include <glib.h>
#include <stdbool.h>
#include <stdint.h>
#include <glib.h>
#include <stdbool.h>
#include <stdint.h>
+#include <babeltrace2/babeltrace.h>
+
+#include "common/macros.h"
+#include "ctfser/ctfser.h"
+
#include "fs-sink-ctf-meta.hpp"
struct fs_sink_trace;
#include "fs-sink-ctf-meta.hpp"
struct fs_sink_trace;
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
+#include <glib.h>
+#include <stdbool.h>
+#include <stdio.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (trace->fs_sink->self_comp)
#define BT_LOG_OUTPUT_LEVEL (trace->log_level)
#define BT_LOG_TAG "PLUGIN/SINK.CTF.FS/TRACE"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP (trace->fs_sink->self_comp)
#define BT_LOG_OUTPUT_LEVEL (trace->log_level)
#define BT_LOG_TAG "PLUGIN/SINK.CTF.FS/TRACE"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include <glib.h>
#include "common/assert.h"
#include "ctfser/ctfser.h"
#include "common/assert.h"
#include "ctfser/ctfser.h"
-#include "translate-trace-ir-to-ctf-ir.hpp"
-#include "translate-ctf-ir-to-tsdl.hpp"
-#include "fs-sink.hpp"
-#include "fs-sink-trace.hpp"
#include "fs-sink-stream.hpp"
#include "fs-sink-stream.hpp"
+#include "fs-sink-trace.hpp"
+#include "fs-sink.hpp"
+#include "translate-ctf-ir-to-tsdl.hpp"
+#include "translate-trace-ir-to-ctf-ir.hpp"
/*
* Sanitizes `path` so as to:
/*
* Sanitizes `path` so as to:
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_TRACE_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_TRACE_H
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_TRACE_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_TRACE_H
-#include "common/macros.h"
-#include <babeltrace2/babeltrace.h>
-#include "ctfser/ctfser.h"
#include <glib.h>
#include <stdint.h>
#include <glib.h>
#include <stdint.h>
+#include <babeltrace2/babeltrace.h>
+
+#include "common/macros.h"
+#include "ctfser/ctfser.h"
+
#include "fs-sink-ctf-meta.hpp"
struct fs_sink_comp;
#include "fs-sink-ctf-meta.hpp"
struct fs_sink_comp;
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
+#include <glib.h>
+#include <stdbool.h>
+#include <stdio.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (fs_sink->self_comp)
#define BT_LOG_OUTPUT_LEVEL (fs_sink->log_level)
#define BT_LOG_TAG "PLUGIN/SINK.CTF.FS"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP (fs_sink->self_comp)
#define BT_LOG_OUTPUT_LEVEL (fs_sink->log_level)
#define BT_LOG_TAG "PLUGIN/SINK.CTF.FS"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include <glib.h>
#include "common/assert.h"
#include "ctfser/ctfser.h"
#include "common/assert.h"
#include "ctfser/ctfser.h"
#include "plugins/common/param-validation/param-validation.h"
#include "plugins/common/param-validation/param-validation.h"
-#include "fs-sink.hpp"
-#include "fs-sink-trace.hpp"
-#include "fs-sink-stream.hpp"
#include "fs-sink-ctf-meta.hpp"
#include "fs-sink-ctf-meta.hpp"
-#include "translate-trace-ir-to-ctf-ir.hpp"
+#include "fs-sink-stream.hpp"
+#include "fs-sink-trace.hpp"
+#include "fs-sink.hpp"
#include "translate-ctf-ir-to-tsdl.hpp"
#include "translate-ctf-ir-to-tsdl.hpp"
+#include "translate-trace-ir-to-ctf-ir.hpp"
static const char * const in_port_name = "in";
static const char * const in_port_name = "in";
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_H
-#include "common/macros.h"
-#include <babeltrace2/babeltrace.h>
-#include <stdbool.h>
+#include <stdbool.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/macros.h"
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
-#include "translate-ctf-ir-to-tsdl.hpp"
-
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include <stdio.h>
+
+#include <babeltrace2/babeltrace.h>
+
#include "common/assert.h"
#include "common/assert.h"
+#include "common/macros.h"
#include "compat/endian.h"
#include "fs-sink-ctf-meta.hpp"
#include "compat/endian.h"
#include "fs-sink-ctf-meta.hpp"
+#include "translate-ctf-ir-to-tsdl.hpp"
#include <glib.h>
#include "common/macros.h"
#include <glib.h>
#include "common/macros.h"
#include "fs-sink-ctf-meta.hpp"
void translate_trace_ctf_ir_to_tsdl(struct fs_sink_ctf_trace *trace, GString *tsdl);
#include "fs-sink-ctf-meta.hpp"
void translate_trace_ctf_ir_to_tsdl(struct fs_sink_ctf_trace *trace, GString *tsdl);
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
+#include <string>
+
+#include <glib.h>
+#include <stdbool.h>
+#include <stdio.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (ctx->self_comp)
#define BT_LOG_OUTPUT_LEVEL (ctx->log_level)
#define BT_LOG_TAG "PLUGIN/SINK.CTF.FS/TRANSLATE-TRACE-IR-TO-CTF-IR"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP (ctx->self_comp)
#define BT_LOG_OUTPUT_LEVEL (ctx->log_level)
#define BT_LOG_TAG "PLUGIN/SINK.CTF.FS/TRANSLATE-TRACE-IR-TO-CTF-IR"
#include "logging/comp-logging.h"
-#include "translate-trace-ir-to-ctf-ir.hpp"
-
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/common.h"
#include "common/assert.h"
#include "common/assert.h"
-#include <stdio.h>
-#include <stdbool.h>
-#include <string.h>
-#include <string>
-#include <glib.h>
+#include "common/common.h"
+#include "common/macros.h"
#include "fs-sink-ctf-meta.hpp"
#include "fs-sink-ctf-meta.hpp"
+#include "fs-sink.hpp"
+#include "translate-trace-ir-to-ctf-ir.hpp"
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_H
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_TRACE_IR_TO_CTF_IR_H
-#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
+#include "common/macros.h"
+
#include "fs-sink-ctf-meta.hpp"
#include "fs-sink-ctf-meta.hpp"
int try_translate_event_class_trace_ir_to_ctf_ir(struct fs_sink_comp *fs_sink,
struct fs_sink_ctf_stream_class *sc,
int try_translate_event_class_trace_ir_to_ctf_ir(struct fs_sink_comp *fs_sink,
struct fs_sink_ctf_stream_class *sc,
* Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
*/
* Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP (self_comp)
#define BT_LOG_OUTPUT_LEVEL (log_level)
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/DS"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP (self_comp)
#define BT_LOG_OUTPUT_LEVEL (log_level)
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/DS"
#include "logging/comp-logging.h"
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <glib.h>
-#include <inttypes.h>
-#include "compat/mman.h"
-#include "compat/endian.h"
-#include <babeltrace2/babeltrace.h>
+#include "common/assert.h"
#include "common/common.h"
#include "common/common.h"
-#include "file.hpp"
-#include "metadata.hpp"
+#include "compat/endian.h"
+#include "compat/mman.h"
+
#include "../common/msg-iter/msg-iter.hpp"
#include "../common/msg-iter/msg-iter.hpp"
-#include "common/assert.h"
#include "data-stream-file.hpp"
#include "data-stream-file.hpp"
+#include "file.hpp"
+#include "metadata.hpp"
static inline size_t remaining_mmap_bytes(struct ctf_fs_ds_file *ds_file)
{
static inline size_t remaining_mmap_bytes(struct ctf_fs_ds_file *ds_file)
{
#ifndef CTF_FS_DS_FILE_H
#define CTF_FS_DS_FILE_H
#ifndef CTF_FS_DS_FILE_H
#define CTF_FS_DS_FILE_H
-#include <stdio.h>
-#include <stdbool.h>
-#include "common/macros.h"
+#include <stdbool.h>
+#include <stdio.h>
+
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
+#include "common/macros.h"
+
#include "../common/msg-iter/msg-iter.hpp"
#include "lttng-index.hpp"
#include "../common/msg-iter/msg-iter.hpp"
#include "lttng-index.hpp"
* Copyright 2016 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright 2016 Philippe Proulx <pproulx@efficios.com>
*/
+#include <glib.h>
+#include <stdio.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
+
#define BT_COMP_LOG_SELF_COMP (file->self_comp)
#define BT_LOG_OUTPUT_LEVEL (file->log_level)
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/FILE"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP (file->self_comp)
#define BT_LOG_OUTPUT_LEVEL (file->log_level)
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/FILE"
#include "logging/comp-logging.h"
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <glib.h>
#include "file.hpp"
void ctf_fs_file_destroy(struct ctf_fs_file *file)
#include "file.hpp"
void ctf_fs_file_destroy(struct ctf_fs_file *file)
#ifndef CTF_FS_FILE_H
#define CTF_FS_FILE_H
#ifndef CTF_FS_FILE_H
#define CTF_FS_FILE_H
#include "common/macros.h"
#include "common/macros.h"
#include "fs.hpp"
void ctf_fs_file_destroy(struct ctf_fs_file *file);
#include "fs.hpp"
void ctf_fs_file_destroy(struct ctf_fs_file *file);
* Babeltrace CTF file system Reader Component
*/
* Babeltrace CTF file system Reader Component
*/
+#include <glib.h>
+#include <inttypes.h>
+#include <stdbool.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP self_comp
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP self_comp
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS"
#include "logging/comp-logging.h"
+#include "common/assert.h"
#include "common/common.h"
#include "common/common.h"
-#include <babeltrace2/babeltrace.h>
-#include <glib.h>
-#include "common/assert.h"
-#include <inttypes.h>
-#include <stdbool.h>
-#include "fs.hpp"
-#include "metadata.hpp"
-#include "data-stream-file.hpp"
-#include "file.hpp"
-#include "../common/metadata/decoder.hpp"
+
+#include "plugins/common/param-validation/param-validation.h"
+
#include "../common/metadata/ctf-meta-configure-ir-trace.hpp"
#include "../common/metadata/ctf-meta-configure-ir-trace.hpp"
+#include "../common/metadata/decoder.hpp"
#include "../common/msg-iter/msg-iter.hpp"
#include "../common/msg-iter/msg-iter.hpp"
+#include "data-stream-file.hpp"
+#include "file.hpp"
+#include "fs.hpp"
+#include "metadata.hpp"
-#include "plugins/common/param-validation/param-validation.h"
#define BABELTRACE_PLUGIN_CTF_FS_H
#include <stdbool.h>
#define BABELTRACE_PLUGIN_CTF_FS_H
#include <stdbool.h>
-#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
+
+#include "common/macros.h"
+
+#include "../common/metadata/decoder.hpp"
#include "data-stream-file.hpp"
#include "metadata.hpp"
#include "data-stream-file.hpp"
#include "metadata.hpp"
-#include "../common/metadata/decoder.hpp"
extern bool ctf_fs_debug;
extern bool ctf_fs_debug;
#define LTTNG_INDEX_H
#include <stddef.h>
#define LTTNG_INDEX_H
#include <stddef.h>
#include "compat/limits.h"
#define CTF_INDEX_MAGIC 0xC1F1DCC1
#include "compat/limits.h"
#define CTF_INDEX_MAGIC 0xC1F1DCC1
* Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
*/
* Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
*/
+#include <glib.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP self_comp
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/META"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP self_comp
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/META"
#include "logging/comp-logging.h"
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
#include "common/assert.h"
#include "common/assert.h"
#include "common/uuid.h"
#include "compat/memstream.h"
#include "common/uuid.h"
#include "compat/memstream.h"
-#include <babeltrace2/babeltrace.h>
+#include "../common/metadata/decoder.hpp"
-#include "../common/metadata/decoder.hpp"
FILE *ctf_fs_metadata_open_file(const char *trace_path, bt_logging_level log_level,
bt_self_component_class *comp_class)
FILE *ctf_fs_metadata_open_file(const char *trace_path, bt_logging_level log_level,
bt_self_component_class *comp_class)
#ifndef CTF_FS_METADATA_H
#define CTF_FS_METADATA_H
#ifndef CTF_FS_METADATA_H
#define CTF_FS_METADATA_H
#include <stdbool.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdio.h>
-#include <glib.h>
-#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
+#include "common/macros.h"
+
#define CTF_FS_METADATA_FILENAME "metadata"
struct ctf_fs_trace;
#define CTF_FS_METADATA_FILENAME "metadata"
struct ctf_fs_trace;
* Babeltrace CTF file system Reader Component queries
*/
* Babeltrace CTF file system Reader Component queries
*/
+#include <fcntl.h>
+#include <glib.h>
+#include <glib/gstdio.h>
+#include <stdbool.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/QUERY"
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/SRC.CTF.FS/QUERY"
+#include "logging/comp-logging.h"
-#include "query.hpp"
-#include <stdbool.h>
-#include <glib.h>
-#include <glib/gstdio.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
#include "common/assert.h"
#include "common/assert.h"
-#include "metadata.hpp"
-#include "../common/metadata/decoder.hpp"
#include "common/common.h"
#include "common/macros.h"
#include "common/common.h"
#include "common/macros.h"
-#include <babeltrace2/babeltrace.h>
+
+#include "../common/metadata/decoder.hpp"
-#include "logging/comp-logging.h"
+#include "metadata.hpp"
+#include "query.hpp"
#define METADATA_TEXT_SIG "/* CTF 1.8"
#define METADATA_TEXT_SIG "/* CTF 1.8"
#ifndef BABELTRACE_PLUGIN_CTF_FS_QUERY_H
#define BABELTRACE_PLUGIN_CTF_FS_QUERY_H
#ifndef BABELTRACE_PLUGIN_CTF_FS_QUERY_H
#define BABELTRACE_PLUGIN_CTF_FS_QUERY_H
-#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
+#include "common/macros.h"
+
bt_component_class_query_method_status
metadata_info_query(bt_self_component_class_source *comp_class, const bt_value *params,
bt_logging_level log_level, const bt_value **result);
bt_component_class_query_method_status
metadata_info_query(bt_self_component_class_source *comp_class, const bt_value *params,
bt_logging_level log_level, const bt_value **result);
* Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
*/
* Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
*/
-#define BT_COMP_LOG_SELF_COMP self_comp
-#define BT_LOG_OUTPUT_LEVEL log_level
-#define BT_LOG_TAG "PLUGIN/SRC.CTF.LTTNG-LIVE/DS"
-#include "logging/comp-logging.h"
-
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
-#include "../common/msg-iter/msg-iter.hpp"
+#define BT_COMP_LOG_SELF_COMP self_comp
+#define BT_LOG_OUTPUT_LEVEL log_level
+#define BT_LOG_TAG "PLUGIN/SRC.CTF.LTTNG-LIVE/DS"
+#include "logging/comp-logging.h"
+
#include "common/assert.h"
#include "compat/mman.h"
#include "common/assert.h"
#include "compat/mman.h"
+
+#include "../common/msg-iter/msg-iter.hpp"
#include "data-stream.hpp"
#define STREAM_NAME_PREFIX "stream-"
#include "data-stream.hpp"
#define STREAM_NAME_PREFIX "stream-"
#ifndef LTTNG_LIVE_DATA_STREAM_H
#define LTTNG_LIVE_DATA_STREAM_H
#ifndef LTTNG_LIVE_DATA_STREAM_H
#define LTTNG_LIVE_DATA_STREAM_H
-#include <stdio.h>
-#include <stdint.h>
-
+#include <stdint.h>
+#include <stdio.h>
#include "../common/msg-iter/msg-iter.hpp"
#include "lttng-live.hpp"
#include "../common/msg-iter/msg-iter.hpp"
#include "lttng-live.hpp"
* Babeltrace CTF LTTng-live Client Component
*/
* Babeltrace CTF LTTng-live Client Component
*/
-#define BT_COMP_LOG_SELF_COMP self_comp
-#define BT_LOG_OUTPUT_LEVEL log_level
-#define BT_LOG_TAG "PLUGIN/SRC.CTF.LTTNG-LIVE"
-#include "logging/comp-logging.h"
-
#include <inttypes.h>
#include <stdbool.h>
#include <unistd.h>
#include <inttypes.h>
#include <stdbool.h>
#include <unistd.h>
+#include <babeltrace2/babeltrace.h>
+
+#define BT_COMP_LOG_SELF_COMP self_comp
+#define BT_LOG_OUTPUT_LEVEL log_level
+#define BT_LOG_TAG "PLUGIN/SRC.CTF.LTTNG-LIVE"
+#include "logging/comp-logging.h"
#include "common/assert.h"
#include "common/assert.h"
-#include <babeltrace2/babeltrace.h>
#include "compat/compiler.h"
#include "plugins/common/muxing/muxing.h"
#include "plugins/common/param-validation/param-validation.h"
#include "data-stream.hpp"
#include "compat/compiler.h"
#include "plugins/common/muxing/muxing.h"
#include "plugins/common/param-validation/param-validation.h"
#include "data-stream.hpp"
#include "lttng-live.hpp"
#include "lttng-live.hpp"
#define MAX_QUERY_SIZE (256 * 1024)
#define URL_PARAM "url"
#define MAX_QUERY_SIZE (256 * 1024)
#define URL_PARAM "url"
#ifndef BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_H
#define BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_H
#ifndef BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_H
#define BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_H
#include <stdbool.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include "../common/metadata/decoder.hpp"
#include "../common/msg-iter/msg-iter.hpp"
#include "viewer-connection.hpp"
#include "../common/metadata/decoder.hpp"
#include "../common/msg-iter/msg-iter.hpp"
#include "viewer-connection.hpp"
#define LTTNG_VIEWER_ABI_H
#include <stdint.h>
#define LTTNG_VIEWER_ABI_H
#include <stdint.h>
#include "compat/limits.h"
#define LTTNG_VIEWER_PATH_MAX 4096
#include "compat/limits.h"
#define LTTNG_VIEWER_PATH_MAX 4096
* Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
*/
* Copyright 2010-2011 EfficiOS Inc. and Linux Foundation
*/
+#include <glib.h>
+#include <stdbool.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <babeltrace2/babeltrace.h>
+
#define BT_COMP_LOG_SELF_COMP self_comp
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/SRC.CTF.LTTNG-LIVE/META"
#include "logging/comp-logging.h"
#define BT_COMP_LOG_SELF_COMP self_comp
#define BT_LOG_OUTPUT_LEVEL log_level
#define BT_LOG_TAG "PLUGIN/SRC.CTF.LTTNG-LIVE/META"
#include "logging/comp-logging.h"
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <glib.h>
#include "compat/memstream.h"
#include "compat/memstream.h"
-#include <babeltrace2/babeltrace.h>
-#include "metadata.hpp"
-#include "../common/metadata/decoder.hpp"
#include "../common/metadata/ctf-meta-configure-ir-trace.hpp"
#include "../common/metadata/ctf-meta-configure-ir-trace.hpp"
+#include "../common/metadata/decoder.hpp"
+#include "metadata.hpp"
#define TSDL_MAGIC 0x75d11d57
#define TSDL_MAGIC 0x75d11d57
* Copyright 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
* Copyright 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
-#define BT_COMP_LOG_SELF_COMP (viewer_connection->self_comp)
-#define BT_LOG_OUTPUT_LEVEL (viewer_connection->log_level)
-#define BT_LOG_TAG "PLUGIN/SRC.CTF.LTTNG-LIVE/VIEWER"
-#include "logging/comp-logging.h"
-
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
+#include <babeltrace2/babeltrace.h>
+
+#define BT_COMP_LOG_SELF_COMP (viewer_connection->self_comp)
+#define BT_LOG_OUTPUT_LEVEL (viewer_connection->log_level)
+#define BT_LOG_TAG "PLUGIN/SRC.CTF.LTTNG-LIVE/VIEWER"
+#include "logging/comp-logging.h"
-#include "compat/socket.h"
-#include "compat/endian.h"
-#include "compat/compiler.h"
#include "common/common.h"
#include "common/common.h"
-#include <babeltrace2/babeltrace.h>
+#include "compat/compiler.h"
+#include "compat/endian.h"
+#include "compat/socket.h"
+#include "data-stream.hpp"
#include "lttng-live.hpp"
#include "lttng-live.hpp"
-#include "viewer-connection.hpp"
#include "lttng-viewer-abi.hpp"
#include "lttng-viewer-abi.hpp"
-#include "data-stream.hpp"
+#include "viewer-connection.hpp"
#define viewer_handle_send_recv_status(_self_comp, _self_comp_class, _status, _action, _msg_str) \
do { \
#define viewer_handle_send_recv_status(_self_comp, _self_comp_class, _status, _action, _msg_str) \
do { \
#ifndef LTTNG_LIVE_VIEWER_CONNECTION_H
#define LTTNG_LIVE_VIEWER_CONNECTION_H
#ifndef LTTNG_LIVE_VIEWER_CONNECTION_H
#define LTTNG_LIVE_VIEWER_CONNECTION_H
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
-#include "fs-src/fs.hpp"
#include "fs-sink/fs-sink.hpp"
#include "fs-sink/fs-sink.hpp"
+#include "fs-src/fs.hpp"
#include "lttng-live/lttng-live.hpp"
#ifndef BT_BUILT_IN_PLUGINS
#include "lttng-live/lttng-live.hpp"
#ifndef BT_BUILT_IN_PLUGINS
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
#include "utils.hpp"
static void trigger_graph_mip_version(void)
#include "utils.hpp"
static void trigger_graph_mip_version(void)
* Copyright (C) 2020 Philippe Proulx <pproulx@efficios.com>
*/
* Copyright (C) 2020 Philippe Proulx <pproulx@efficios.com>
*/
+#include <iostream>
+
+#include <assert.h>
+#include <glib.h>
#include <babeltrace2/babeltrace.h>
#include <babeltrace2/babeltrace.h>
-#include <glib.h>
-#include <iostream>
#include "common/assert.h"
#include "cpp-common/nlohmann/json.hpp"
#include "common/assert.h"
#include "cpp-common/nlohmann/json.hpp"
#include "../utils/run-in.hpp"
#include "../utils/run-in.hpp"
static void run_trigger(const struct cond_trigger *trigger)
{
static void run_trigger(const struct cond_trigger *trigger)
{
* Copyright (C) 2023 EfficiOS Inc.
*/
* Copyright (C) 2023 EfficiOS Inc.
*/
+#include <cstring>
+
+#include "common/assert.h"
+
#include "utils/run-in.hpp"
#include "utils/run-in.hpp"
-#include "common/assert.h"
-#include <cstring>
static const int NR_TESTS = 2;
static const int NR_TESTS = 2;
#include "common/assert.h"
#include "common/assert.h"
namespace {
struct RunInData final
namespace {
struct RunInData final
#ifndef TESTS_LIB_UTILS_H
#define TESTS_LIB_UTILS_H
#ifndef TESTS_LIB_UTILS_H
#define TESTS_LIB_UTILS_H
-#include <babeltrace2/babeltrace.h>
+#include <babeltrace2/babeltrace.h>
+
using RunInCompClsQueryFunc = std::function<void(bt_self_component_class *)>;
using RunInCompClsInitFunc = std::function<void(bt_self_component *)>;
using RunInMsgIterClsInitFunc = std::function<void(bt_self_message_iterator *)>;
using RunInCompClsQueryFunc = std::function<void(bt_self_component_class *)>;
using RunInCompClsInitFunc = std::function<void(bt_self_component *)>;
using RunInMsgIterClsInitFunc = std::function<void(bt_self_message_iterator *)>;