From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Benjamin King <benjaminking@web.de>
Cc: Milian Wolff <milian.wolff@kdab.com>,
Linux perf users <linux-perf-users@vger.kernel.org>
Subject: Re: perf tracepoints for regular user?
Date: Tue, 19 Jan 2016 19:18:58 -0300 [thread overview]
Message-ID: <20160119221858.GK27085@kernel.org> (raw)
In-Reply-To: <20160119050244.GA13183@localhost>
Em Tue, Jan 19, 2016 at 06:02:44AM +0100, Benjamin King escreveu:
> Hi Milian,
>
> On Sun, Jan 17, 2016 at 10:20:00PM +0100, Milian Wolff wrote:
> >On Freitag, 15. Januar 2016 22:05:16 CET Benjamin King wrote:
> >>I am trying to use 'perf stat -e uprobes:xyz' on a tracepoint that I have
> >>previously set, but with no success.
> >Try these commands:
> >
> >$ sudo mount -o remount,mode=755 /sys/kernel/debug
> >$ sudo mount -o remount,mode=755 /sys/kernel/debug/tracing
> >$ echo \"-1\" | sudo tee /proc/sys/kernel/perf_event_paranoid
>
> Hm, that does not work for me. I can do the first remount, but not the
> second:
> -----
> $ sudo mount -o remount,mode=755 /sys/kernel/debug/tracing
> mount: can't find /sys/kernel/debug/tracing in /etc/fstab
> $ mount|grep debug
> none on /sys/kernel/debug type debugfs (rw,mode=755,mode=755)
> -----
Ok, your kernel is old and doesn't have the tracefs:
[acme@zoo ~]$ mount | egrep \(debug\|trace\)fs
debugfs on /sys/kernel/debug type debugfs (rw,relatime,seclabel,mode=755)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime,mode=755)
[acme@zoo ~]$
> And then, I still can not see tracepoints as a regular user:
> -----
> $ perf list tracepoint
>
> List of pre-defined events (to be used in -e):
>
> $ -----
>
> If this works for you, then maybe it's my version? I'm on 4.2.3
[acme@zoo ~]$ uname -r
4.3.0+
But on another machine, oops, I thought it was older, in fact it is newer :-\
[root@jouet images]# uname -r
4.3.3-300.fc23.x86_64
[root@jouet images]# mount | egrep \(trace\|debug\)fs
debugfs on /sys/kernel/debug type debugfs (rw,relatime,seclabel)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,relatime)
[root@jouet images]#
next prev parent reply other threads:[~2016-01-19 22:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-15 21:05 perf tracepoints for regular user? Benjamin King
2016-01-17 21:20 ` Milian Wolff
2016-01-17 21:56 ` Milian Wolff
2016-01-19 5:02 ` Benjamin King
2016-01-19 22:18 ` Arnaldo Carvalho de Melo [this message]
2016-01-20 11:50 ` Aw: " Benjamin King
2016-01-21 14:05 ` Arnaldo Carvalho de Melo
2016-01-25 15:43 ` Benjamin King
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=20160119221858.GK27085@kernel.org \
--to=acme@kernel.org \
--cc=benjaminking@web.de \
--cc=linux-perf-users@vger.kernel.org \
--cc=milian.wolff@kdab.com \
/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;
as well as URLs for NNTP newsgroup(s).