Re: [PATCH] tracing: Remove unused clock events

2017-10-13 Thread Jean Pihet
Hi Steven, On Thu, Oct 12, 2017 at 6:44 PM, Steven Rostedt wrote: > > [ Resending again, including linux...@vger.kernel.org this time ] > > From: Steven Rostedt (VMware) > > Commit 74704ac6 ("tracing, perf: Add more power related events") added > new

Re: [PATCH v5] arm64: perf: Fix callchain parse error with kernel tracepoint events

2015-05-20 Thread Jean Pihet
Hi Catalin, Will, On Tue, May 19, 2015 at 6:52 PM, Catalin Marinas catalin.mari...@arm.com wrote: On Sun, May 10, 2015 at 11:07:40AM +, Hou Pengyang wrote: For ARM64, when tracing with tracepoint events, the IP and pstate are set to 0, preventing the perf code parsing the callchain and

Re: [PATCH 1/1] rasd: Use perf_evlist__open() instead of open coded

2014-10-14 Thread Jean Pihet
On 14 October 2014 17:17, Borislav Petkov b...@alien8.de wrote: On Tue, Oct 14, 2014 at 04:22:13PM +0200, Jiri Olsa wrote: right.. is there more planned for RAS daemon to do? because at this point it looks to me more like new perf functionality (in trace or some other new command) Anyway,

Re: [PATCH 1/1] rasd: Use perf_evlist__open() instead of open coded

2014-10-13 Thread Jean Pihet
Hi Arnaldo, Borislav, On 10 October 2014 22:44, Borislav Petkov b...@alien8.de wrote: On Fri, Oct 10, 2014 at 05:41:58PM -0300, Arnaldo Carvalho de Melo wrote: Right, stoopid me, no need for some specific tracepoint, just to see that whatever tp it is, it will show up in rasd's event loop. Ok,

Re: [PATCH 1/1] rasd: Use perf_evlist__open() instead of open coded

2014-10-07 Thread Jean Pihet
Hi Arnaldo, On 6 October 2014 23:26, Arnaldo Carvalho de Melo a...@kernel.org wrote: Heya, please check if this is OK. This was while looking the set of methods used by rasd, trying to reduce it to the bare minimum. Perhaps even that cpu_map__new() one can be ditched, leaving to use the

Re: perf rasd integration plan

2014-10-06 Thread Jean Pihet
Hi Jiri, On 5 October 2014 20:24, Jiri Olsa jo...@redhat.com wrote: On Sun, Oct 05, 2014 at 07:48:01PM +0200, Borislav Petkov wrote: Top-posting on purpose: Btw, jolsa, if you get your LCE proposal for the perf splitting approved, please post the time here so people can come. yep, it got

Re: perf rasd integration plan

2014-10-06 Thread Jean Pihet
Hi, On 6 October 2014 11:07, Robert Richter r...@kernel.org wrote: On 30.09.14 10:24:16, Arnaldo Carvalho de Melo wrote: Em Tue, Sep 30, 2014 at 11:06:21AM +0200, Jean Pihet escreveu: The plan is to move the small and generic functions first: util, xyarray, cpumap, thread_map etc

Re: perf rasd integration plan

2014-10-06 Thread Jean Pihet
Hi Arnaldo, On 6 October 2014 16:58, Arnaldo Carvalho de Melo a...@kernel.org wrote: Em Mon, Oct 06, 2014 at 11:07:26AM +0200, Robert Richter escreveu: On 30.09.14 10:24:16, Arnaldo Carvalho de Melo wrote: Em Tue, Sep 30, 2014 at 11:06:21AM +0200, Jean Pihet escreveu: The plan is to move

perf rasd integration plan

2014-09-30 Thread Jean Pihet
The RAS Deamon (rasd) as available at [1] and the development version at [2], allows to enable kernel tracepoints and outputs the tracepoints fields according to the kernel format. [1] https://git.kernel.org/cgit/utils/ras/rasd.git/ [2] https://git.linaro.org/people/jean.pihet/rasd.git rasd

Re: [PATCH] perf tools: fix build breakage on arm and arm64 targets

2014-09-29 Thread Jean Pihet
Hi Will, On 26 September 2014 19:19, Sudeep Holla sudeep.ho...@arm.com wrote: On 26/09/14 18:01, Will Deacon wrote: Attempting to build the perf tool on arm or arm64 targets results in the following failure: arch/arm/util/unwind-libunwind.c: In function ‘libunwind__arch_reg_id’:

Re: [PATCH 2/2] perf callchain: Use global caching provided by libunwind

2014-09-26 Thread Jean Pihet
Hi, On 26 September 2014 07:50, Namhyung Kim namhy...@kernel.org wrote: Hi Jean, On Wed, 24 Sep 2014 15:45:57 +0200, Jean Pihet wrote: Hi! Here are the test results on ARMv7 for the 2 patches. The speedup is about x2.1 for identical unwinding output data. 'perf record --call-graph dwarf

Re: [PATCH 2/2] perf callchain: Use global caching provided by libunwind

2014-09-24 Thread Jean Pihet
. FWIW: Acked-by: Jean Pihet jean.pi...@linaro.org For info unwinding using libdw is about 5x faster: time perf.libdw.speedup report --sort symbol --call-graph --stdio 21 /dev/null real0m3.484s user0m2.360s sys0m1.070s Thanks, Jean On 24 September 2014 04:24, Namhyung Kim namhy

Re: [PATCH 1/1] tools/perf: add missing include debug.h for arm/arm64

