mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +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:
@ -76,7 +76,7 @@ sysprofd_get_kernel_symbols (sd_bus_message *msg,
|
||||
else if (r == 0)
|
||||
return -EACCES;
|
||||
|
||||
if (!(kallsyms = sp_kallsyms_new ()))
|
||||
if (!(kallsyms = sp_kallsyms_new (NULL)))
|
||||
{
|
||||
sd_bus_error_set (error,
|
||||
SD_BUS_ERROR_FILE_NOT_FOUND,
|
||||
|
||||
Reference in New Issue
Block a user