'bt_list_for_each_prev',
'bt_list_for_each_prev_safe',
]
-IncludeBlocks: Preserve
+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
PointerAlignment: Right
ReferenceAlignment: Left
ReflowComments: false
-SortIncludes: false
+SortIncludes: CaseInsensitive
SortUsingDeclarations: false
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: false
#ifndef BABELTRACE_CPP_COMMON_BT2_CLOCK_CLASS_HPP
#define BABELTRACE_CPP_COMMON_BT2_CLOCK_CLASS_HPP
-#include <type_traits>
#include <cstdint>
#include <string>
+#include <type_traits>
+
#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 "exc.hpp"
+#include "internal/borrowed-obj.hpp"
+#include "internal/shared-obj.hpp"
+#include "internal/utils.hpp"
#include "value.hpp"
namespace bt2 {
#define BABELTRACE_CPP_COMMON_BT2_CLOCK_SNAPSHOT_HPP
#include <cstdint>
+
#include <babeltrace2/babeltrace.h>
-#include "internal/borrowed-obj.hpp"
#include "exc.hpp"
+#include "internal/borrowed-obj.hpp"
namespace bt2 {
#ifndef BABELTRACE_CPP_COMMON_BT2_EXC_HPP
#define BABELTRACE_CPP_COMMON_BT2_EXC_HPP
-#include <string>
#include <stdexcept>
+#include <string>
#include "cpp-common/exc.hpp"
#ifndef BABELTRACE_CPP_COMMON_BT2_FIELD_CLASS_HPP
#define BABELTRACE_CPP_COMMON_BT2_FIELD_CLASS_HPP
-#include <type_traits>
#include <cstdint>
+#include <type_traits>
+
#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 "common-iter.hpp"
#include "exc.hpp"
-#include "integer-range-set.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 {
#define BABELTRACE_CPP_COMMON_BT2_FIELD_PATH_HPP
#include <cstdint>
+
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
+
#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
-#include <type_traits>
#include <cstdint>
+#include <type_traits>
+
#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 "field-class.hpp"
+#include "internal/borrowed-obj.hpp"
+#include "internal/utils.hpp"
namespace bt2 {
#include <cstdint>
#include <type_traits>
+
#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 "integer-range.hpp"
-#include "exc.hpp"
namespace bt2 {
#ifndef BABELTRACE_CPP_COMMON_BT2_INTEGER_RANGE_HPP
#define BABELTRACE_CPP_COMMON_BT2_INTEGER_RANGE_HPP
-#include <type_traits>
#include <cstdint>
+#include <type_traits>
+
#include <babeltrace2/babeltrace.h>
#include "internal/borrowed-obj.hpp"
#ifndef BABELTRACE_CPP_COMMON_BT2_MESSAGE_HPP
#define BABELTRACE_CPP_COMMON_BT2_MESSAGE_HPP
-#include <type_traits>
#include <cstdint>
#include <functional>
+#include <type_traits>
+
#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 "exc.hpp"
+#include "internal/borrowed-obj.hpp"
+#include "internal/shared-obj.hpp"
+#include "internal/utils.hpp"
namespace bt2 {
namespace internal {
#ifndef BABELTRACE_CPP_COMMON_BT2_TRACE_IR_HPP
#define BABELTRACE_CPP_COMMON_BT2_TRACE_IR_HPP
-#include <type_traits>
#include <cstdint>
+#include <type_traits>
+
#include <babeltrace2/babeltrace.h>
-#include "internal/borrowed-obj.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 "value.hpp"
+#include "internal/borrowed-obj.hpp"
#include "internal/utils.hpp"
+#include "value.hpp"
namespace bt2 {
#ifndef BABELTRACE_CPP_COMMON_BT2_VALUE_HPP
#define BABELTRACE_CPP_COMMON_BT2_VALUE_HPP
-#include <type_traits>
#include <cstdint>
#include <functional>
#include <iterator>
+#include <type_traits>
+
#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 "exc.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 {
#define BABELTRACE_CPP_COMMON_CFG_ERROR_REPORTING_THROW_HPP
#include <babeltrace2/babeltrace.h>
+
#include "cfg-error-reporting.hpp"
/*
#define BABELTRACE_CPP_COMMON_CFG_ERROR_REPORTING_HPP
#include <babeltrace2/babeltrace.h>
+
#include "cfg-logging.hpp"
/*
#define BABELTRACE_CPP_COMMON_CFG_LOGGING_ERROR_REPORTING_THROW_HPP
#include <babeltrace2/babeltrace.h>
+
#include "cfg-logging-error-reporting.hpp"
/*
#define BABELTRACE_CPP_COMMON_CFG_LOGGING_ERROR_REPORTING_HPP
#include <babeltrace2/babeltrace.h>
-#include "cfg-logging.hpp"
+
#include "cfg-error-reporting.hpp"
+#include "cfg-logging.hpp"
/*
* Logs with the error level using the configuration `_log_cfg` and
#endif
#include <babeltrace2/babeltrace.h>
+
#include "logging/log.h"
#define _BT_CLOG_OBJ_FMT_PREFIX "[%s] "
#define BABELTRACE_CPP_COMMON_EXC_HPP
#include <exception>
-#include <string>
#include <new>
#include <stdexcept>
+#include <string>
namespace bt2_common {
#ifndef BABELTRACE_CPP_COMMON_GLIB_UP_HPP
#define BABELTRACE_CPP_COMMON_GLIB_UP_HPP
-#include <glib.h>
#include <memory>
+#include <glib.h>
+
namespace bt2_common {
namespace internal {
#define BABELTRACE_CPP_COMMON_LOG_CFG_HPP
#include <babeltrace2/babeltrace.h>
+
#include "common/assert.h"
namespace bt2_common {
#define BABELTRACE_CPP_COMMON_MAKE_UNIQUE_HPP
#include <memory>
-#include <utility>
#include <type_traits>
+#include <utility>
namespace bt2_common {
* SPDX-License-Identifier: MIT
*/
-#include "uuid.hpp"
#include "uuid-view.hpp"
+#include "uuid.hpp"
namespace bt2_common {
#ifndef BABELTRACE_CPP_COMMON_UUID_VIEW_HPP
#define BABELTRACE_CPP_COMMON_UUID_VIEW_HPP
+#include <algorithm>
#include <array>
#include <cstdint>
#include <string>
-#include <algorithm>
#include "common/assert.h"
#include "common/uuid.h"
#include "common/assert.h"
#include "common/uuid.h"
+
#include "uuid-view.hpp"
namespace bt2_common {
#define SRC_CPP_COMMON_VECTOR_HPP
#include <vector>
+
#include "common/assert.h"
namespace bt2_common {
* 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"
-#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 <string.h>
-#include "compat/bitfield.h"
#include "common/common.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/align.h"
-#include <glib.h>
+#include "compat/bitfield.h"
-#include "bfcr.hpp"
#include "../metadata/ctf-meta.hpp"
+#include "bfcr.hpp"
#define DIV8(_x) ((_x) >> 3)
#define BYTES_TO_BITS(_x) ((_x) *8)
#ifndef CTF_BFCR_H
#define CTF_BFCR_H
-#include <stdint.h>
#include <stddef.h>
+#include <stdint.h>
#include <stdio.h>
+
#include <babeltrace2/babeltrace.h>
+
#include "common/macros.h"
#include "../metadata/ctf-meta.hpp"
#ifndef _CTF_AST_H
#define _CTF_AST_H
+#include <glib.h>
#include <stdint.h>
#include <stdio.h>
-#include <glib.h>
-#include "common/list.h"
+
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
+
#include "common/assert.h"
+#include "common/list.h"
+#include "common/macros.h"
-#include "decoder.hpp"
#include "ctf-meta.hpp"
+#include "decoder.hpp"
// 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>
*/
+#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"
+#include "logging.hpp"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.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 "logging.hpp"
using field_class_stack_t = GPtrArray;
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <glib.h>
+#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
-#include <inttypes.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
* Copyright 2020 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <glib.h>
+#include <inttypes.h>
#include <stdint.h>
#include <string.h>
-#include <inttypes.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
* 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"
+#include "logging.hpp"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.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 "logging.hpp"
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>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
-#include "compat/glib.h"
#include <glib.h>
+#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
-#include <inttypes.h>
+
+#include <babeltrace2/babeltrace.h>
+
#include "common/assert.h"
+#include "common/macros.h"
+#include "compat/glib.h"
#include "ctf-meta-visitors.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <glib.h>
+#include <inttypes.h>
#include <stdint.h>
#include <string.h>
-#include <inttypes.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <glib.h>
+#include <inttypes.h>
#include <stdint.h>
#include <string.h>
-#include <inttypes.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <glib.h>
+#include <inttypes.h>
#include <stdint.h>
#include <string.h>
-#include <inttypes.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-#include "common/assert.h"
#include <glib.h>
+#include <inttypes.h>
#include <stdint.h>
#include <string.h>
-#include <inttypes.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/assert.h"
+#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
* 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"
+#include "logging.hpp"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.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 "logging.hpp"
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>
+
#include "common/macros.h"
#include "ctf-meta.hpp"
* 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"
+#include "logging.hpp"
#include "logging/comp-logging.h"
-#include <babeltrace2/babeltrace.h>
-#include "common/macros.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 "logging.hpp"
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
-#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 <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,
* 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"
+#include "logging.hpp"
#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 <babeltrace2/babeltrace.h>
-#include <glib.h>
-#include <string.h>
#include "ast.hpp"
+#include "decoder-packetized-file-stream-to-buf.hpp"
#include "decoder.hpp"
#include "scanner.hpp"
-#include "logging.hpp"
#define TSDL_MAGIC 0x75d11d57
* 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"
+#include "logging.hpp"
#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 <babeltrace2/babeltrace.h>
-#include <glib.h>
-#include <string.h>
#include "ast.hpp"
+#include "decoder-packetized-file-stream-to-buf.hpp"
#include "decoder.hpp"
-#include "scanner.hpp"
-#include "logging.hpp"
#include "parser-wrap.hpp"
-#include "decoder-packetized-file-stream-to-buf.hpp"
+#include "scanner.hpp"
#define TSDL_MAGIC 0x75d11d57
#ifndef _METADATA_DECODER_H
#define _METADATA_DECODER_H
-#include <stdint.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdio.h>
#include <babeltrace2/babeltrace.h>
* 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"
-#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/parser-wrap.hpp"
+#include "plugins/ctf/common/metadata/scanner.hpp"
#define YY_FATAL_ERROR(_msg) BT_LOGF_STR(_msg)
#define CTF_METADATA_LOGGING_H
#include <babeltrace2/babeltrace.h>
+
#include "logging/log.h"
/*
* Common Trace Format Object Stack.
*/
+#include <stdlib.h>
+
#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/align.h"
+
+#include "objstack.hpp"
#define OBJSTACK_ALIGN 8 /* Object stack alignment */
#define OBJSTACK_INIT_LEN 128
* 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"
-#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 "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/parser-wrap.hpp"
/*
#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"
}
%code provides {
#define _CTF_SCANNER_H
#include <stdio.h>
+
#include "common/macros.h"
+
#include "ast.hpp"
#ifndef YY_TYPEDEF_YY_SCANNER_T
* 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"
+#include "logging.hpp"
#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 <glib.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <string>
#include "common/common.h"
#include "common/uuid.h"
#include "compat/endian.h"
-#include <babeltrace2/babeltrace.h>
-#include "logging.hpp"
-#include "scanner.hpp"
#include "ast.hpp"
-#include "decoder.hpp"
-#include "ctf-meta.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))
* 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"
+#include "logging.hpp"
#include "logging/comp-logging.h"
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
#include "common/assert.h"
-#include <glib.h>
-#include <inttypes.h>
-#include <errno.h>
-#include "common/macros.h"
#include "common/list.h"
-#include "scanner.hpp"
+#include "common/macros.h"
+
#include "ast.hpp"
-#include "logging.hpp"
+#include "scanner.hpp"
static int ctf_visitor_unary_expression(int depth, struct ctf_node *node,
struct meta_log_config *log_cfg)
* 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"
+#include "logging.hpp"
#include "logging/comp-logging.h"
-#include <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
#include "common/assert.h"
-#include <glib.h>
-#include <inttypes.h>
-#include <errno.h>
#include "common/list.h"
-#include "scanner.hpp"
+
#include "ast.hpp"
-#include "logging.hpp"
+#include "scanner.hpp"
#define _bt_list_first_entry(ptr, type, member) bt_list_entry((ptr)->next, type, member)
* 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"
-#include <stdint.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stddef.h>
-#include <stdbool.h>
#include "common/assert.h"
-#include <string.h>
-#include <babeltrace2/babeltrace.h>
#include "common/common.h"
-#include <glib.h>
-#include <stdlib.h>
-#include "msg-iter.hpp"
#include "../bfcr/bfcr.hpp"
+#include "msg-iter.hpp"
struct ctf_msg_iter;
#define CTF_MSG_ITER_H
#include <stdbool.h>
+#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
-#include <stddef.h>
+
#include <babeltrace2/babeltrace.h>
+
#include "common/macros.h"
#include "../metadata/ctf-meta.hpp"
#define CTF_BTR_PRINT_H
#include <stdio.h>
+
#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
-#include <babeltrace2/babeltrace.h>
-#include "common/common.h"
-#include "common/assert.h"
-#include "common/uuid.h"
+#include <ctype.h>
#include <glib.h>
+#include <stdbool.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
{
* 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"
-#include <babeltrace2/babeltrace.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include <glib.h>
#include "common/assert.h"
-#include "ctfser/ctfser.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-trace.hpp"
+#include "fs-sink.hpp"
#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
-#include "common/macros.h"
-#include <babeltrace2/babeltrace.h>
-#include "ctfser/ctfser.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;
* 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"
-#include <babeltrace2/babeltrace.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include <glib.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-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:
#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 <babeltrace2/babeltrace.h>
+
+#include "common/macros.h"
+#include "ctfser/ctfser.h"
+
#include "fs-sink-ctf-meta.hpp"
struct fs_sink_comp;
* 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"
-#include <babeltrace2/babeltrace.h>
-#include <stdio.h>
-#include <stdbool.h>
-#include <glib.h>
#include "common/assert.h"
#include "ctfser/ctfser.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 "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-trace-ir-to-ctf-ir.hpp"
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
-#include "common/macros.h"
-#include <babeltrace2/babeltrace.h>
-#include <stdbool.h>
#include <glib.h>
+#include <stdbool.h>
+
+#include <babeltrace2/babeltrace.h>
+
+#include "common/macros.h"
struct fs_sink_comp
{
* 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 <glib.h>
#include <stdbool.h>
+#include <stdio.h>
#include <string.h>
-#include <glib.h>
+
+#include <babeltrace2/babeltrace.h>
+
#include "common/assert.h"
+#include "common/macros.h"
#include "compat/endian.h"
#include "fs-sink-ctf-meta.hpp"
+#include "translate-ctf-ir-to-tsdl.hpp"
struct ctx
{
#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);
* 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"
-#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 <stdio.h>
-#include <stdbool.h>
-#include <string.h>
-#include <string>
-#include <glib.h>
+#include "common/common.h"
+#include "common/macros.h"
-#include "fs-sink.hpp"
#include "fs-sink-ctf-meta.hpp"
+#include "fs-sink.hpp"
+#include "translate-trace-ir-to-ctf-ir.hpp"
struct field_path_elem
{
#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 "fs-sink.hpp"
+#include "common/macros.h"
+
#include "fs-sink-ctf-meta.hpp"
+#include "fs-sink.hpp"
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
*/
+#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"
-#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 "file.hpp"
-#include "metadata.hpp"
+#include "compat/endian.h"
+#include "compat/mman.h"
+
#include "../common/msg-iter/msg-iter.hpp"
-#include "common/assert.h"
#include "data-stream-file.hpp"
-#include <string.h>
+#include "file.hpp"
+#include "metadata.hpp"
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
-#include <stdio.h>
-#include <stdbool.h>
#include <glib.h>
-#include "common/macros.h"
+#include <stdbool.h>
+#include <stdio.h>
+
#include <babeltrace2/babeltrace.h>
+#include "common/macros.h"
+
#include "../common/msg-iter/msg-iter.hpp"
#include "lttng-index.hpp"
* 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"
-#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)
#ifndef CTF_FS_FILE_H
#define CTF_FS_FILE_H
-#include <stdio.h>
#include <glib.h>
+#include <stdio.h>
+
#include "common/macros.h"
+
#include "fs.hpp"
void ctf_fs_file_destroy(struct ctf_fs_file *file);
* 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"
+#include "common/assert.h"
#include "common/common.h"
-#include <babeltrace2/babeltrace.h>
#include "common/uuid.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/decoder.hpp"
#include "../common/msg-iter/msg-iter.hpp"
+#include "data-stream-file.hpp"
+#include "file.hpp"
+#include "fs.hpp"
+#include "metadata.hpp"
#include "query.hpp"
-#include "plugins/common/param-validation/param-validation.h"
struct tracer_info
{
#define BABELTRACE_PLUGIN_CTF_FS_H
#include <stdbool.h>
-#include "common/macros.h"
+
#include <babeltrace2/babeltrace.h>
+
+#include "common/macros.h"
+
+#include "../common/metadata/decoder.hpp"
#include "data-stream-file.hpp"
#include "metadata.hpp"
-#include "../common/metadata/decoder.hpp"
extern bool ctf_fs_debug;
#define LTTNG_INDEX_H
#include <stddef.h>
+
#include "compat/limits.h"
#define CTF_INDEX_MAGIC 0xC1F1DCC1
* 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"
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
#include "common/assert.h"
-#include <glib.h>
#include "common/uuid.h"
#include "compat/memstream.h"
-#include <babeltrace2/babeltrace.h>
-#include "fs.hpp"
+#include "../common/metadata/decoder.hpp"
#include "file.hpp"
+#include "fs.hpp"
#include "metadata.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)
#ifndef CTF_FS_METADATA_H
#define CTF_FS_METADATA_H
+#include <glib.h>
#include <stdbool.h>
#include <stdio.h>
-#include <glib.h>
-#include "common/macros.h"
+
#include <babeltrace2/babeltrace.h>
+#include "common/macros.h"
+
#define CTF_FS_METADATA_FILENAME "metadata"
struct ctf_fs_trace;
* 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"
+#include "logging/comp-logging.h"
#include "logging/log.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 "metadata.hpp"
-#include "../common/metadata/decoder.hpp"
#include "common/common.h"
#include "common/macros.h"
-#include <babeltrace2/babeltrace.h>
+
+#include "../common/metadata/decoder.hpp"
#include "fs.hpp"
-#include "logging/comp-logging.h"
+#include "metadata.hpp"
+#include "query.hpp"
#define METADATA_TEXT_SIG "/* CTF 1.8"
#ifndef BABELTRACE_PLUGIN_CTF_FS_QUERY_H
#define BABELTRACE_PLUGIN_CTF_FS_QUERY_H
-#include "common/macros.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);
* 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 <glib.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
-#include <glib.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/msg-iter/msg-iter.hpp"
#include "data-stream.hpp"
#define STREAM_NAME_PREFIX "stream-"
#ifndef LTTNG_LIVE_DATA_STREAM_H
#define LTTNG_LIVE_DATA_STREAM_H
-#include <stdio.h>
-#include <stdint.h>
-
#include <glib.h>
+#include <stdint.h>
+#include <stdio.h>
#include "../common/msg-iter/msg-iter.hpp"
#include "lttng-live.hpp"
* 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 <glib.h>
#include <inttypes.h>
#include <stdbool.h>
#include <unistd.h>
-#include <glib.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 <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 "metadata.hpp"
#include "lttng-live.hpp"
+#include "metadata.hpp"
#define MAX_QUERY_SIZE (256 * 1024)
#define URL_PARAM "url"
#ifndef BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_H
#define BABELTRACE_PLUGIN_CTF_LTTNG_LIVE_H
+#include <glib.h>
#include <stdbool.h>
#include <stdint.h>
-#include <glib.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"
#define LTTNG_VIEWER_ABI_H
#include <stdint.h>
+
#include "compat/limits.h"
#define LTTNG_VIEWER_PATH_MAX 4096
* 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"
-#include <stdio.h>
-#include <stdint.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <glib.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/decoder.hpp"
+#include "metadata.hpp"
#define TSDL_MAGIC 0x75d11d57
* 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 <fcntl.h>
+#include <glib.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
-#include <glib.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 <babeltrace2/babeltrace.h>
+#include "compat/compiler.h"
+#include "compat/endian.h"
+#include "compat/socket.h"
+#include "data-stream.hpp"
#include "lttng-live.hpp"
-#include "viewer-connection.hpp"
#include "lttng-viewer-abi.hpp"
-#include "data-stream.hpp"
#include "metadata.hpp"
+#include "viewer-connection.hpp"
#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
+#include <glib.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
-#include <glib.h>
-
#include <babeltrace2/babeltrace.h>
#include "common/macros.h"
#include <babeltrace2/babeltrace.h>
-#include "fs-src/fs.hpp"
#include "fs-sink/fs-sink.hpp"
+#include "fs-src/fs.hpp"
#include "lttng-live/lttng-live.hpp"
#ifndef BT_BUILT_IN_PLUGINS
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
+
#include "utils.hpp"
static void trigger_graph_mip_version(void)
* Copyright (C) 2020 Philippe Proulx <pproulx@efficios.com>
*/
-#include <stdlib.h>
+#include <iostream>
+
+#include <assert.h>
+#include <glib.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-#include <assert.h>
+
#include <babeltrace2/babeltrace.h>
-#include <glib.h>
-#include <iostream>
#include "common/assert.h"
#include "cpp-common/nlohmann/json.hpp"
-#include "utils.hpp"
+
#include "../utils/run-in.hpp"
+#include "utils.hpp"
static void run_trigger(const struct cond_trigger *trigger)
{
* Copyright (C) 2023 EfficiOS Inc.
*/
+#include <cstring>
+
+#include "common/assert.h"
+
#include "utils/run-in.hpp"
+
#include "tap/tap.h"
-#include "common/assert.h"
-#include <cstring>
static const int NR_TESTS = 2;
#include <utility>
-#include "run-in.hpp"
#include "common/assert.h"
+#include "run-in.hpp"
+
namespace {
struct RunInData final
#ifndef TESTS_LIB_UTILS_H
#define TESTS_LIB_UTILS_H
-#include <babeltrace2/babeltrace.h>
#include <functional>
+#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 *)>;