From 61934a1c02bb104355a58d8b39d2596a853edc4f Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 24 Feb 2021 14:03:51 -0800 Subject: [PATCH] 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. --- src/libsysprof/sysprof-governor-source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsysprof/sysprof-governor-source.c b/src/libsysprof/sysprof-governor-source.c index 7c2f67a4..90192ad9 100644 --- a/src/libsysprof/sysprof-governor-source.c +++ b/src/libsysprof/sysprof-governor-source.c @@ -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));