sysprofd: add RAPL profiler on the org.gnome.Sysprof3 D-Bus peer

This allows consumers to get a RAPL profiler object on the D-Bus at
org.gnome.Sysprof3 with path /org/gnome/Sysprof3/RAPL. This can be used
by the clients to record extra power statistics.

It requires the `turbostat` program to be installed, and is provided in
packages such as `kernel-tools` on Fedora. Distributions may want to
ensure that is available as a dependency of Sysprof, but it is not
strictly required.
This commit is contained in:
Christian Hergert
2019-07-30 15:29:43 -07:00
parent 41f8565a25
commit a3d0ddc231
6 changed files with 943 additions and 1 deletions

View File

@ -4,9 +4,12 @@ sysprofd_sources = [
'../libsysprof/sysprof-kallsyms.c',
'sysprofd.c',
'ipc-legacy-impl.c',
'ipc-rapl-profiler.c',
'ipc-service-impl.c',
'sysprof-turbostat.c',
helpers_sources,
ipc_legacy_src,
ipc_profiler_src,
ipc_service_src,
]
@ -17,6 +20,7 @@ sysprofd_deps = [
gio_dep,
gio_unix_dep,
polkit_dep,
libsysprof_capture_dep,
]
sysprofd = executable('sysprofd', sysprofd_sources,