| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright (c) 2015-2019 EfficiOS Inc. |
| 5 | * Copyright (c) 2015 Antoine Busque <abusque@efficios.com> |
| 6 | * Copyright (c) 2019 Francis Deslauriers francis.deslauriers@efficios.com> |
| 7 | * |
| 8 | * Babeltrace - Debug information Plugin |
| 9 | */ |
| 10 | |
| 11 | #ifndef BABELTRACE_PLUGIN_DEBUG_INFO_H |
| 12 | #define BABELTRACE_PLUGIN_DEBUG_INFO_H |
| 13 | |
| 14 | #include <stdint.h> |
| 15 | #include <stdbool.h> |
| 16 | |
| 17 | #include <babeltrace2/babeltrace.h> |
| 18 | |
| 19 | #include "common/macros.h" |
| 20 | |
| 21 | #define VPID_FIELD_NAME "vpid" |
| 22 | #define IP_FIELD_NAME "ip" |
| 23 | #define BADDR_FIELD_NAME "baddr" |
| 24 | #define CRC32_FIELD_NAME "crc" |
| 25 | #define BUILD_ID_FIELD_NAME "build_id" |
| 26 | #define FILENAME_FIELD_NAME "filename" |
| 27 | #define IS_PIC_FIELD_NAME "is_pic" |
| 28 | #define MEMSZ_FIELD_NAME "memsz" |
| 29 | #define PATH_FIELD_NAME "path" |
| 30 | |
| 31 | bt_component_class_initialize_method_status debug_info_comp_init( |
| 32 | bt_self_component_filter *self_comp, |
| 33 | bt_self_component_filter_configuration *config, |
| 34 | const bt_value *params, void *init_method_data); |
| 35 | |
| 36 | void debug_info_comp_finalize(bt_self_component_filter *self_comp); |
| 37 | |
| 38 | bt_message_iterator_class_initialize_method_status debug_info_msg_iter_init( |
| 39 | bt_self_message_iterator *self_msg_iter, |
| 40 | bt_self_message_iterator_configuration *config, |
| 41 | bt_self_component_port_output *self_port); |
| 42 | |
| 43 | bt_message_iterator_class_next_method_status debug_info_msg_iter_next( |
| 44 | bt_self_message_iterator *self_msg_iter, |
| 45 | const bt_message_array_const msgs, uint64_t capacity, |
| 46 | uint64_t *count); |
| 47 | |
| 48 | bt_message_iterator_class_can_seek_beginning_method_status |
| 49 | debug_info_msg_iter_can_seek_beginning( |
| 50 | bt_self_message_iterator *message_iterator, |
| 51 | bt_bool *can_seek); |
| 52 | |
| 53 | bt_message_iterator_class_seek_beginning_method_status debug_info_msg_iter_seek_beginning( |
| 54 | bt_self_message_iterator *message_iterator); |
| 55 | |
| 56 | void debug_info_msg_iter_finalize(bt_self_message_iterator *it); |
| 57 | |
| 58 | #endif /* BABELTRACE_PLUGIN_DEBUG_INFO_H */ |