mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
libsysprof-profile: record diagnostic on kallsyms failure
This commit is contained in:
@ -225,7 +225,17 @@ sysprof_sampler_prepare_fiber (gpointer user_data)
|
|||||||
* different locations). Embed the kallsyms, but gzip it as
|
* different locations). Embed the kallsyms, but gzip it as
|
||||||
* those files can be quite large.
|
* those files can be quite large.
|
||||||
*/
|
*/
|
||||||
dex_await (_sysprof_recording_add_file (prepare->recording, "/proc/kallsyms", TRUE), NULL);
|
if (!dex_await (_sysprof_recording_add_file (prepare->recording,
|
||||||
|
"/proc/kallsyms",
|
||||||
|
TRUE),
|
||||||
|
&error))
|
||||||
|
{
|
||||||
|
_sysprof_recording_diagnostic (prepare->recording,
|
||||||
|
"Sampler",
|
||||||
|
"Failed to record copy of “kallsyms” to capture: %s",
|
||||||
|
error->message);
|
||||||
|
g_clear_error (&error);
|
||||||
|
}
|
||||||
|
|
||||||
/* Now create a SysprofPerfEventStream for every CPU on the
|
/* Now create a SysprofPerfEventStream for every CPU on the
|
||||||
* system. Linux Perf will only let us create a stream for
|
* system. Linux Perf will only let us create a stream for
|
||||||
|
|||||||
Reference in New Issue
Block a user