recording: track DEBUGINFOD_URLS environment variable

This is handy to know in case we want to use it to find symbols after
the fact with a capture.
This commit is contained in:
Christian Hergert
2024-11-14 10:49:27 -08:00
parent 02377939f0
commit 3a654ed959

View File

@ -104,6 +104,7 @@ sysprof_recording_fiber (gpointer user_data)
g_autoptr(DexFuture) monitor = NULL;
g_autoptr(DexFuture) message = NULL;
g_autoptr(GError) error = NULL;
const char *debuginfod_urls = NULL;
struct utsname uts;
struct sysinfo si;
gint64 begin_time;
@ -189,6 +190,9 @@ sysprof_recording_fiber (gpointer user_data)
add_metadata (self, "HOSTTYPE", g_getenv ("HOSTTYPE"));
add_metadata (self, "OSTYPE", g_getenv ("OSTYPE"));
if ((debuginfod_urls = g_getenv ("DEBUGINFOD_URLS")))
add_metadata (self, "DEBUGINFOD_URLS", debuginfod_urls);
/* Log information about the spawning process */
if (self->spawnable != NULL)
{