check_perf_support#
- detkit.check_perf_support()#
Check Perf tool is supported.
- Returns:
- statusdict
A dictionary with the following keys:
'kernel_version'
: Linux kernel version'perf_event_paranoid'
: Permission status of kernel for using Perf. Values-1
,0
, and1
are admissible permissions. Higher values prevent kernel from allowing Perf tool to work.'perf_installed'
: Boolean, indicates if Perf tool is installed.'perf_working'
: Boolean, indicates if Perf tool is working.
See also
Notes
The Perf tool needs to be installed and neccessary permissions should be granted for it to work. See Perf Tool.
Examples
>>> import detkit >>> results = detkit.check_perf_support() >>> print(results) { 'kernel_version': '6.8.0-51-generic', 'perf_event_paranoid': 1, 'perf_installed': True, 'perf_working': True }