Messages in this thread | | | Date | Thu, 31 May 2012 21:45:51 -0300 | From | Arnaldo Carvalho de Melo <> | Subject | Re: [PATCH 1/5] ftrace: Synchronize variable setting with breakpoints |
| |
Em Thu, May 31, 2012 at 10:26:09PM +0200, Peter Zijlstra escreveu: > > Hmm, this brings up another question. By default, perf does not allow > > users to profile trace_events correct? IOW, perf does not let > > unprivileged users call text_poke()? I just tried it and got the: > > > > $ ~/bin/perf record -e sched:sched_switch sleep 1 > > Permission error - are you root? > > 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 > > It would, except tools/perf does stupid, its unconditionally adding > PERF_SAMPLE_RAW (even for non-sampling events), which is the bit that > requires privs.
Looserland, bah, I'll check that, thanks.
- Arnaldo
| |