Sudo setcap cap sys admin ei usr bin perf this sets perf capabilities of cap sys admin to effective and inheritable also setting permitted won t allow normal now it is possible to use perf with cap sys admin by executing perf wrapper and passing params just like perf in normal bash scripts