libsysprof-profiler: start on perf instrument

This starts porting the old perf code from libsysprof into
libsysprof-profile. It does not bring over tracepoints yet, because we
need to think about how we want to support that. I may opt to do that as
a separate instrument even if that takes an additional perf fd.
This commit is contained in:
Christian Hergert
2023-06-03 23:14:14 -07:00
parent ece30b52b1
commit fb81867bf5
5 changed files with 454 additions and 0 deletions

View File

@ -6,6 +6,7 @@ libsysprof_profile_public_sources = [
'sysprof-network-usage.c',
'sysprof-profiler.c',
'sysprof-recording.c',
'sysprof-sampler.c',
'sysprof-spawnable.c',
]
@ -27,6 +28,7 @@ libsysprof_profile_public_headers = [
'sysprof-network-usage.h',
'sysprof-profiler.h',
'sysprof-recording.h',
'sysprof-sampler.h',
'sysprof-spawnable.h',
]