mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: rename all symbols to use sysprof_ as prefix
As we gain in usage, we need to be more careful about using a prefix that will not collide with other symbols. So version 3 of our ABI will change to using Sysprof/SYSPROF/sysprof as the various prefixes. The soname/api version bump will happen later on this branch so that things are easier to test up until then.
This commit is contained in:
@ -4,7 +4,7 @@ sysprofd_sources = [
|
||||
'sysprofd.c',
|
||||
'sd-bus-helper.c',
|
||||
'sd-bus-helper.h',
|
||||
'../libsysprof/sp-kallsyms.c',
|
||||
'../libsysprof/sysprof-kallsyms.c',
|
||||
]
|
||||
|
||||
pkglibexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
|
||||
@ -19,7 +19,9 @@ sysprofd = executable('sysprofd', sysprofd_sources,
|
||||
install: true,
|
||||
install_dir: pkglibexecdir,
|
||||
pie: true,
|
||||
include_directories: [include_directories('.'), '../libsysprof'],
|
||||
include_directories: [include_directories('.'),
|
||||
'../libsysprof',
|
||||
libsysprof_capture_include_dirs],
|
||||
)
|
||||
|
||||
sysprofdconf = configuration_data()
|
||||
|
||||
@ -30,7 +30,8 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "sd-bus-helper.h"
|
||||
#include "sp-kallsyms.h"
|
||||
|
||||
#include "sysprof-kallsyms.h"
|
||||
|
||||
#define BUS_TIMEOUT_USEC (1000000L * 10L)
|
||||
|
||||
@ -48,7 +49,7 @@ sysprofd_get_kernel_symbols (sd_bus_message *msg,
|
||||
void *user_data,
|
||||
sd_bus_error *error)
|
||||
{
|
||||
g_autoptr(SpKallsyms) kallsyms = NULL;
|
||||
g_autoptr(SysprofKallsyms) kallsyms = NULL;
|
||||
sd_bus_message *reply = NULL;
|
||||
const gchar *name;
|
||||
guint64 addr;
|
||||
@ -76,7 +77,7 @@ sysprofd_get_kernel_symbols (sd_bus_message *msg,
|
||||
else if (r == 0)
|
||||
return -EACCES;
|
||||
|
||||
if (!(kallsyms = sp_kallsyms_new (NULL)))
|
||||
if (!(kallsyms = sysprof_kallsyms_new (NULL)))
|
||||
{
|
||||
sd_bus_error_set (error,
|
||||
SD_BUS_ERROR_FILE_NOT_FOUND,
|
||||
@ -92,7 +93,7 @@ sysprofd_get_kernel_symbols (sd_bus_message *msg,
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
while (sp_kallsyms_next (kallsyms, &name, &addr, &type))
|
||||
while (sysprof_kallsyms_next (kallsyms, &name, &addr, &type))
|
||||
sd_bus_message_append (reply, "(tys)", addr, type, name);
|
||||
|
||||
r = sd_bus_message_close_container (reply);
|
||||
|
||||
Reference in New Issue
Block a user