mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
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:
@ -215,7 +215,7 @@ disable_paranoid_cb (GObject *object,
|
|||||||
g_assert (SYSPROF_IS_GOVERNOR_SOURCE (self));
|
g_assert (SYSPROF_IS_GOVERNOR_SOURCE (self));
|
||||||
|
|
||||||
if (!sysprof_helpers_set_paranoid_finish (helpers, result, &old_paranoid, &error))
|
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
|
else
|
||||||
self->old_paranoid = old_paranoid;
|
self->old_paranoid = old_paranoid;
|
||||||
|
|
||||||
@ -281,7 +281,7 @@ enable_paranoid_cb (GObject *object,
|
|||||||
g_assert (SYSPROF_IS_GOVERNOR_SOURCE (self));
|
g_assert (SYSPROF_IS_GOVERNOR_SOURCE (self));
|
||||||
|
|
||||||
if (!sysprof_helpers_set_paranoid_finish (helpers, result, &old_governor, &error))
|
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)
|
if (!self->disable_governor)
|
||||||
sysprof_source_emit_finished (SYSPROF_SOURCE (self));
|
sysprof_source_emit_finished (SYSPROF_SOURCE (self));
|
||||||
|
|||||||
Reference in New Issue
Block a user