All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin King <benjaminking@web.de>
To: Linux perf users <linux-perf-users@vger.kernel.org>
Subject: perf tracepoints for regular user?
Date: Fri, 15 Jan 2016 22:05:16 +0100	[thread overview]
Message-ID: <20160115210516.GA6329@localhost> (raw)

Hi,

I am trying to use 'perf stat -e uprobes:xyz' on a tracepoint that I have
previously set, but with no success.
I thought that I should be able to do that when allowing my user access to
debugfs, but this is what I get:

$ id -u;id -g
1001
1001
$ mount|grep debug
none on /sys/kernel/debug type debugfs (rw,uid=1001,gid=1001)
$ ls /sys/kernel/debug
acpi  bluetooth  cleancache  dell_laptop  dri extfrag ...
$ ls /sys/kernel/debug/tracing/
ls: cannot open directory /sys/kernel/debug/tracing/: Permission denied

So, my user can't look in the tracing subdirectory and perf list doesn't show
the uprobes either.

I have also tried to ´sudo setcap cap_sys_admin+eip $(which perf)´, also
without success.

Any ideas?
Thanks,
  Benjamin King

             reply	other threads:[~2016-01-15 21:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-15 21:05 Benjamin King [this message]
2016-01-17 21:20 ` perf tracepoints for regular user? 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
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=20160115210516.GA6329@localhost \
    --to=benjaminking@web.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.