2014-09-23 Thread Jean Pihet
. Can you refresh the patch for ARM64 only? FWIW: Acked-by: Jean Pihet jean.pi...@linaro.org Thanks! commit 84f5d36f4 (move pr_* debug macros into debug object): arch/arm/util/unwind-libunwind.c: In function 'libunwind__arch_reg_id': arch/arm/util/unwind-libunwind.c:43:3: error: implicit

Re: [PATCH 2/3] ARM: perf: disable the pagefault handler when reading from user space

2014-07-07 Thread Jean Pihet
Hi Will, On 3 July 2014 19:52, Will Deacon will.dea...@arm.com wrote: Hi Jean, On Fri, Jun 27, 2014 at 03:57:46PM +0100, Jean Pihet wrote: As done on other architectures (ARM64, x86, Sparc etc.). This prevents a deadlock on down_read in do_page_fault when unwinding using fp and triggering

Re: [PATCH 3/3] ARM: perf: allow tracing with kernel tracepoints events

2014-07-07 Thread Jean Pihet
Will, On 3 July 2014 19:54, Will Deacon will.dea...@arm.com wrote: On Fri, Jun 27, 2014 at 03:57:47PM +0100, Jean Pihet wrote: When tracing with tracepoints events the IP and CPSR are set to 0, preventing the perf code to resolve the symbols: ./perf record -e kmem:kmalloc cal [ perf record

[PATCH 1/3] ARM: perf: Check that current-mm is alive before getting user callchain

2014-07-07 Thread Jean Pihet
An event may occur when an mm is already released. As per commit 20afc60f892d285fde179ead4b24e6a7938c2f1b 'x86, perf: Check that current-mm is alive before getting user callchain' Signed-off-by: Jean Pihet jean.pi...@linaro.org Cc: Will Deacon will.dea...@arm.com Acked-by: Will Deacon will.dea

[PATCH 2/3] ARM: perf: disable the pagefault handler when reading from user space

2014-07-07 Thread Jean Pihet
) from [c0236c60] (__copy_from_user+0xa4/0x3a4) Signed-off-by: Jean Pihet jean.pi...@linaro.org Cc: Will Deacon will.dea...@arm.com Acked-by: Steve Capper steve.cap...@linaro.org --- arch/arm/kernel/perf_event.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm

[PATCH 3/3] ARM: perf: allow tracing with kernel tracepoints events

2014-07-07 Thread Jean Pihet
Priya on linaro-dev, cf. http://lists.linaro.org/pipermail/linaro-dev/2014-May/017151.html Signed-off-by: Jean Pihet jean.pi...@linaro.org Cc: Will Deacon will.dea...@arm.com Cc: Steve Capper steve.cap...@linaro.org Reported-by: Sneha Priya sneha@hotmail.com --- arch/arm/include/asm

[PATCH 0/3] ARM: perf: allow tracing with kernel tracepoints events

2014-07-07 Thread Jean Pihet
tracepoint), with unwinding using fp (--call-graph fp) and dwarf info (--call-graph dwarf). Jean Pihet (3): ARM: perf: Check that current-mm is alive before getting user callchain ARM: perf: disable the pagefault handler when reading from user space ARM: perf: allow tracing with kernel

Re: crazy idea (was: Re: [PATCH] perf tool: Carve out ctype.h et al)

2014-06-30 Thread Jean Pihet
Hi Boris, -- added Fu Wei in the loop -- On 30 June 2014 09:07, Borislav Petkov b...@alien8.de wrote: On Sat, Jun 28, 2014 at 01:28:19AM +0200, Borislav Petkov wrote: Ok, cool. So guys, can we apply this one so that I can continue with the next round? Ok, I had this crazy idea recently:

Re: [PATCH] ARM: perf: allow tracing with kernel tracepoints events

2014-06-27 Thread Jean Pihet
Hi Will, On 26 June 2014 11:00, Will Deacon will.dea...@arm.com wrote: On Wed, Jun 25, 2014 at 03:54:14PM +0100, Jean Pihet wrote: Hi Will, Hello, On 25 June 2014 11:01, Will Deacon will.dea...@arm.com wrote: On Fri, Jun 20, 2014 at 09:10:35AM +0100, Jean Pihet wrote: On 18 June 2014 14

[PATCH 3/3] ARM: perf: allow tracing with kernel tracepoints events

2014-06-27 Thread Jean Pihet
, fp and cpsr. Tested with perf record and tracepoints triggering (-e tracepoint), with unwinding using fp (--call-graph fp) and dwarf info (--call-graph dwarf). Reported by Sneha Priya on linaro-dev, cf. http://lists.linaro.org/pipermail/linaro-dev/2014-May/017151.html Signed-off-by: Jean Pihet

[PATCH 1/3] ARM: perf: Check that current-mm is alive before getting user callchain

2014-06-27 Thread Jean Pihet
An event may occur when an mm is already released. As per commit 20afc60f892d285fde179ead4b24e6a7938c2f1b 'x86, perf: Check that current-mm is alive before getting user callchain' Signed-off-by: Jean Pihet jean.pi...@linaro.org Cc: Will Deacon will.dea...@arm.com --- arch/arm/kernel

[PATCH 0/3] ARM: perf: allow tracing with kernel tracepoints events

2014-06-27 Thread Jean Pihet
- Robustify the user backtrace code, as done on other architectures. - Provide the symbols resolution when triggering from tracepoints. Tested with perf record and tracepoints triggering (-e tracepoint), with unwinding using fp (--call-graph fp) and dwarf info (--call-graph dwarf). Jean Pihet

