#ifndef _BABELTRACE_COMMON_UUID_H
#define _BABELTRACE_COMMON_UUID_H
+#include <inttypes.h>
#include <stdint.h>
#include "common/macros.h"
#define BABELTRACE_CPP_COMMON_BT2_COMMON_ITER_HPP
#include <iterator>
-#include <type_traits>
#include "cpp-common/optional.hpp"
#ifndef BABELTRACE_CPP_COMMON_BT2_EXC_HPP
#define BABELTRACE_CPP_COMMON_BT2_EXC_HPP
-#include <stdexcept>
-#include <string>
-
#include "cpp-common/exc.hpp"
namespace bt2 {
#ifndef BABELTRACE_CPP_COMMON_BT2_INTERNAL_UTILS_HPP
#define BABELTRACE_CPP_COMMON_BT2_INTERNAL_UTILS_HPP
-#include <type_traits>
-
#include "../exc.hpp"
namespace bt2 {
#define BABELTRACE_CPP_COMMON_BT2_MESSAGE_HPP
#include <cstdint>
-#include <functional>
#include <type_traits>
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
-#include "common/common.h"
#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"
#include "cpp-common/string_view.hpp"
#include "clock-class.hpp"
-#include "clock-snapshot.hpp"
#include "field-class.hpp"
#include "field.hpp"
#include "internal/borrowed-obj.hpp"
#include <cstdint>
#include <functional>
-#include <iterator>
#include <type_traits>
#include <babeltrace2/babeltrace.h>
#define BT_APPEND_CAUSE_AND_RETHROW_EX(_log_cfg, _fmt, ...) \
do { \
BT_APPEND_CAUSE_EX((_log_cfg), _fmt, ##__VA_ARGS__); \
- throw;
-}
-while (false)
+ throw; \
+ } while (false)
#define BT_APPEND_CAUSE_AND_RETHROW(_fmt, ...) \
BT_APPEND_CAUSE_AND_RETHROW_EX((BT_CLOG_CFG), _fmt, ##__VA_ARGS__)
#include <babeltrace2/babeltrace.h>
-#include "cfg-logging.hpp"
-
/*
* Appends a cause to the error of the current thread using the logging
* configuration `_log_cfg`.
#define BABELTRACE_CPP_COMMON_READ_FIXED_LEN_INT_HPP
#include <cstdint>
-#include <cstdlib>
#include <cstring>
#include <type_traits>
#define BABELTRACE_CPP_COMMON_UUID_VIEW_HPP
#include <algorithm>
-#include <array>
#include <cstdint>
#include <string>
#include <algorithm>
#include <array>
-#include <cstdint>
#include <string>
#include "common/assert.h"
#include <inttypes.h>
#include <stddef.h>
#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <babeltrace2/babeltrace.h>
int64_t index;
};
-struct bt_bfcr;
-
/* Visit stack */
struct stack
{
#include <stddef.h>
#include <stdint.h>
-#include <stdio.h>
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-
-#include "../metadata/ctf-meta.hpp"
-
/**
* @file bfcr.h
*
BT_BFCR_STATUS_OK = 0,
};
-/** Field class reader. */
-struct bt_bfcr;
-
typedef enum bt_bfcr_status (*bt_bfcr_unsigned_int_cb_func)(uint64_t, struct ctf_field_class *,
void *);
#include "common/assert.h"
#include "common/list.h"
-#include "common/macros.h"
#include "ctf-meta.hpp"
#include "decoder.hpp"
#include <babeltrace2/babeltrace.h>
+#include "common/assert.h"
+
#include "ctf-meta-configure-ir-trace.hpp"
+#include "plugins/ctf/common/metadata/ctf-meta.hpp"
int ctf_trace_class_configure_ir_trace(struct ctf_trace_class *tc, bt_trace *ir_trace)
{
#ifndef _CTF_META_CONFIGURE_IR_TRACE_H
#define _CTF_META_CONFIGURE_IR_TRACE_H
-#include "common/macros.h"
-
-#include "ctf-meta.hpp"
-
int ctf_trace_class_configure_ir_trace(struct ctf_trace_class *tc, bt_trace *ir_trace);
#endif /* _CTF_META_CONFIGURE_IR_TRACE_H */
#include <glib.h>
#include <inttypes.h>
-#include <limits.h>
-#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "common/assert.h"
#include "common/common.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>
#include "common/assert.h"
-#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
* Copyright 2020 Philippe Proulx <pproulx@efficios.com>
*/
-#include <glib.h>
-#include <inttypes.h>
#include <stdint.h>
-#include <string.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 "common/assert.h"
-#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
* Copyright 2018 Philippe Proulx <pproulx@efficios.com>
*/
+#include <assert.h>
#include <glib.h>
-#include <inttypes.h>
#include <stdint.h>
-#include <string.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 <glib.h>
-#include <inttypes.h>
#include <stdint.h>
#include <string.h>
-#include <babeltrace2/babeltrace.h>
-
-#include "common/assert.h"
-#include "common/macros.h"
-
#include "ctf-meta-visitors.hpp"
static int set_int_field_class_meaning_by_name(struct ctf_field_class *fc, const char *field_name,
* Copyright 2019 Philippe Proulx <pproulx@efficios.com>
*/
-#include <glib.h>
-#include <inttypes.h>
#include <stdint.h>
-#include <string.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>
-
-#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>
-
#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 "common/assert.h"
-#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-
#include "ctf-meta.hpp"
struct meta_log_config;
* 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/comp-logging.h"
#include "common/assert.h"
-#include "common/macros.h"
#include "ctf-meta-visitors.hpp"
*/
#include <glib.h>
-#include <inttypes.h>
#include <stdint.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "logging.hpp"
#include "logging/comp-logging.h"
-#include "common/assert.h"
#include "common/uuid.h"
#include "compat/memstream.h"
-#include "ast.hpp"
#include "decoder-packetized-file-stream-to-buf.hpp"
#include "decoder.hpp"
-#include "scanner.hpp"
#define TSDL_MAGIC 0x75d11d57
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
#include "common/uuid.h"
-struct ctf_trace_class;
-
-/* A CTF metadata decoder object */
-struct ctf_metadata_decoder;
-
/* CTF metadata decoder status */
enum ctf_metadata_decoder_status
{
#include <babeltrace2/babeltrace.h>
+#include "logging/comp-logging.h"
#include "logging/log.h"
/*
#include "common/align.h"
#include "common/list.h"
-#include "common/macros.h"
#include "objstack.hpp"
#ifndef _OBJSTACK_H
#define _OBJSTACK_H
-#include "common/macros.h"
-
-struct objstack;
-
struct objstack *objstack_create(void);
void objstack_destroy(struct objstack *objstack);
#include <stdio.h>
-#include "common/macros.h"
-
#include "ast.hpp"
#ifndef YY_TYPEDEF_YY_SCANNER_T
#include <string>
-#include <ctype.h>
#include <errno.h>
#include <glib.h>
#include <inttypes.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <babeltrace2/babeltrace.h>
#include "ctf-meta-visitors.hpp"
#include "ctf-meta.hpp"
#include "decoder.hpp"
-#include "scanner.hpp"
/* Bit value (left shift) */
#define _BV(_val) (1 << (_val))
*/
#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 "common/assert.h"
#include "common/list.h"
-#include "common/macros.h"
#include "ast.hpp"
-#include "scanner.hpp"
static int ctf_visitor_unary_expression(int depth, struct ctf_node *node,
struct meta_log_config *log_cfg)
*/
#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 "common/assert.h"
#include "common/list.h"
#include "ast.hpp"
-#include "scanner.hpp"
#define _bt_list_first_entry(ptr, type, member) bt_list_entry((ptr)->next, type, member)
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
#include <babeltrace2/babeltrace.h>
#include "../bfcr/bfcr.hpp"
#include "msg-iter.hpp"
-
-struct ctf_msg_iter;
+#include "plugins/ctf/common/metadata/ctf-meta.hpp"
/* A visit stack entry */
struct stack_entry
size_t index;
};
-struct ctf_msg_iter;
-
/* Visit stack */
struct stack
{
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-
-#include "../metadata/ctf-meta.hpp"
+#include "common/common.h"
/**
* @file ctf-msg-iter.h
bt_stream *(*borrow_stream)(bt_stream_class *stream_class, int64_t stream_id, void *data);
};
-/** CTF message iterator. */
-struct ctf_msg_iter;
-
/**
* Creates a CTF message iterator.
*
#include <stdio.h>
-#include "common/macros.h"
-
#define PERR(fmt, ...) \
do { \
if (PRINT_ERR_STREAM) { \
#ifndef BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_CTF_META_H
-#include <ctype.h>
#include <glib.h>
#include <stdint.h>
#include <string.h>
#include "compat/endian.h"
#include "ctfser/ctfser.h"
+#include "fs-sink-ctf-meta.hpp"
#include "fs-sink-stream.hpp"
#include "fs-sink-trace.hpp"
#include "fs-sink.hpp"
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
#include "ctfser/ctfser.h"
-#include "fs-sink-ctf-meta.hpp"
-
-struct fs_sink_trace;
-
struct fs_sink_stream
{
bt_logging_level log_level;
#include "logging/comp-logging.h"
#include "common/assert.h"
-#include "ctfser/ctfser.h"
+#include "fs-sink-ctf-meta.hpp"
#include "fs-sink-stream.hpp"
#include "fs-sink-trace.hpp"
#include "fs-sink.hpp"
#define BABELTRACE_PLUGIN_CTF_FS_SINK_FS_SINK_TRACE_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;
-
struct fs_sink_trace
{
bt_logging_level log_level;
#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";
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-
struct fs_sink_comp
{
bt_logging_level log_level;
#include <glib.h>
#include <stdio.h>
-#include <string.h>
#include <babeltrace2/babeltrace.h>
#include "common/assert.h"
-#include "common/macros.h"
#include "compat/endian.h"
#include "fs-sink-ctf-meta.hpp"
#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);
#endif /* BABELTRACE_PLUGIN_CTF_FS_SINK_TRANSLATE_CTF_IR_TO_TSDL_H */
#include "common/assert.h"
#include "common/common.h"
-#include "common/macros.h"
#include "fs-sink-ctf-meta.hpp"
#include "fs-sink.hpp"
#include <babeltrace2/babeltrace.h>
-#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,
const bt_event_class *ir_ec,
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <babeltrace2/babeltrace.h>
#include "logging/comp-logging.h"
#include "common/assert.h"
-#include "common/common.h"
#include "compat/endian.h"
#include "compat/mman.h"
#include "../common/msg-iter/msg-iter.hpp"
#include "data-stream-file.hpp"
#include "file.hpp"
-#include "metadata.hpp"
+#include "fs.hpp"
+#include "lttng-index.hpp"
+#include "plugins/ctf/common/metadata/ctf-meta.hpp"
static inline size_t remaining_mmap_bytes(struct ctf_fs_ds_file *ds_file)
{
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-
#include "../common/msg-iter/msg-iter.hpp"
-#include "lttng-index.hpp"
-
-struct ctf_fs_component;
-struct ctf_fs_file;
-struct ctf_fs_trace;
-struct ctf_fs_ds_file;
-struct ctf_fs_ds_file_group;
-struct ctf_fs_ds_group_medops_data;
struct ctf_fs_ds_file_info
{
int64_t begin_ns;
};
-struct ctf_fs_metadata;
-
struct ctf_fs_ds_file
{
bt_logging_level log_level;
#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)
#include "logging/comp-logging.h"
#include "file.hpp"
+#include "fs.hpp"
void ctf_fs_file_destroy(struct ctf_fs_file *file)
{
#ifndef CTF_FS_FILE_H
#define CTF_FS_FILE_H
-#include <glib.h>
-#include <stdio.h>
-
-#include "common/macros.h"
-
-#include "fs.hpp"
+#include <babeltrace2/babeltrace.h>
void ctf_fs_file_destroy(struct ctf_fs_file *file);
#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 "plugins/ctf/common/metadata/ctf-meta.hpp"
#include "query.hpp"
struct tracer_info
#ifndef BABELTRACE_PLUGIN_CTF_FS_H
#define BABELTRACE_PLUGIN_CTF_FS_H
-#include <babeltrace2/babeltrace.h>
+#include <glib.h>
-#include "common/macros.h"
+#include <babeltrace2/babeltrace.h>
-#include "../common/metadata/decoder.hpp"
-#include "data-stream-file.hpp"
#include "metadata.hpp"
extern bool ctf_fs_debug;
#ifndef LTTNG_INDEX_H
#define LTTNG_INDEX_H
-#include <stddef.h>
-
#include "compat/limits.h"
#define CTF_INDEX_MAGIC 0xC1F1DCC1
*/
#include <glib.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "logging/comp-logging.h"
#include "common/assert.h"
-#include "common/uuid.h"
-#include "compat/memstream.h"
#include "../common/metadata/decoder.hpp"
#include "file.hpp"
#ifndef CTF_FS_METADATA_H
#define CTF_FS_METADATA_H
-#include <glib.h>
#include <stdio.h>
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
-
#define CTF_FS_METADATA_FILENAME "metadata"
-struct ctf_fs_trace;
-struct ctf_fs_metadata;
-
struct ctf_fs_metadata_config
{
bool force_clock_class_origin_unix_epoch;
* Babeltrace CTF file system Reader Component queries
*/
-#include <fcntl.h>
#include <glib.h>
#include <glib/gstdio.h>
-#include <sys/stat.h>
#include <sys/types.h>
#include <babeltrace2/babeltrace.h>
#include "logging/log.h"
#include "common/assert.h"
-#include "common/common.h"
-#include "common/macros.h"
#include "../common/metadata/decoder.hpp"
#include "fs.hpp"
#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);
#include <glib.h>
#include <inttypes.h>
#include <stdio.h>
-#include <stdlib.h>
#include <babeltrace2/babeltrace.h>
+#include "plugins/ctf/common/metadata/decoder.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"
#ifndef LTTNG_LIVE_DATA_STREAM_H
#define LTTNG_LIVE_DATA_STREAM_H
-#include <glib.h>
#include <stdint.h>
-#include <stdio.h>
-#include "../common/msg-iter/msg-iter.hpp"
#include "lttng-live.hpp"
enum lttng_live_iterator_status lttng_live_lazy_msg_init(struct lttng_live_session *session,
#include "logging/comp-logging.h"
#include "common/assert.h"
-#include "compat/compiler.h"
#include "plugins/common/muxing/muxing.h"
#include "plugins/common/param-validation/param-validation.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"
-struct lttng_live_component;
-struct lttng_live_session;
-struct lttng_live_msg_iter;
-
enum lttng_live_stream_state
{
/* This stream won't have data until some known time in the future. */
#define LTTNG_LIVE_METADATA_H
#include <stdint.h>
-#include <stdio.h>
#include "lttng-live.hpp"
* Copyright 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
-#include <fcntl.h>
#include <glib.h>
#include <stdint.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <unistd.h>
#include <babeltrace2/babeltrace.h>
#include "logging/comp-logging.h"
#include "common/common.h"
-#include "compat/compiler.h"
#include "compat/endian.h"
#include "compat/socket.h"
#include <glib.h>
#include <stdint.h>
-#include <stdio.h>
#include <babeltrace2/babeltrace.h>
-#include "common/macros.h"
#include "compat/socket.h"
#define LTTNG_DEFAULT_NETWORK_VIEWER_PORT 5344
LTTNG_LIVE_GET_ONE_METADATA_STATUS_CLOSED = -3,
};
-struct lttng_live_component;
-
struct live_viewer_connection
{
bt_logging_level log_level;
#include <iostream>
-#include <assert.h>
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>