mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
kallsyms: make SpKallsyms more testable
This allows us to pass in the file to read from, and adds a quick test case to view the parsed output. It also fixes a base-10 vs base-16 mistake in parsing addresses.
This commit is contained in:
@ -27,7 +27,7 @@ G_BEGIN_DECLS
|
||||
|
||||
typedef struct _SpKallsyms SpKallsyms;
|
||||
|
||||
SpKallsyms *sp_kallsyms_new (void);
|
||||
SpKallsyms *sp_kallsyms_new (const gchar *path);
|
||||
gboolean sp_kallsyms_next (SpKallsyms *self,
|
||||
const gchar **name,
|
||||
guint64 *address,
|
||||
|
||||
Reference in New Issue
Block a user