[PATCH 2/3] ARM: perf: disable the pagefault handler when reading from user space

2014-06-27 Thread Jean Pihet
: ecbc3b74 b6d72ff4 3b00: ffec b6d72ff4 ec0fc000 ec0fc000 007e 3b20: ecbc2000 ecbc3bac 0014 ecbc3b44 c0019e78 c021ef44 0013 [c00136b8] (__dabt_svc) from [c021ef44] (__copy_from_user+0xa4/0x3a0) Signed-off-by: Jean

Re: [PATCH] perf: fix arm64 build error

2014-06-25 Thread Jean Pihet
]; ^ This patch adds a PEFF_REGS_MAX definition for arm64. s/PEFF_REGS_MAX/PERF_REGS_MAX Signed-off-by: Mark Salter msal...@redhat.com Acked-by: Jean Pihet jean.pi...@linaro.org Thanks! Note: Do you have any performance figure with and without the caching code in perf? Jean --- tools

Re: [PATCH] ARM: perf: allow tracing with kernel tracepoints events

2014-06-25 Thread Jean Pihet
Hi Will, On 25 June 2014 11:01, Will Deacon will.dea...@arm.com wrote: On Fri, Jun 20, 2014 at 09:10:35AM +0100, Jean Pihet wrote: Hi Will, Hi Jean, On 18 June 2014 14:53, Will Deacon will.dea...@arm.com wrote: On Tue, Jun 17, 2014 at 06:11:05PM +0100, Jean Pihet wrote: Tested with perf

Re: [PATCH] ARM: perf: allow tracing with kernel tracepoints events

2014-06-20 Thread Jean Pihet
Hi Will, On 18 June 2014 14:53, Will Deacon will.dea...@arm.com wrote: Hi Jean, On Tue, Jun 17, 2014 at 06:11:05PM +0100, Jean Pihet wrote: When tracing with tracepoints events the IP and CPSR are set to 0, preventing the perf code to resolve the symbols: ./perf record -e kmem:kmalloc cal

[PATCH] ARM: perf: allow tracing with kernel tracepoints events

2014-06-17 Thread Jean Pihet
, fp and cpsr. Tested with perf record and tracepoints filtering (-e tracepoint), with unwinding using fp (--call-graph fp) and dwarf info (--call-graph dwarf). Reported by Sneha Priya on linaro-dev, cf. http://lists.linaro.org/pipermail/linaro-dev/2014-May/017151.html Signed-off-by: Jean Pihet

Re: [PATCH] tools:perf: move tools/perf/util to tools/lib/perf_util

2014-06-12 Thread Jean Pihet
On 12 June 2014 14:49, Borislav Petkov b...@alien8.de wrote: On Thu, Jun 12, 2014 at 09:34:32AM -0300, Arnaldo Carvalho de Melo wrote: Em Thu, Jun 12, 2014 at 10:26:42AM +0200, Jean Pihet escreveu: This is a first move of the perf code into a set of libraries, which allow the implementation

Re: [GIT PULL 00/14] perf/core improvements and fixes

2014-06-12 Thread Jean Pihet
Hi Jiri, On 12 June 2014 17:30, Jiri Olsa jo...@kernel.org wrote: hi Ingo, please consider pulling thanks, jirka The following changes since commit 7184062b94b4bfac08715fb786fd2df399c5d6ee: Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux

Re: [PATCHv2 00/14] perf tools: Speedup DWARF unwind

2014-05-23 Thread Jean Pihet
(the 'stress_bt' app.), - libdw: no significant improvement (0-2% improvement). Cf. https://wiki.linaro.org/LEG/Engineering/TOOLS/perf-callstack-unwinding#Speed_improvement for more details. FWIW: Acked-by: Jean Pihet jean.pi...@linaro.org Regards, Jean thanks, jirka On Thu, May 15, 2014 at 07:23:21PM

[tip:perf/core] perf tools: Consolidate types.h for ARM and ARM64

2014-05-20 Thread tip-bot for Jean Pihet
Commit-ID: 21a8b756b84ecaa0b7f29199669c151e2ce5e723 Gitweb: http://git.kernel.org/tip/21a8b756b84ecaa0b7f29199669c151e2ce5e723 Author: Jean Pihet jean.pi...@linaro.org AuthorDate: Fri, 16 May 2014 10:41:09 +0200 Committer: Jiri Olsa jo...@kernel.org CommitDate: Fri, 16 May 2014 11:38:57

[tip:perf/core] perf tests: Add dwarf unwind test on ARM

2014-05-20 Thread tip-bot for Jean Pihet
Commit-ID: 90fa9deb32b908fb258225ab562c4ef7ae8dd35a Gitweb: http://git.kernel.org/tip/90fa9deb32b908fb258225ab562c4ef7ae8dd35a Author: Jean Pihet jean.pi...@linaro.org AuthorDate: Fri, 16 May 2014 10:41:11 +0200 Committer: Jiri Olsa jo...@kernel.org CommitDate: Fri, 16 May 2014 11:39:18

[tip:perf/core] perf tools: Add libdw DWARF post unwind support for ARM

2014-05-20 Thread tip-bot for Jean Pihet
Commit-ID: 97eac381b113932bd7bd4a5c3c68b18e9ff7a2a0 Gitweb: http://git.kernel.org/tip/97eac381b113932bd7bd4a5c3c68b18e9ff7a2a0 Author: Jean Pihet jean.pi...@linaro.org AuthorDate: Fri, 16 May 2014 10:41:12 +0200 Committer: Jiri Olsa jo...@kernel.org CommitDate: Fri, 16 May 2014 11:39:29

