[sysprof] libsysprof: make perf_event_paranoid failure softer



commit 61934a1c02bb104355a58d8b39d2596a853edc4f
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 24 14:03:51 2021 -0800

    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 7c2f67a..90192ad 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));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]