libsysprof: use embedded kallsyms when possible

This uses the kallysms that has been embedded in the capture file when
that is possible (such as when proc-source appends it).
This commit is contained in:
Christian Hergert
2019-05-27 18:05:15 -07:00
parent b8c30e3285
commit 874fb01c25
9 changed files with 195 additions and 82 deletions

View File

@ -20,22 +20,18 @@
#pragma once
#include "sysprof-version-macros.h"
#include <glib.h>
G_BEGIN_DECLS
typedef struct _SysprofKallsyms SysprofKallsyms;
SYSPROF_AVAILABLE_IN_ALL
SysprofKallsyms *sysprof_kallsyms_new (const gchar *path);
SYSPROF_AVAILABLE_IN_ALL
SysprofKallsyms *sysprof_kallsyms_new_take (gchar *data);
SYSPROF_AVAILABLE_IN_ALL
gboolean sysprof_kallsyms_next (SysprofKallsyms *self,
const gchar **name,
guint64 *address,
guint8 *type);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_kallsyms_free (SysprofKallsyms *self);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofKallsyms, sysprof_kallsyms_free)