libsysprof-profile: stash kallsyms from Perf instrument

That is the instrument that really provides things within the kernel
address space, so it should be the instrument which copies the contents
of kallsyms to the capture file (compressed).
This commit is contained in:
Christian Hergert
2023-06-05 15:03:55 -07:00
parent 4f4f3145c1
commit 849db07ad6
2 changed files with 27 additions and 2 deletions

View File

@ -272,8 +272,7 @@ sysprof_linux_instrument_prepare_fiber (gpointer user_data)
/* First get some basic information about the system into the capture. We can
* get the contents for all of these concurrently.
*/
if (!dex_await (dex_future_all (_sysprof_recording_add_file (recording, "/proc/kallsyms", TRUE),
_sysprof_recording_add_file (recording, "/proc/cpuinfo", TRUE),
if (!dex_await (dex_future_all (_sysprof_recording_add_file (recording, "/proc/cpuinfo", TRUE),
_sysprof_recording_add_file (recording, "/proc/mounts", TRUE),
NULL),
&error))