Re: [RFT v2 1/4] perf cs-etm: Generate sample for missed packets

2018-05-25 Thread Arnaldo Carvalho de Melo
Em Fri, May 25, 2018 at 03:03:47PM +0100, Robert Walker escreveu: > Hi Leo, > > Following the discussions from your reply to this with a simplified patch, > this version of the patch works better as you also need to emit a branch > sample when handling a CS_ETM_TRACE_ON packet to indicate the end

Re: [PATCH v4 13/20] perf bench: New microbenchmark for userspace mutex performance

2017-01-02 Thread Arnaldo Carvalho de Melo
Em Thu, Dec 29, 2016 at 11:13:39AM -0500, Waiman Long escreveu: > This microbenchmark simulates how the use of different futex types > can affect the actual performanace of userspace mutex locks. The > usage is: > > perf bench futex mutex Showing the tool output is preferred, trim it if

Re: [kernel-hardening] [PATCH 1/2] security, perf: allow further restriction of perf_event_open

2016-10-19 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 19, 2016 at 12:01:26PM +0200, Peter Zijlstra escreveu: > On Tue, Oct 18, 2016 at 05:15:01PM -0400, Daniel Micay wrote: > > It's also worth noting that fine-grained control via a scoped mechanism > > would likely only be used to implement *more restrictions* on Android, > > not to make t

Re: [PATCH 1/2] security, perf: allow further restriction of perf_event_open

2016-08-02 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 02, 2016 at 11:52:43AM +0200, Peter Zijlstra escreveu: > On Wed, Jul 27, 2016 at 07:45:46AM -0700, Jeff Vander Stoep wrote: > > When kernel.perf_event_paranoid is set to 3 (or greater), disallow > > all access to performance events by users without CAP_SYS_ADMIN. > > This new level of

Re: [kernel-hardening] [PATCH 2/2] security,perf: Allow further restriction of perf_event_open

2016-06-17 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 17, 2016 at 12:16:47PM -0400, Daniel Micay escreveu: > On Fri, 2016-06-17 at 08:54 +0200, Peter Zijlstra wrote: > > This Changelog is completely devoid of information. _WHY_ are you > > doing this? > Attack surface reduction. It's possible to use seccomp-bpf for some > limited cases,

[GIT PULL 00/16] perf/core improvements and fixes

2016-01-29 Thread Arnaldo Carvalho de Melo
ile, speeding up the 'make -C tools/perf build-test' target (Wang Nan) - Reduce the number of tests the 'build-test' target do to those that don't pollute the source tree (Arnaldo Carvalho de Melo) - Improve the output of the build tests a bit by aligning the name o

[PATCH 06/16] perf auxtrace: Add perf_evlist pointer to *info_priv_size()

2016-01-29 Thread Arnaldo Carvalho de Melo
t Cc: Tor Jeremiassen Link: http://lkml.kernel.org/r/1452807977-8069-22-git-send-email-mathieu.poir...@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/x86/util/intel-bts.c | 4 +++- tools/perf/arch/x86/util/intel-pt.c | 4 +++- tools/perf/util/auxtrace.c

[PATCH 06/26] perf tools: Document the perf sysctls

2016-01-26 Thread Arnaldo Carvalho de Melo
-off-by: Ben Hutchings Cc: Peter Zijlstra Cc: linux-doc@vger.kernel.org Link: http://lkml.kernel.org/r/20160119213515.gg2...@decadent.org.uk [ Remove reference to external Documentation file, provide info inline, as before ] Signed-off-by: Arnaldo Carvalho de Melo --- Documentation/sysctl

Re: [PATCH V8 20/23] perf tools: making function set_max_cpu_num() non static

2016-01-26 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 26, 2016 at 10:08:21AM -0700, Mathieu Poirier escreveu: > On 25 January 2016 at 14:29, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jan 25, 2016 at 06:12:42PM -0300, Arnaldo Carvalho de Melo escreveu: > >> Em Mon, Jan 25, 2016 at 01:46:22PM -0700, Mathieu Poirier escr

Re: [PATCH V8 20/23] perf tools: making function set_max_cpu_num() non static

2016-01-25 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 25, 2016 at 06:12:42PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Jan 25, 2016 at 01:46:22PM -0700, Mathieu Poirier escreveu: > > On 14 January 2016 at 14:46, Mathieu Poirier > > wrote: > > > For memory allocation purposes, code located in othe

Re: [PATCH V8 20/23] perf tools: making function set_max_cpu_num() non static

2016-01-25 Thread Arnaldo Carvalho de Melo
This patch is making function set_max_cpu_num() available to > > other parts of the perf tool so that global variable > > 'max_cpu_num' gets the right value when referenced by cpu__max_cpu(). > > > > Cc: Peter Zijlstra > > Cc: Ingo Molnar > > Cc: Arna

[PATCH 10/16] perf tools: Document the perf sysctls

2016-01-21 Thread Arnaldo Carvalho de Melo
-off-by: Ben Hutchings Cc: Peter Zijlstra Cc: linux-doc@vger.kernel.org Link: http://lkml.kernel.org/r/20160119213515.gg2...@decadent.org.uk [ Remove reference to external Documentation file, provide info inline, as before ] Signed-off-by: Arnaldo Carvalho de Melo --- Documentation/sysctl

Re: [PATCH RESEND] perf: Document the perf sysctls

2016-01-21 Thread Arnaldo Carvalho de Melo
Em Tue, Jan 19, 2016 at 09:35:15PM +, Ben Hutchings escreveu: > perf_event_paranoid was only documented in source code and a perf > error message. Move the documentation from the error message to > Documentation/sysctl/kernel.txt. > > perf_cpu_time_max_percent was already documented but missi