mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
daemon: add API to get kernel symbols
This is useful because we might not have access to kernel symbols from user applications which are not root. Various distributions are starting to censor kernel addresses without root. This allows the clients to fetch the symbol addresses without having to be root themselves.
This commit is contained in:
@ -4,16 +4,23 @@ sysprofd_sources = [
|
||||
'sysprofd.c',
|
||||
'sd-bus-helper.c',
|
||||
'sd-bus-helper.h',
|
||||
'../lib/sp-kallsyms.c',
|
||||
'../lib/sp-kallsyms.h',
|
||||
]
|
||||
|
||||
# NOTE: This is used in data/meson.build
|
||||
pkglibexecdir = join_paths(get_option('prefix'), get_option('libexecdir'), 'sysprof')
|
||||
|
||||
sysprofd_deps = [
|
||||
dependency('libsystemd', version: '>=222'),
|
||||
dependency('glib-2.0'),
|
||||
]
|
||||
|
||||
sysprofd = executable('sysprofd',
|
||||
sysprofd_sources,
|
||||
c_args: exe_c_args,
|
||||
link_args: exe_link_args,
|
||||
dependencies: dependency('libsystemd', version: '>=222'),
|
||||
dependencies: sysprofd_deps,
|
||||
install: true,
|
||||
install_dir: pkglibexecdir,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user