Re: [PATCH v2] perf record: fix priv level with branch sampling for paranoid=2

2019-09-23 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 23, 2019 at 11:03:45AM -0300, Arnaldo Carvalho de Melo escreveu: > Thanks, tested added Jiri's Acked-by, applied, added this note: > > Committer testing: > > After aplying the patch we get: > > [acme@quaco ~]$ perf record -b -e cycles date > WARNING: Kernel address maps (/proc/{k

Re: [PATCH v2] perf record: fix priv level with branch sampling for paranoid=2

2019-09-23 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 20, 2019 at 04:03:56PM -0700, Stephane Eranian escreveu: > Now that the default perf_events paranoid level is set to 2, a regular user > cannot monitor kernel level activity anymore. As such, with the following > cmdline: > > $ perf record -e cycles date > > The perf tool first tries

[PATCH v2] perf record: fix priv level with branch sampling for paranoid=2

2019-09-20 Thread Stephane Eranian
Now that the default perf_events paranoid level is set to 2, a regular user cannot monitor kernel level activity anymore. As such, with the following cmdline: $ perf record -e cycles date The perf tool first tries cycles:uk but then falls back to cycles:u as can be seen in the perf report --heade