[tip:perf/core] perf tests: Introduce perf_regs_load function on ARM

2014-05-20 Thread tip-bot for Jean Pihet
Commit-ID: 3418f9667e8cc4070a86215e6c12baa5bc2f2799 Gitweb: http://git.kernel.org/tip/3418f9667e8cc4070a86215e6c12baa5bc2f2799 Author: Jean Pihet jean.pi...@linaro.org AuthorDate: Fri, 16 May 2014 10:41:10 +0200 Committer: Jiri Olsa jo...@kernel.org CommitDate: Fri, 16 May 2014 11:39:05

Re: [PATCH] [RFC] ARM: perf: allow tracing with kernel tracepoints events

2014-05-19 Thread Jean Pihet
Hi Will, On 19 May 2014 17:39, Will Deacon will.dea...@arm.com wrote: Hi Jean, On Fri, May 16, 2014 at 04:01:16PM +0100, Jean Pihet wrote: When tracing with tracepoints events the IP and CPSR are set to 0, preventing the perf code to resolve the symbols: ./perf record -e kmem:kmalloc cal

[PATCH 4/4] perf tools: Add libdw DWARF post unwind support for ARM

2014-05-16 Thread Jean Pihet
Adding libdw DWARF post unwind support, which is part of elfutils-devel/libdw-dev package from version 0.158. The new code is contained in unwin-libdw.c object, and implements unwind__get_entries unwind interface function. Signed-off-by: Jean Pihet jean.pi...@linaro.org Reviewed-by: Will Deacon

[PATCH 2/4] perf tests: Introduce perf_regs_load function on ARM

2014-05-16 Thread Jean Pihet
Introducing perf_regs_load function, which is going to be used for dwarf unwind test in following patches. It takes single argument as a pointer to the regs dump buffer and populates it with current registers values. Signed-off-by: Jean Pihet jean.pi...@linaro.org Reviewed-by: Will Deacon

[PATCH 1/4] tools: perf: consolidate types.h for ARM and ARM64

2014-05-16 Thread Jean Pihet
Prevents a build breakage since commit d944c4eebcf4c0d5e5d9728fec110cbf0047ad7f 'tools: Consolidate types.h' Signed-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/arch/arm/include/perf_regs.h | 2 +- tools/perf/arch/arm64/include/perf_regs.h | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH 3/4] perf tests: Add dwarf unwind test on ARM

2014-05-16 Thread Jean Pihet
a.p.zijls...@chello.nl Cc: Arnaldo Carvalho de Melo a...@ghostprotocols.net Cc: David Ahern dsah...@gmail.com Signed-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/Makefile.perf | 2 +- tools/perf/arch/arm/Makefile | 1 + tools/perf/arch/arm/include/perf_regs.h

[PATCH] [RFC] ARM: perf: allow tracing with kernel tracepoints events

2014-05-16 Thread Jean Pihet
/arm/include/asm/kexec.h. Reported by Sneha Priya on linaro-dev, cf. http://lists.linaro.org/pipermail/linaro-dev/2014-May/017151.html Signed-off-by: Jean Pihet jean.pi...@linaro.org Cc: Will Deacon will.dea...@arm.com Reported-by: Sneha Priya sneha@hotmail.com --- arch/arm/include/asm

Re: [PATCH 3/3] perf tools: Add libdw DWARF post unwind support for ARM64

2014-05-07 Thread Jean Pihet
Hi Will, On Tue, May 6, 2014 at 7:52 PM, Will Deacon will.dea...@arm.com wrote: On Tue, May 06, 2014 at 06:41:55PM +0100, Jean Pihet wrote: Hi Will, On 6 May 2014 19:00, Will Deacon will.dea...@arm.com wrote: Hi Jean, On Tue, May 06, 2014 at 04:55:33PM +0100, Jean Pihet wrote: Adding

Re: [PATCH 3/3] perf tools: Add libdw DWARF post unwind support for ARM

2014-05-07 Thread Jean Pihet
On 6 May 2014 19:56, Will Deacon will.dea...@arm.com wrote: On Tue, May 06, 2014 at 04:26:19PM +0100, Jean Pihet wrote: Adding libdw DWARF post unwind support, which is part of elfutils-devel/libdw-dev package from version 0.158. The new code is contained in unwin-libdw.c object

Re: [PATCH 3/3] perf tools: Add libdw DWARF post unwind support for ARM

2014-05-07 Thread Jean Pihet
On 7 May 2014 12:00, Will Deacon will.dea...@arm.com wrote: On Wed, May 07, 2014 at 10:52:05AM +0100, Jean Pihet wrote: On 6 May 2014 19:56, Will Deacon will.dea...@arm.com wrote: On Tue, May 06, 2014 at 04:26:19PM +0100, Jean Pihet wrote: Adding libdw DWARF post unwind support, which

Re: [PATCH 2/3] perf tests: Add dwarf unwind test on ARM

2014-05-07 Thread Jean Pihet
Hi Jiri, On 7 May 2014 14:06, Jiri Olsa jo...@redhat.com wrote: On Tue, May 06, 2014 at 05:26:18PM +0200, Jean Pihet wrote: SNIP there's a memory leak of 'buf' already fixed fox x86: perf tests x86: Fix memory leak in sample_ustack() commit 763d7f5f2718f085bab5a9e63308349728f3ad12

