X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fplugins%2Flttng-utils%2Fdebug-info%2Ftrace-ir-metadata-copy.h;h=8d4bd4941b4c5bdadb11a74bb1bb615b7af9ff83;hp=f9f806441afd82ecfcedbb7f0081af6f6b55c130;hb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;hpb=91d8147391efdc4d42cc4e1c171a65c0372a008f diff --git a/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h b/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h index f9f80644..8d4bd494 100644 --- a/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h +++ b/src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h @@ -1,57 +1,48 @@ -#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H -#define BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H - /* - * Babeltrace - Trace IR metadata object copy + * SPDX-License-Identifier: MIT * * Copyright (c) 2015 EfficiOS Inc. and Linux Foundation * Copyright (c) 2018 Philippe Proulx * Copyright (c) 2019 Francis Deslauriers * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. + * Babeltrace - Trace IR metadata object copy */ +#ifndef BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H +#define BABELTRACE_PLUGIN_DEBUG_INFO_TRACE_METADATA_COPY_H + #include #include "common/macros.h" #include "trace-ir-mapping.h" BT_HIDDEN -int copy_trace_class_content(const bt_trace_class *in_trace_class, - bt_trace_class *out_trace_class); +enum debug_info_trace_ir_mapping_status copy_trace_class_content( + struct trace_ir_maps *trace_ir_maps, + const bt_trace_class *in_trace_class, + bt_trace_class *out_trace_class, + bt_logging_level log_level, + bt_self_component *self_comp); BT_HIDDEN -int copy_stream_class_content(struct trace_ir_maps *trace_ir_maps, +enum debug_info_trace_ir_mapping_status copy_stream_class_content( + struct trace_ir_maps *trace_ir_maps, const bt_stream_class *in_stream_class, bt_stream_class *out_stream_class); BT_HIDDEN -int copy_event_class_content(struct trace_ir_maps *trace_ir_maps, +enum debug_info_trace_ir_mapping_status copy_event_class_content( + struct trace_ir_maps *trace_ir_maps, const bt_event_class *in_event_class, bt_event_class *out_event_class); BT_HIDDEN -int copy_field_class_content(struct trace_ir_metadata_maps *trace_ir_metadata_maps, +enum debug_info_trace_ir_mapping_status copy_field_class_content( + struct trace_ir_metadata_maps *trace_ir_metadata_maps, const bt_field_class *in_field_class, bt_field_class *out_field_class); BT_HIDDEN -int copy_event_common_context_field_class_content( +enum debug_info_trace_ir_mapping_status copy_event_common_context_field_class_content( struct trace_ir_metadata_maps *trace_ir_metadata_maps, const char *debug_info_field_class_name, const bt_field_class *in_field_class,