From what I have checked it looks like kernel side of 'perf' subsystem is enabled on computer I work on.
Checking kernel configuration shows the following
$ zgrep "_PERF[_= ]" /proc/config.gz CONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_EVENTS=y # CONFIG_PERF_COUNTERS is not set CONFIG_HAVE_PERF_EVENTS_NMI=y
I also did the check described in perf_events FAQ:
$ cat /proc/sys/kernel/perf_event_paranoid 1
perf tool is not installed:
$ perf -bash: perf: command not found $ /sbin/perf -bash: /sbin/perf: No such file or directory $ /usr/sbin/perf -bash: /usr/sbin/perf: No such file or directory
Is it possible to install perf userland as an ordinary user, to one's own home directory (for '2.6.36-gentoo-r4' kernel)?
Or do I need to ask administrator of machine in question to install it? More unfortunately
dev-util/perf package on Gentoo is masked (blocked) on amd64:
$ emerge --search perf [...] * dev-util/perf [ Masked ] Latest version available: 2.6.35_rc4 Latest version installed: [ Not Installed ] Size of files: 73,503 kB Homepage: http://perf.wiki.kernel.org/ Description: Userland tools for Linux Performance Counters License: GPL-2