Re: [PATCH] perf probe: Fix getting the kernel map

2019-03-11 Thread Masami Hiramatsu
On Fri, 8 Mar 2019 11:39:26 -0300 Arnaldo Carvalho de Melo wrote: > Em Mon, Mar 04, 2019 at 03:13:21PM +0200, Adrian Hunter escreveu: > > Since commit 4d99e4136580 ("perf machine: Workaround missing maps for x86 > > PTI entry trampolines"), perf tools has been creating more than one kernel > >

Re: [PATCH] perf probe: Fix getting the kernel map

2019-03-08 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 04, 2019 at 03:13:21PM +0200, Adrian Hunter escreveu: > Since commit 4d99e4136580 ("perf machine: Workaround missing maps for x86 > PTI entry trampolines"), perf tools has been creating more than one kernel > map, however 'perf probe' assumed there could be only one. > > Fix by using

[PATCH] perf probe: Fix getting the kernel map

2019-03-04 Thread Adrian Hunter
Since commit 4d99e4136580 ("perf machine: Workaround missing maps for x86 PTI entry trampolines"), perf tools has been creating more than one kernel map, however 'perf probe' assumed there could be only one. Fix by using machine__kernel_map() to get the main kernel map. Signed-off-by: Adrian