perf top -u <uid> does not seem to be working

From: Ingo Molnar
Date: Tue Nov 12 2013 - 18:23:04 EST



Hm, this is unexpected I think:

hubble:~> perf top --stdio -u mingo
Error:
You may not have permission to collect stats.
Consider tweaking /proc/sys/kernel/perf_event_paranoid:
-1 - Not paranoid at all
0 - Disallow raw tracepoint access for unpriv
1 - Disallow cpu events for unpriv
2 - Disallow kernel profiling for unpriv

hubble:~> cat /proc/sys/kernel/perf_event_paranoid
-1

hubble:~> perf top --stdio -u
Error: switch `u' requires a value

usage: perf top [<options>]

-u, --uid <user> user to profile

(perf is the latest version from tip:perf/core)

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/