libsysprof: make perf_event_paranoid failure softer

We can survive this being at 2, but we can keep it a debug info bit for
now to be less annoying on the console.
This commit is contained in:
Christian Hergert
2021-02-24 14:03:51 -08:00
parent 143554c68e
commit 61934a1c02

View File

@ -215,7 +215,7 @@ disable_paranoid_cb (GObject *object,
g_assert (SYSPROF_IS_GOVERNOR_SOURCE (self));
if (!sysprof_helpers_set_paranoid_finish (helpers, result, &old_paranoid, &error))
g_warning ("Failed to change perf_event_paranoid: %s", error->message);
g_debug ("Failed to change perf_event_paranoid: %s", error->message);
else
self->old_paranoid = old_paranoid;
@ -281,7 +281,7 @@ enable_paranoid_cb (GObject *object,
g_assert (SYSPROF_IS_GOVERNOR_SOURCE (self));
if (!sysprof_helpers_set_paranoid_finish (helpers, result, &old_governor, &error))
g_warning ("Failed to change event_perf_paranoid: %s", error->message);
g_debug ("Failed to change event_perf_paranoid: %s", error->message);
if (!self->disable_governor)
sysprof_source_emit_finished (SYSPROF_SOURCE (self));