#define BT_LOG_TAG "PLUGIN-CTF-LTTNG-UTILS-DEBUG-INFO-FLT"
#include "logging.h"
-#include <assert.h>
+#include <babeltrace/assert-internal.h>
#include <glib.h>
#include "debug-info.h"
#include "bin-info.h"
static
void handle_statedump_build_id_event(FILE *err, struct debug_info *debug_info,
- struct bt_event *event)
+ const bt_event *event)
{
struct proc_debug_info_sources *proc_dbg_info_src;
struct bin_info *bin = NULL;
static
void handle_statedump_debug_link_event(FILE *err, struct debug_info *debug_info,
- struct bt_event *event)
+ const bt_event *event)
{
struct proc_debug_info_sources *proc_dbg_info_src;
struct bin_info *bin = NULL;
static
void handle_bin_info_event(FILE *err, struct debug_info *debug_info,
- struct bt_event *event, bool has_pic_field)
+ const bt_event *event, bool has_pic_field)
{
struct proc_debug_info_sources *proc_dbg_info_src;
struct bin_info *bin;
static inline
void handle_statedump_bin_info_event(FILE *err, struct debug_info *debug_info,
- struct bt_event *event)
+ const bt_event *event)
{
handle_bin_info_event(err, debug_info, event, true);
}
static inline
void handle_lib_load_event(FILE *err, struct debug_info *debug_info,
- struct bt_event *event)
+ const bt_event *event)
{
handle_bin_info_event(err, debug_info, event, false);
}
static inline
void handle_lib_unload_event(FILE *err, struct debug_info *debug_info,
- struct bt_event *event)
+ const bt_event *event)
{
struct proc_debug_info_sources *proc_dbg_info_src;
uint64_t baddr;
static
void handle_statedump_start(FILE *err, struct debug_info *debug_info,
- struct bt_event *event)
+ const bt_event *event)
{
struct proc_debug_info_sources *proc_dbg_info_src;
int64_t vpid;
}
BT_HIDDEN
-void debug_info_handle_event(FILE *err, struct bt_event *event,
+void debug_info_handle_event(FILE *err, const bt_event *event,
struct debug_info *debug_info)
{
- struct bt_event_class *event_class;
+ const bt_event_class *event_class;
const char *event_name;
GQuark q_event_name;
}
end_put_class:
- bt_put(event_class);
+ bt_event_class_put_ref(event_class);
end:
return;
}