From: Namhyung Kim <namhyung@kernel.org>
To: Florin Trofin <ftrofin@adobe.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: Multiple commands in perf 3.2.30 and 3.5.5 on Ubuntu 12 do not work
Date: Thu, 15 Nov 2012 10:25:03 +0900 [thread overview]
Message-ID: <878va3mzdc.fsf@sejong.aot.lge.com> (raw)
In-Reply-To: <loom.20121113T224335-737@post.gmane.org> (Florin Trofin's message of "Tue, 13 Nov 2012 23:01:18 +0000 (UTC)")
Hi Florin,
On Tue, 13 Nov 2012 23:01:18 +0000 (UTC), Florin Trofin wrote:
> I mentioned in a previous post that "perf archive" command is not recognized on
> Ubuntu 12.04 (perf version 3.2.30) although it is listed in the --help output.
> I wanted to see if the issue was fixed in a later version so I tried
> Ubuntu 12.10 (perf version 3.5.5) and it has the same problems:
> archive is not recognized as a valid command, and other commands fail as well:
>
> $ perf timechart record sleep 2
> invalid or unsupported event: 'power:cpu_frequency'
> Run 'perf list' for a list of valid events
>
> Another command that doesn't work:
>
> $ perf lock record sleep 2
> invalid or unsupported event: 'lock:lock_acquire'
> Run 'perf list' for a list of valid events
>
> This makes me think that either perf is mostly broken in the new versions
> or something is wrong on my machine (although installation went smoothly).
> I installed perf by doing:
>
> $ sudo apt-get install linux-tools-common
> $ sudo apt-get install linux-tools-3.5.0-17
>
> Can somebody shed some light on this please?
It looks like a problem of opening a tracepoint event. More
specifically there's a problem in accessing debugfs. Even after
changing /proc/sys/kernel/perf_events_paranoid to -1, I failed to
record tracepoint events.
$ ls /sys/kernel/debug
ls: cannot open directory /sys/kernel/debug: Permission denied
$ sudo ls -la /sys/kernel/debug | head -3
total 0
drwx------. 19 root root 0 Nov 6 10:38 .
drwxr-xr-x. 8 root root 0 Nov 6 10:38 ..
$ perf record -e sched:sched_switch
invalid or unsupported event: 'sched:sched_switch'
Run 'perf list' for a list of valid events
I have no idea when it's changed, I used to be abled to access
tracepoint events as a non-root user with the perf_events_paranoid
setting.
But this is failed on a recent kernel (w/ Fedora 17).
$ uname -a
Linux sejong.aot.lge.com 3.7.0-rc2+ #35 SMP PREEMPT Tue Nov 6 10:33:02 KST 2012 x86_64 x86_64 x86_64 GNU/Linux
Anyways, running as root will solve your problem I guess.
Thanks,
Namhyung
prev parent reply other threads:[~2012-11-15 1:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 23:01 Multiple commands in perf 3.2.30 and 3.5.5 on Ubuntu 12 do not work Florin Trofin
2012-11-15 1:25 ` Namhyung Kim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878va3mzdc.fsf@sejong.aot.lge.com \
--to=namhyung@kernel.org \
--cc=ftrofin@adobe.com \
--cc=linux-perf-users@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox