[Lluís Vilanova]
> A possible check could be:
>
>   if [ `/sbin/sysctl kernel.perf_event_paranoid` -gt 2 ]; then
>       echo "ERROR: perf is too paranoid for us"
>       exit 1
>   fi
>
> This would build-depend on procps (which installs sysctl).

This seem like a good approach.  Perhaps explain in the message how to
get the build working too?

I found
<URL: 
http://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar
 >
explaining the values 2 to -1 for perf_event_paraniod.

I'm using kernel 3.16 myself, and here the default value seem to be 1.

I guess coz should be patched too, to explain why it isn't working
instead of returning the fairly incomprehensive message it give today
when the perf call fail

-- 
Happy hacking
Petter Reinholdtsen

Reply via email to