Visibility hidden by default
[babeltrace.git] / src / plugins / lttng-utils / debug-info / trace-ir-mapping.c
index 439407a5778aec441325c48010adbc2e9b8463e7..7ddf9f14400a8c6b883202453c11c8daa96a197e 100644 (file)
@@ -1,28 +1,12 @@
 /*
- * Babeltrace - Mapping of IR metadata and data object between input and output
- *             trace
+ * SPDX-License-Identifier: MIT
  *
  * Copyright (c) 2015 EfficiOS Inc. and Linux Foundation
  * Copyright (c) 2018 Philippe Proulx <pproulx@efficios.com>
  * Copyright (c) 2019 Francis Deslauriers <francis.deslauriers@efficios.com>
  *
- * 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 - Mapping of IR metadata and data object between input and output
+ *             trace
  */
 
 #define BT_COMP_LOG_SELF_COMP (ir_maps->self_comp)
 #define BT_LOG_TAG "PLUGIN/FLT.LTTNG-UTILS.DEBUG-INFO/TRACE-IR-MAPPING"
 #include "logging/comp-logging.h"
 
-#include <stdbool.h>
-
 #include "common/assert.h"
 #include <babeltrace2/babeltrace.h>
-/* For bt_property_availability */
-#include <babeltrace2/property.h>
 
 #include "debug-info.h"
 #include "trace-ir-data-copy.h"
@@ -153,7 +133,6 @@ end:
        return out_trace;
 }
 
-BT_HIDDEN
 bt_stream_class *trace_ir_mapping_borrow_mapped_stream_class(
                struct trace_ir_maps *ir_maps,
                const bt_stream_class *in_stream_class)
@@ -168,7 +147,6 @@ bt_stream_class *trace_ir_mapping_borrow_mapped_stream_class(
                (gpointer) in_stream_class);
 }
 
-BT_HIDDEN
 bt_stream_class *trace_ir_mapping_create_new_mapped_stream_class(
                struct trace_ir_maps *ir_maps,
                const bt_stream_class *in_stream_class)
@@ -237,7 +215,6 @@ bt_stream *borrow_mapped_stream(struct trace_ir_data_maps *d_maps,
        return g_hash_table_lookup(d_maps->stream_map, (gpointer) in_stream);
 }
 
-BT_HIDDEN
 bt_stream *trace_ir_mapping_create_new_mapped_stream(
                struct trace_ir_maps *ir_maps, const bt_stream *in_stream)
 {
@@ -318,7 +295,6 @@ end:
        return out_stream;
 }
 
-BT_HIDDEN
 bt_stream *trace_ir_mapping_borrow_mapped_stream(struct trace_ir_maps *ir_maps,
                const bt_stream *in_stream)
 {
@@ -340,7 +316,6 @@ bt_event_class *borrow_mapped_event_class(struct trace_ir_metadata_maps *md_maps
                (gpointer) in_event_class);
 }
 
-BT_HIDDEN
 bt_event_class *trace_ir_mapping_create_new_mapped_event_class(
                struct trace_ir_maps *ir_maps,
                const bt_event_class *in_event_class)
@@ -407,7 +382,6 @@ end:
        return out_event_class;
 }
 
-BT_HIDDEN
 bt_event_class *trace_ir_mapping_borrow_mapped_event_class(
                struct trace_ir_maps *ir_maps,
                const bt_event_class *in_event_class)
@@ -434,7 +408,6 @@ bt_packet *borrow_mapped_packet(struct trace_ir_data_maps *d_maps,
        return g_hash_table_lookup(d_maps->packet_map, (gpointer) in_packet);
 }
 
-BT_HIDDEN
 bt_packet *trace_ir_mapping_create_new_mapped_packet(
                struct trace_ir_maps *ir_maps,
                const bt_packet *in_packet)
@@ -493,7 +466,6 @@ end:
        return out_packet;
 }
 
-BT_HIDDEN
 bt_packet *trace_ir_mapping_borrow_mapped_packet(struct trace_ir_maps *ir_maps,
                const bt_packet *in_packet)
 {
@@ -506,7 +478,6 @@ bt_packet *trace_ir_mapping_borrow_mapped_packet(struct trace_ir_maps *ir_maps,
        return borrow_mapped_packet(d_maps, in_packet);
 }
 
-BT_HIDDEN
 void trace_ir_mapping_remove_mapped_packet(struct trace_ir_maps *ir_maps,
                const bt_packet *in_packet)
 {
@@ -523,7 +494,6 @@ void trace_ir_mapping_remove_mapped_packet(struct trace_ir_maps *ir_maps,
        BT_ASSERT(ret);
 }
 
-BT_HIDDEN
 void trace_ir_mapping_remove_mapped_stream(struct trace_ir_maps *ir_maps,
                const bt_stream *in_stream)
 {
@@ -646,7 +616,6 @@ error:
        return md_maps;
 }
 
-BT_HIDDEN
 void trace_ir_data_maps_destroy(struct trace_ir_data_maps *maps)
 {
        bt_trace_remove_listener_status status;
@@ -679,7 +648,6 @@ void trace_ir_data_maps_destroy(struct trace_ir_data_maps *maps)
        g_free(maps);
 }
 
-BT_HIDDEN
 void trace_ir_metadata_maps_destroy(struct trace_ir_metadata_maps *maps)
 {
        bt_trace_class_remove_listener_status status;
@@ -733,7 +701,6 @@ void trace_ir_maps_clear(struct trace_ir_maps *maps)
        }
 }
 
-BT_HIDDEN
 void trace_ir_maps_destroy(struct trace_ir_maps *maps)
 {
        if (!maps) {
@@ -755,7 +722,6 @@ void trace_ir_maps_destroy(struct trace_ir_maps *maps)
        g_free(maps);
 }
 
-BT_HIDDEN
 struct trace_ir_maps *trace_ir_maps_create(bt_self_component *self_comp,
                const char *debug_info_field_name, bt_logging_level log_level)
 {
This page took 0.027521 seconds and 4 git commands to generate.