[PATCH 3/3] perf tools: Add libdw DWARF post unwind support for ARM

2014-05-06 Thread Jean Pihet
Adding libdw DWARF post unwind support, which is part of elfutils-devel/libdw-dev package from version 0.158. The new code is contained in unwin-libdw.c object, and implements unwind__get_entries unwind interface function. Signed-off-by: Jean Pihet jean.pi...@linaro.org Cc: Jiri Olsa jo

[PATCH 2/3] perf tests: Add dwarf unwind test on ARM

2014-05-06 Thread Jean Pihet
Melo a...@infradead.org Cc: David Ahern dsah...@gmail.com Signed-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/Makefile.perf | 2 +- tools/perf/arch/arm/Makefile | 1 + tools/perf/arch/arm/include/perf_regs.h | 3 ++ tools/perf/arch/arm/tests/dwarf-unwind.c

[PATCH 0/3] perf tools: Add libdw DWARF post unwind support for ARM

2014-05-06 Thread Jean Pihet
Adding libdw DWARF post unwind support, which is part of elfutils-devel/libdw-dev package from version 0.158. Also includes the test suite for dwarf unwinding, by adding the arch specific test code and the perf_regs_load function. Jean Pihet (3): perf tests: Introduce perf_regs_load function

[PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM

2014-05-06 Thread Jean Pihet
Introducing perf_regs_load function, which is going to be used for dwarf unwind test in following patches. It takes single argument as a pointer to the regs dump buffer and populates it with current registers values. Signed-off-by: Jean Pihet jean.pi...@linaro.org Cc: Corey Ashford cjash

[PATCH 3/3] perf tools: Add libdw DWARF post unwind support for ARM64

2014-05-06 Thread Jean Pihet
, and implements unwind__get_entries unwind interface function. Signed-off-by: Jean Pihet jean.pi...@linaro.org Cc: Jiri Olsa jo...@redhat.com Cc: Corey Ashford cjash...@linux.vnet.ibm.com Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@kernel.org Cc: Namhyung Kim namhy...@kernel.org Cc: Paul

[PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-05-06 Thread Jean Pihet
Introducing perf_regs_load function, which is going to be used for dwarf unwind test in following patches. It takes single argument as a pointer to the regs dump buffer and populates it with current registers values, as expected by the perf built-in unwinding test. Signed-off-by: Jean Pihet

[PATCH 2/3] perf tests: Add dwarf unwind test on ARM64

2014-05-06 Thread Jean Pihet
Ahern dsah...@gmail.com Signed-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/Makefile.perf | 2 +- tools/perf/arch/arm64/Makefile | 1 + tools/perf/arch/arm64/include/perf_regs.h | 3 ++ tools/perf/arch/arm64/tests/dwarf-unwind.c | 59

[PATCH 0/3] perf tools: Add libdw DWARF post unwind support for ARM64

2014-05-06 Thread Jean Pihet
/elfutils.git/log/?h=mjw/aarch64-unwind ToDo: investigate the libdw unwinding problem with compat binaries (i.e. ARMv7 binaries running on ARMv8). Since this functionality works ok with libunwind, the problem should be in libdw compat support [3]. Jean Pihet (3): perf tests: Introduce perf_regs_load

Re: [PATCH 3/3] perf tools: Add libdw DWARF post unwind support for ARM64

2014-05-06 Thread Jean Pihet
Hi Will, On 6 May 2014 19:00, Will Deacon will.dea...@arm.com wrote: Hi Jean, On Tue, May 06, 2014 at 04:55:33PM +0100, Jean Pihet wrote: Adding libdw DWARF post unwind support, which is part of elfutils-devel/libdw-dev package from version 0.158. Note: the libdw code needs some support

Re: [PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-05-05 Thread Jean Pihet
Hi Will, On Fri, May 2, 2014 at 6:51 PM, Will Deacon will.dea...@arm.com wrote: On Fri, May 02, 2014 at 10:19:38AM +0100, Jean Pihet wrote: Hi WIll, Mark, Ping on this series. Can you please check? Is the refreshed patch OK? Fine by me, as long as it's not reused outside of this test

Re: [PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-05-02 Thread Jean Pihet
Hi WIll, Mark, Ping on this series. Can you please check? Is the refreshed patch OK? Cheers, Jean On 28 April 2014 15:12, Jean Pihet jean.pi...@linaro.org wrote: Introducing perf_regs_load function, which is going to be used for dwarf unwind test in following patches. It takes single

[tip:perf/core] perf tools ARM64: Wire up perf_regs and unwind support

2014-05-01 Thread tip-bot for Jean Pihet
Commit-ID: 8ab596afb97bc9e2f9140dc1d993e81749acff42 Gitweb: http://git.kernel.org/tip/8ab596afb97bc9e2f9140dc1d993e81749acff42 Author: Jean Pihet jean.pi...@linaro.org AuthorDate: Mon, 28 Apr 2014 14:32:33 +0200 Committer: Jiri Olsa jo...@kernel.org CommitDate: Tue, 29 Apr 2014 15:31:19

Re: [PATCH] perf: ARM64: wire up perf_regs and unwind support

2014-04-28 Thread Jean Pihet
Arnaldo, This patch hooks in the perf_regs and libunwind code for ARM64. The tools/perf/arch/arm64 is created; it contains the arch specific code for DWARF unwinding. Signed-off-by: Jean Pihet jean.pi...@linaro.org Acked-by: Will Deacon will.dea...@arm.com Ping on this patch. Can you take

[PATCH] perf: ARM64: wire up perf_regs and unwind support

2014-04-28 Thread Jean Pihet
This patch hooks in the perf_regs and libunwind code for ARM64. The tools/perf/arch/arm64 is created; it contains the arch specific code for DWARF unwinding. Signed-off-by: Jean Pihet jean.pi...@linaro.org Acked-by: Will Deacon will.dea...@arm.com --- tools/perf/arch/arm64/Makefile

Re: [PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-04-28 Thread Jean Pihet
On 22 April 2014 15:42, Mark Rutland mark.rutl...@arm.com wrote: Hi Jean, Apologies for the delay on this. On Tue, Mar 25, 2014 at 03:23:26PM +, Jean Pihet wrote: Hi Mark, On 21 March 2014 16:11, Mark Rutland mark.rutl...@arm.com wrote: Hi Jean, On Wed, Mar 19, 2014 at 09:42:33AM

[PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-04-28 Thread Jean Pihet
Introducing perf_regs_load function, which is going to be used for dwarf unwind test in following patches. It takes single argument as a pointer to the regs dump buffer and populates it with current registers values, as expected by the perf built-in unwinding test. Signed-off-by: Jean Pihet

Re: [PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-04-22 Thread Jean Pihet
Hi Mark, Will, Ping on this series. Can you please check? I Regards, Jean On 25 March 2014 16:23, Jean Pihet jean.pi...@linaro.org wrote: Hi Mark, On 21 March 2014 16:11, Mark Rutland mark.rutl...@arm.com wrote: Hi Jean, On Wed, Mar 19, 2014 at 09:42:33AM +, Jean Pihet wrote

Re: [PATCH v4 00/16] perf, persistent: Add persistent events

2014-04-22 Thread Jean Pihet
Hi Borislav, On 17 April 2014 15:21, Borislav Petkov b...@alien8.de wrote: Hi Jean, On Thu, Apr 17, 2014 at 03:17:01PM +0200, Jean Pihet wrote: Yes indeed! Ingo, Is the perf support for persistent event needed, or can this series be reviewed as is? In the meantime I am now working

Re: [PATCH v4 00/16] perf, persistent: Add persistent events

2014-04-22 Thread Jean Pihet
Hi, -- adding Fu Wei in the loop-- Fu Wei is working on the RAS daemon, which is a user of libperf. It is crucial to agree on the libperf API in order to start with the correct implementation. Jean On 22 April 2014 10:20, Jean Pihet jean.pi...@linaro.org wrote: Hi Borislav, On 17 April 2014

Re: [PATCH v4 00/16] perf, persistent: Add persistent events

2014-04-17 Thread Jean Pihet
Hi, Ping on this series. Are there some opinions or interest in this? Regards, Jean On 7 April 2014 17:04, Jean Pihet jean.pi...@linaro.org wrote: Jean Pihet jean.pi...@linaro.org: - In order to restart the discussion on the topic, here is a rebased version of Robert's latest patches (v3

Re: [PATCH v4 00/16] perf, persistent: Add persistent events

2014-04-17 Thread Jean Pihet
Hi Borislav, On 17 April 2014 14:50, Borislav Petkov b...@alien8.de wrote: On Thu, Apr 17, 2014 at 02:44:26PM +0200, Jean Pihet wrote: Hi, Ping on this series. Are there some opinions or interest in this? Just checking whether you've read my mail from 2-ish weeks ago: https

Re: [PATCH] arm64: fix !CONFIG_COMPAT build failures

2014-04-07 Thread Jean Pihet
On 7 April 2014 00:27, Catalin Marinas catalin.mari...@arm.com wrote: On Sat, Apr 05, 2014 at 03:25:49PM +0100, Mark Salter wrote: Recent arm64 builds using CONFIG_ARM64_64K_PAGES are failing with: arch/arm64/kernel/perf_regs.c: In function 'perf_reg_abi':

[PATCH v4 00/16] perf, persistent: Add persistent events

2014-04-07 Thread Jean Pihet
Jean Pihet jean.pi...@linaro.org: - In order to restart the discussion on the topic, here is a rebased version of Robert's latest patches (v3) on acme/perf/core. It has been compiled and lightly tested on ARM64. - From the latest discussion on ML the ioctls are renamed from

[PATCH 02/16] perf, mmap: Factor out try_get_event()/put_event()

2014-04-07 Thread Jean Pihet
From: Robert Richter robert.rich...@linaro.org Implement try_get_event() as counter part to put_event(). Put both in internal.h to make it available to other perf files. Signed-off-by: Robert Richter robert.rich...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean

[PATCH 14/16] perf tools: Modify event parser to update event attribute by index

2014-04-07 Thread Jean Pihet
robert.rich...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/tests/parse-events.c | 12 ++--- tools/perf/util/parse-events.c | 59 +++-- tools/perf/util/parse-events.h | 12

[PATCH 11/16] perf, persistent: Dynamically resize list of sysfs entries

2014-04-07 Thread Jean Pihet
at this also implement pevent_sysfs_unregister() which we need later for proper event removal. Signed-off-by: Robert Richter robert.rich...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- kernel/events/persistent.c | 115

[PATCH 16/16] perf tools: Retry mapping buffers readonly on EACCES

2014-04-07 Thread Jean Pihet
...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/builtin-record.c | 11 --- tools/perf/builtin-top.c| 8 ++-- tools/perf/perf.h | 1 + 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/tools

[PATCH 15/16] perf tools: Add attrnum syntax to event parser

2014-04-07 Thread Jean Pihet
-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/util/parse-events.l | 14 ++ tools/perf/util/pmu.c | 32 ++-- tools/perf/util/pmu.h | 9 ++--- tools/perf/util/pmu.l | 1 + tools/perf/util/pmu.y | 18

[PATCH 13/16] perf tools: Rename flex conditions to avoid name conflicts

2014-04-07 Thread Jean Pihet
Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/util/parse-events.l | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tools/perf/util/parse-events.l b/tools/perf/util/parse-events.l index 3432995..a5808d1 100644

[PATCH 12/16] perf, persistent: ioctl functions to control persistency

2014-04-07 Thread Jean Pihet
disconnected from the event. Thus, if there are no other users the event will be closed too after closing its file descriptor, the event then no longer exists. [ Jean Pihet: renamed PERF_EVENT_IOC_ATTACH/DETACH to PERF_EVENT_IOC_CLAIM/UNCLAIM ] Cc: Vince Weaver

[PATCH 06/16] mce, x86: Enable persistent events

2014-04-07 Thread Jean Pihet
From: Borislav Petkov b...@suse.de ... for MCEs collection. Signed-off-by: Borislav Petkov b...@suse.de [ rric: Fix build error for no-tracepoints configs ] [ rric: Return proper error code. ] [ rric: No error message if perf is disabled. ] Signed-off-by: Robert Richter r...@kernel.org ---

[PATCH 08/16] perf, persistent: Exposing persistent events using sysfs

2014-04-07 Thread Jean Pihet
: Jiri Olsa jo...@redhat.com Cc: Namhyung Kim namhy...@kernel.org Signed-off-by: Robert Richter robert.rich...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- .../testing/sysfs-bus-event_source-devices-format | 43 kernel

[PATCH 09/16] perf, persistent: Use unique event ids

2014-04-07 Thread Jean Pihet
Signed-off-by: Jean Pihet jean.pi...@linaro.org --- kernel/events/persistent.c | 40 ++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/kernel/events/persistent.c b/kernel/events/persistent.c index 6578acf..d04827c 100644 --- a/kernel/events

[PATCH 10/16] perf, persistent: Implement reference counter for events

2014-04-07 Thread Jean Pihet
From: Robert Richter robert.rich...@linaro.org We need this later for proper event removal. Signed-off-by: Robert Richter robert.rich...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- kernel/events/persistent.c | 27

[PATCH 07/16] perf, persistent: Implementing a persistent pmu

2014-04-07 Thread Jean Pihet
robert.rich...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- kernel/events/persistent.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/kernel/events/persistent.c b/kernel/events/persistent.c index

[PATCH 05/16] perf: Add persistent events

2014-04-07 Thread Jean Pihet
Borislav Petkov b...@alien8.de. Cc: Borislav Petkov b...@alien8.de Cc: Fengguang Wu fengguang...@intel.com Cc: Jiri Olsa jo...@redhat.com Signed-off-by: Robert Richter robert.rich...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- include

[PATCH 04/16] perf, mmap: Factor out perf_get_fd()

2014-04-07 Thread Jean Pihet
From: Robert Richter robert.rich...@linaro.org This new function creates a new fd for an event. We need this later to get a fd from a persistent event. Signed-off-by: Robert Richter robert.rich...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi

[PATCH 03/16] perf, mmap: Factor out perf_alloc/free_rb()

2014-04-07 Thread Jean Pihet
Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- kernel/events/core.c | 77 +--- kernel/events/internal.h | 3 ++ 2 files changed, 50 insertions(+), 30 deletions(-) diff --git a/kernel/events/core.c b

[PATCH 01/16] perf, mmap: Factor out ring_buffer_detach_all()

2014-04-07 Thread Jean Pihet
From: Robert Richter robert.rich...@linaro.org Factor out a function to detach all events from a ringbuffer. No functional changes. Signed-off-by: Robert Richter robert.rich...@linaro.org Signed-off-by: Robert Richter r...@kernel.org Signed-off-by: Jean Pihet jean.pi...@linaro.org --- kernel

Re: [PATCH] perf tools: Pick up libdw without explicit LIBDW_DIR

2014-04-04 Thread Jean Pihet
unwind' [1] from Josh Boyer. Jiri, your pick ;-) [1] http://www.spinics.net/lists/kernel/msg1716729.html FWIW: Acked-by: Jean Pihet jean.pi...@linaro.org Ram -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

Re: [PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-04-04 Thread Jean Pihet
Hi Mark, ping on this series, see comment below. On 25 March 2014 16:23, Jean Pihet jean.pi...@linaro.org wrote: Hi Mark, On 21 March 2014 16:11, Mark Rutland mark.rutl...@arm.com wrote: Hi Jean, On Wed, Mar 19, 2014 at 09:42:33AM +, Jean Pihet wrote: Introducing perf_regs_load

Re: [PATCH v3 00/12] perf, persistent: Add persistent events

2014-03-28 Thread Jean Pihet
Hi, Now that the feature is resurfacing, I would like to take over the task for persistent events. What is the status of the series, is it close to acceptance? AFAICS the patch RFC 12/12 was under discussion, mainly about the naming of the ioctls (latest e-mail is in favor of CLAIM/UNCLAIM).

Re: [PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-03-25 Thread Jean Pihet
Hi Mark, On 21 March 2014 16:11, Mark Rutland mark.rutl...@arm.com wrote: Hi Jean, On Wed, Mar 19, 2014 at 09:42:33AM +, Jean Pihet wrote: Introducing perf_regs_load function, which is going to be used for dwarf unwind test in following patches. It takes single argument as a pointer

[PATCH 0/3] perf tools: Add libdw DWARF post unwind support for ARM64

2014-03-19 Thread Jean Pihet
/elfutils.git/log/?h=mjw/aarch64-unwind Jean Pihet (3): perf tests: Introduce perf_regs_load function on ARM64 perf tests: Add dwarf unwind test on ARM64 perf tools: Add libdw DWARF post unwind support for ARM64 tools/perf/Makefile.perf | 2 +- tools/perf/arch/arm64/Makefile

[PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-03-19 Thread Jean Pihet
Introducing perf_regs_load function, which is going to be used for dwarf unwind test in following patches. It takes single argument as a pointer to the regs dump buffer and populates it with current registers values, as expected by the perf built-in unwinding test. Signed-off-by: Jean Pihet

[PATCH 3/3] perf tools: Add libdw DWARF post unwind support for ARM64

2014-03-19 Thread Jean Pihet
, and implements unwind__get_entries unwind interface function. Signed-off-by: Jean Pihet jean.pi...@linaro.org Cc: Jiri Olsa jo...@redhat.com Cc: Corey Ashford cjash...@linux.vnet.ibm.com Cc: Frederic Weisbecker fweis...@gmail.com Cc: Ingo Molnar mi...@kernel.org Cc: Namhyung Kim namhy...@kernel.org Cc: Paul

[PATCH 2/3] perf tests: Add dwarf unwind test on ARM64

2014-03-19 Thread Jean Pihet
: David Ahern dsah...@gmail.com Signed-off-by: Jean Pihet jean.pi...@linaro.org --- tools/perf/Makefile.perf | 2 +- tools/perf/arch/arm64/Makefile | 1 + tools/perf/arch/arm64/include/perf_regs.h | 3 ++ tools/perf/arch/arm64/tests/dwarf-unwind.c | 59

[tip:perf/core] ARM64, perf: Add support for perf registers API

2014-03-13 Thread tip-bot for Jean Pihet
Commit-ID: 1acfb01a43db9d8cde2d4c1d51746bae0b46b06b Gitweb: http://git.kernel.org/tip/1acfb01a43db9d8cde2d4c1d51746bae0b46b06b Author: Jean Pihet jean.pi...@linaro.org AuthorDate: Mon, 3 Feb 2014 19:18:27 +0100 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 12 Mar 2014 13:45:28

[tip:perf/core] ARM64, perf: Add support for frame pointer unwinding in compat mode

2014-03-13 Thread tip-bot for Jean Pihet
Commit-ID: a0cb501f9de391077eb18e4675e2be95c3dcf84c Gitweb: http://git.kernel.org/tip/a0cb501f9de391077eb18e4675e2be95c3dcf84c Author: Jean Pihet jean.pi...@linaro.org AuthorDate: Mon, 3 Feb 2014 19:18:28 +0100 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 12 Mar 2014 13:45:29

[tip:perf/core] ARM64, perf: Support dwarf unwinding in compat mode

2014-03-13 Thread tip-bot for Jean Pihet
Commit-ID: 5aa158b708b07bab47147aa164e3948e8a4c548f Gitweb: http://git.kernel.org/tip/5aa158b708b07bab47147aa164e3948e8a4c548f Author: Jean Pihet jean.pi...@linaro.org AuthorDate: Mon, 3 Feb 2014 19:18:29 +0100 Committer: Ingo Molnar mi...@kernel.org CommitDate: Wed, 12 Mar 2014 13:45:30

Re: [PATCH] perf: ARM64: wire up perf_regs and unwind support

2014-03-13 Thread Jean Pihet
On 13 March 2014 11:22, Catalin Marinas catalin.mari...@arm.com wrote: On Thu, Mar 13, 2014 at 10:12:02AM +, Will Deacon wrote: On Wed, Mar 12, 2014 at 05:45:20PM +, Catalin Marinas wrote: On Wed, Mar 12, 2014 at 01:42:51PM +0100, Jean Pihet wrote: On 13 February 2014 18:06, Jean

Re: [PATCH v6 0/3] perf: AARCH64 arch support

2014-03-13 Thread Jean Pihet
Hi Catalin, On 12 March 2014 18:31, Catalin Marinas catalin.mari...@arm.com wrote: On Wed, Mar 12, 2014 at 11:19:48AM +0100, Jean Pihet wrote: Gentle ping on this series? Which tree is it supposed to land in? Since it's only arm64 stuff and Will already acked the series, I'm going to merge

Re: [PATCH v6 0/3] perf: AARCH64 arch support

2014-03-12 Thread Jean Pihet
12, 2014 at 08:47:17AM +, Jean Pihet wrote: Ping on the series. Is this OK for inclusion? I already acked it all, but you'll need to wait until the next merge window since this isn't a fix. Will -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body

Re: [PATCH] perf: ARM64: wire up perf_regs and unwind support

2014-03-12 Thread Jean Pihet
Hi, On 13 February 2014 18:06, Jean Pihet jean.pi...@linaro.org wrote: This patch hooks in the perf_regs and libunwind code for ARM64. The tools/perf/arch/arm64 is created; it contains the arch specific code for DWARF unwinding. Signed-off-by: Jean Pihet jean.pi...@linaro.org Acked

  1   2   3   >