sysprofd: add API to set perf_event_paranoid

This will allow us to get more information on demand when running the
profiler without endless tweaking by end users.
This commit is contained in:
Christian Hergert
2021-02-24 11:26:10 -08:00
parent adf8a3cd6a
commit 667180cbc8
2 changed files with 59 additions and 0 deletions

View File

@ -106,5 +106,17 @@
<arg name="governor" type="s" direction="in"/>
<arg name="old_governor" type="s" direction="out"/>
</method>
<!--
SetParanoid:
@governor: the new perf paranoid setting
@old_governor: the old perf paranoid setting
Sets the perf_event_paranoid setting for the system.
-->
<method name="SetParanoid">
<arg name="paranoid" type="i" direction="in"/>
<arg name="old_paranoid" type="i" direction="out"/>
</method>
</interface>
</node>