[PATCH v5 13/16] perf report: cache srclines for callchain nodes

2017-10-09 Thread Milian Wolff
l.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/dso.c | 2 ++ tools/perf/util/dso.h | 1 + tools/perf/util/mac

[PATCH v5 09/16] perf report: compare symbol name for inlined frames when matching

2017-10-09 Thread Milian Wolff
Jin Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c index b0ff56332134..3f1431bf71bd 100644 --- a/tools/perf/util/callchain.c +++ b/tools/perf/util

[PATCH v5 13/16] perf report: cache srclines for callchain nodes

2017-10-09 Thread Milian Wolff
: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/dso.c | 2 ++ tools/perf/util/dso.h | 1 + tools/perf/util/machine.c | 17 +--- tools/perf/util/srcline.c | 66 +++ tools/perf/util/srcline.h | 7 + 5 files changed, 90

[PATCH v5 12/16] perf report: cache failed lookups of inlined frames

2017-10-09 Thread Milian Wolff
.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/machine.c | 15 +++ tools/perf/util/srcline.c | 16 +--- 2 files changed, 8 insertions(+), 23 deleti

[PATCH v5 12/16] perf report: cache failed lookups of inlined frames

2017-10-09 Thread Milian Wolff
#1.66% of all branches ( +- 0.19% ) 0.114222393 seconds time elapsed ( +- 1.19% ) ~ Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools

[PATCH v5 15/16] perf util: enable handling of inlined frames by default

2017-10-09 Thread Milian Wolff
.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Cc: Ingo Molnar <mi...@kernel.org> Suggested-by: Ingo Molnar <mi...@kernel.org> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/Documentation/perf-report.txt |

[PATCH v5 15/16] perf util: enable handling of inlined frames by default

2017-10-09 Thread Milian Wolff
Molnar Signed-off-by: Milian Wolff --- tools/perf/Documentation/perf-report.txt | 3 ++- tools/perf/Documentation/perf-script.txt | 3 ++- tools/perf/util/symbol.c | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/perf/Documentation/perf-report.txt b

[PATCH v5 10/16] perf report: compare symbol name for inlined frames when sorting

2017-10-09 Thread Milian Wolff
[.] cabs ~ Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com>

[PATCH v5 10/16] perf report: compare symbol name for inlined frames when sorting

2017-10-09 Thread Milian Wolff
(inlined) 12.29% 0.00% cpp-inlining cpp-inlining [.] std::linear_congruential_engine::operator() (inlined) 0.52% 0.52% cpp-inlining libm-2.25.so [.] cabs ~ Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-b

[PATCH v5 11/16] perf report: properly handle branch count in match_chain

2017-10-09 Thread Milian Wolff
Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/callchain.c | 117 +++- 1 file changed, 60

[PATCH v5 11/16] perf report: properly handle branch count in match_chain

2017-10-09 Thread Milian Wolff
Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 117 +++- 1 file changed, 60 insertions(+), 57 deletions(-) diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c index 3f1431bf71bd..782de047c902 100644 --- a/tools/perf/util

[PATCH v5 16/16] perf util: use correct IP mapping to find srcline for hist entry

2017-10-09 Thread Milian Wolff
Carvalho de Melo <a...@redhat.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Yao Jin <yao@linux.intel.com> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> Note how most of the large offset values are now gone. Most notably, we g

[PATCH v5 07/16] perf report: mark inlined frames in output by " (inlined)" suffix

2017-10-09 Thread Milian Wolff
hello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/callchain.c | 10 +++--- tools/perf/util/sort.c | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/callchain.c

[PATCH v5 16/16] perf util: use correct IP mapping to find srcline for hist entry

2017-10-09 Thread Milian Wolff
: Yao Jin Cc: Jiri Olsa Signed-off-by: Milian Wolff Note how most of the large offset values are now gone. Most notably, we get proper srcline resolution for the random.h and complex headers. --- tools/perf/util/sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/

[PATCH v5 07/16] perf report: mark inlined frames in output by " (inlined)" suffix

2017-10-09 Thread Milian Wolff
. This allows us to efficiently lookup the symbol for a given name without first having to append the suffix before the lookup. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 10

[PATCH v5 14/16] perf report: use srcline from callchain for hist entries

2017-10-09 Thread Milian Wolff
o Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/per

[PATCH v5 14/16] perf report: use srcline from callchain for hist entries

2017-10-09 Thread Milian Wolff
hypot_finite+163 4.13% 0.00% [.] __hypot_finite __hypot_finite+18446603487892193443 ... ~ Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- t

Re: [PATCH v4 14/15] perf report: use srcline from callchain for hist entries

2017-10-09 Thread Milian Wolff
On Donnerstag, 5. Oktober 2017 06:08:29 CEST Namhyung Kim wrote: > On Sun, Oct 01, 2017 at 04:30:59PM +0200, Milian Wolff wrote: > > This also removes the symbol name from the srcline column, > > more on this below. > > > > This ensures we use the correct srcline, whi

Re: [PATCH v4 14/15] perf report: use srcline from callchain for hist entries

2017-10-09 Thread Milian Wolff
On Donnerstag, 5. Oktober 2017 06:08:29 CEST Namhyung Kim wrote: > On Sun, Oct 01, 2017 at 04:30:59PM +0200, Milian Wolff wrote: > > This also removes the symbol name from the srcline column, > > more on this below. > > > > This ensures we use the correct srcline, whi

Re: [PATCH v4 12/15] perf report: cache failed lookups of inlined frames

2017-10-08 Thread Milian Wolff
On Donnerstag, 5. Oktober 2017 05:43:38 CEST Namhyung Kim wrote: > On Sun, Oct 01, 2017 at 04:30:57PM +0200, Milian Wolff wrote: > > When no inlined frames could be found for a given address, > > we did not store this information anywhere. That means we > > potentially do the

Re: [PATCH v4 12/15] perf report: cache failed lookups of inlined frames

2017-10-08 Thread Milian Wolff
On Donnerstag, 5. Oktober 2017 05:43:38 CEST Namhyung Kim wrote: > On Sun, Oct 01, 2017 at 04:30:57PM +0200, Milian Wolff wrote: > > When no inlined frames could be found for a given address, > > we did not store this information anywhere. That means we > > potentially do the

Re: [PATCH v4 05/15] perf report: create real callchain entries for inlined frames

2017-10-08 Thread Milian Wolff
On Donnerstag, 5. Oktober 2017 05:35:29 CEST Namhyung Kim wrote: > On Sun, Oct 01, 2017 at 04:30:50PM +0200, Milian Wolff wrote: > > The inline_node structs are maintained by the new dso->inlines > > tree. This in turn keeps ownership of the fake symbols and > > src

Re: [PATCH v4 05/15] perf report: create real callchain entries for inlined frames

2017-10-08 Thread Milian Wolff
On Donnerstag, 5. Oktober 2017 05:35:29 CEST Namhyung Kim wrote: > On Sun, Oct 01, 2017 at 04:30:50PM +0200, Milian Wolff wrote: > > The inline_node structs are maintained by the new dso->inlines > > tree. This in turn keeps ownership of the fake symbols and > > src

Re: [PATCH v4 03/15] perf util: refactor inline_list to operate on symbols

2017-10-08 Thread Milian Wolff
On Donnerstag, 5. Oktober 2017 03:56:13 CEST Namhyung Kim wrote: > Hi Milian, > > On Sun, Oct 01, 2017 at 04:30:48PM +0200, Milian Wolff wrote: > > This is a requirement to create real callchain entries for inlined > > frames. > > > > Since the list of inlines u

Re: [PATCH v4 03/15] perf util: refactor inline_list to operate on symbols

2017-10-08 Thread Milian Wolff
On Donnerstag, 5. Oktober 2017 03:56:13 CEST Namhyung Kim wrote: > Hi Milian, > > On Sun, Oct 01, 2017 at 04:30:48PM +0200, Milian Wolff wrote: > > This is a requirement to create real callchain entries for inlined > > frames. > > > > Since the list of inlines u

[PATCH v4 01/15] perf report: remove code to handle inline frames from browsers

2017-10-01 Thread Milian Wolff
.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/ui/browsers/hists.c | 180 +++- tools/perf/ui/stdio/hist.c | 77 + tools/perf/util/evsel_fprintf.c |

[PATCH v4 02/15] perf util: store srcline in callchain_cursor_node

2017-10-01 Thread Milian Wolff
of the srcline and handle deletion properly. Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-o

[PATCH v4 01/15] perf report: remove code to handle inline frames from browsers

2017-10-01 Thread Milian Wolff
The follow-up commits will make inline frames first-class citizens in the callchain, thereby obsoleting all of this special code. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/ui/browsers/hists.c

[PATCH v4 02/15] perf util: store srcline in callchain_cursor_node

2017-10-01 Thread Milian Wolff
of the srcline and handle deletion properly. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 31 +-- tools/perf/util/callchain.h | 6 -- tools/perf

[PATCH v4 03/15] perf util: refactor inline_list to operate on symbols

2017-10-01 Thread Milian Wolff
inline_node__delete. Cc: Jiri Olsa <jo...@redhat.com> Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by:

[PATCH v4 03/15] perf util: refactor inline_list to operate on symbols

2017-10-01 Thread Milian Wolff
inline_node__delete. Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/srcline.c | 93 --- tools/perf/util/srcline.h | 7 +++- tools/perf/util/symbol.h

[PATCH v4 06/15] perf report: fall-back to function name comparison for -g srcline

2017-10-01 Thread Milian Wolff
| | | --0.85%--cabs ~ Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo.

[PATCH v4 04/15] perf util: refactor inline_list to store srcline string directly

2017-10-01 Thread Milian Wolff
t;yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/srcline.c | 54 +++ tools/perf/util/srcline.h | 3 +-- 2 files changed, 41 insertions(+), 16 deletions(-) diff --git a/tools/perf/util/s

[PATCH v4 05/15] perf report: create real callchain entries for inlined frames

2017-10-01 Thread Milian Wolff
: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao....@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/dso.c | 3 +++ tools/perf/util/dso.h | 1 + tools/perf/util/machine.c | 37 ++

[PATCH v4 06/15] perf report: fall-back to function name comparison for -g srcline

2017-10-01 Thread Milian Wolff
| | | --0.85%--cabs ~ Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tools/perf/util/callchain.c b

[PATCH v4 04/15] perf util: refactor inline_list to store srcline string directly

2017-10-01 Thread Milian Wolff
inline node and reuse it for different callchain entries. Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/srcline.c | 54 +++ tools/perf/util

[PATCH v4 05/15] perf report: create real callchain entries for inlined frames

2017-10-01 Thread Milian Wolff
mes. The advantage of this approach is that all existing users of the callchain API can now transparently display inlined frames without having to patch their code. Cc: Jiri Olsa Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wo

[PATCH v4 10/15] perf report: compare symbol name for inlined frames when sorting

2017-10-01 Thread Milian Wolff
[.] cabs ~ Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com>

[PATCH v4 10/15] perf report: compare symbol name for inlined frames when sorting

2017-10-01 Thread Milian Wolff
(inlined) 12.29% 0.00% cpp-inlining cpp-inlining [.] std::linear_congruential_engine::operator() (inlined) 0.52% 0.52% cpp-inlining libm-2.25.so [.] cabs ~ Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-b

[PATCH v4 07/15] perf report: mark inlined frames in output by " (inlined)" suffix

2017-10-01 Thread Milian Wolff
hello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/callchain.c | 10 +++--- tools/perf/util/sort.c | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/callchain.c

[PATCH v4 08/15] perf script: mark inlined frames and do not print DSO for them

2017-10-01 Thread Milian Wolff
c: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/evsel_fprintf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v4 07/15] perf report: mark inlined frames in output by " (inlined)" suffix

2017-10-01 Thread Milian Wolff
. This allows us to efficiently lookup the symbol for a given name without first having to append the suffix before the lookup. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 10

[PATCH v4 08/15] perf script: mark inlined frames and do not print DSO for them

2017-10-01 Thread Milian Wolff
Signed-off-by: Milian Wolff --- tools/perf/util/evsel_fprintf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/evsel_fprintf.c b/tools/perf/util/evsel_fprintf.c index f2c6c5ee11e8..5b9e89257aa7 100644 --- a/tools/perf/util/evsel_fprintf.c +++ b/tools

[PATCH v4 09/15] perf report: compare symbol name for inlined frames when matching

2017-10-01 Thread Milian Wolff
std::abs (inlined) std::__complex_abs (inlined) ~ Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com&

[PATCH v4 09/15] perf report: compare symbol name for inlined frames when matching

2017-10-01 Thread Milian Wolff
Jin Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c index c6a033ba2b73..261823ae2ea4 100644 --- a/tools/perf/util/callchain.c +++ b/tools/perf/util

[PATCH v4 11/15] perf report: properly handle branch count in match_chain

2017-10-01 Thread Milian Wolff
Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/callchain.c | 117 +++- 1 file changed, 60

[PATCH v4 11/15] perf report: properly handle branch count in match_chain

2017-10-01 Thread Milian Wolff
Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 117 +++- 1 file changed, 60 insertions(+), 57 deletions(-) diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c index 261823ae2ea4..48d2869025b3 100644 --- a/tools/perf/util

[PATCH v4 13/15] perf report: cache srclines for callchain nodes

2017-10-01 Thread Milian Wolff
l.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/dso.c | 2 ++ tools/perf/util/dso.h | 1 + tools/perf/util/mac

[PATCH v4 13/15] perf report: cache srclines for callchain nodes

2017-10-01 Thread Milian Wolff
: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/dso.c | 2 ++ tools/perf/util/dso.h | 1 + tools/perf/util/machine.c | 17 +--- tools/perf/util/srcline.c | 66 +++ tools/perf/util/srcline.h | 7 + 5 files changed, 90

[PATCH v4 12/15] perf report: cache failed lookups of inlined frames

2017-10-01 Thread Milian Wolff
.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/machine.c | 15 +++ tools/perf/util/srcline.c | 18 ++ 2 files changed, 9 insertions(+), 24 d

[PATCH v4 12/15] perf report: cache failed lookups of inlined frames

2017-10-01 Thread Milian Wolff
#1.66% of all branches ( +- 0.19% ) 0.114222393 seconds time elapsed ( +- 1.19% ) ~ Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools

[PATCH v4 15/15] perf util: enable handling of inlined frames by default

2017-10-01 Thread Milian Wolff
.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Cc: Ingo Molnar <mi...@kernel.org> Suggested-by: Ingo Molnar <mi...@kernel.org> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/Documentation/perf-report.txt |

[PATCH v4 15/15] perf util: enable handling of inlined frames by default

2017-10-01 Thread Milian Wolff
Molnar Signed-off-by: Milian Wolff --- tools/perf/Documentation/perf-report.txt | 3 ++- tools/perf/Documentation/perf-script.txt | 3 ++- tools/perf/util/symbol.c | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/perf/Documentation/perf-report.txt b

[PATCH v4 14/15] perf report: use srcline from callchain for hist entries

2017-10-01 Thread Milian Wolff
o Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/per

[PATCH v4 14/15] perf report: use srcline from callchain for hist entries

2017-10-01 Thread Milian Wolff
hypot_finite+163 4.13% 0.00% [.] __hypot_finite __hypot_finite+18446603487892193443 ... ~ Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- t

[PATCH v4 00/15] generate full callchain cursor entries for inlined frames

2017-10-01 Thread Milian Wolff
initial patch up into two to simplify reviewing. It also adds a comment to clarify the lifetime handling of fake symbols and aliased non-fake symbols, based on the feedback by Namhyung. v2 fixes some issues reported by Namhyung or found by me in further testing, adds caching and enables inline frame

[PATCH v4 00/15] generate full callchain cursor entries for inlined frames

2017-10-01 Thread Milian Wolff
of fake symbols and aliased non-fake symbols, based on the feedback by Namhyung. v2 fixes some issues reported by Namhyung or found by me in further testing, adds caching and enables inline frames by default. Milian Wolff (15): perf report: remove code to handle inline frames from browsers perf u

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-10-01 Thread Milian Wolff
On Dienstag, 19. September 2017 14:27:19 CEST Jiri Olsa wrote: > On Wed, Sep 06, 2017 at 03:54:51PM +0200, Milian Wolff wrote: > > SNIP > > > +void inlines__tree_insert(struct rb_root *tree, struct inline_node > > *inlines) +{ > > + struct rb_node **p = >rb_nod

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-10-01 Thread Milian Wolff
On Dienstag, 19. September 2017 14:27:19 CEST Jiri Olsa wrote: > On Wed, Sep 06, 2017 at 03:54:51PM +0200, Milian Wolff wrote: > > SNIP > > > +void inlines__tree_insert(struct rb_root *tree, struct inline_node > > *inlines) +{ > > + struct rb_node **p = >rb_nod

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-10-01 Thread Milian Wolff
On Dienstag, 19. September 2017 14:27:27 CEST Jiri Olsa wrote: > On Wed, Sep 06, 2017 at 03:54:51PM +0200, Milian Wolff wrote: > > The inlined frames use a fake symbol that is maintained by > > inline_node which in turn is maintained by the dso->inlines tree. > > This tree

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-10-01 Thread Milian Wolff
On Dienstag, 19. September 2017 14:27:27 CEST Jiri Olsa wrote: > On Wed, Sep 06, 2017 at 03:54:51PM +0200, Milian Wolff wrote: > > The inlined frames use a fake symbol that is maintained by > > inline_node which in turn is maintained by the dso->inlines tree. > > This tree

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-10-01 Thread Milian Wolff
On Dienstag, 19. September 2017 14:27:11 CEST Jiri Olsa wrote: > On Wed, Sep 06, 2017 at 03:54:51PM +0200, Milian Wolff wrote: > > SNIP > > > -struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr); > > +// parse inlined frames for the given address

Re: [PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-10-01 Thread Milian Wolff
On Dienstag, 19. September 2017 14:27:11 CEST Jiri Olsa wrote: > On Wed, Sep 06, 2017 at 03:54:51PM +0200, Milian Wolff wrote: > > SNIP > > > -struct inline_node *dso__parse_addr_inlines(struct dso *dso, u64 addr); > > +// parse inlined frames for the given address

Re: [PATCH v3 01/13] perf report: remove code to handle inline frames from browsers

2017-09-18 Thread Milian Wolff
On Monday, September 18, 2017 1:56:19 PM CEST Jiri Olsa wrote: > On Wed, Sep 06, 2017 at 03:54:49PM +0200, Milian Wolff wrote: > > The follow-up commits will make inline frames first-class citizens > > in the callchain, thereby obsoleting all of this special code. > > s

Re: [PATCH v3 01/13] perf report: remove code to handle inline frames from browsers

2017-09-18 Thread Milian Wolff
On Monday, September 18, 2017 1:56:19 PM CEST Jiri Olsa wrote: > On Wed, Sep 06, 2017 at 03:54:49PM +0200, Milian Wolff wrote: > > The follow-up commits will make inline frames first-class citizens > > in the callchain, thereby obsoleting all of this special code. > > s

Re: [PATCH 0/3] perf script: Add script per-event-dump support

2017-09-13 Thread Milian Wolff
ve in your commit message is outdated: https://github.com/brendangregg/FlameGraph/commit/ 4b7b3169ed303d33fb710e1b9de235b84cc119d3 I.e. with a recent FlameGraph, you can generate flame graphs for different events just fine, without any intermediate step. Cheers -- Milian Wolff | milian.wo...@kdab.com

Re: [PATCH 0/3] perf script: Add script per-event-dump support

2017-09-13 Thread Milian Wolff
ve in your commit message is outdated: https://github.com/brendangregg/FlameGraph/commit/ 4b7b3169ed303d33fb710e1b9de235b84cc119d3 I.e. with a recent FlameGraph, you can generate flame graphs for different events just fine, without any intermediate step. Cheers -- Milian Wolff | milian.wo...@kdab.com

[tip:perf/urgent] perf stat: Wait for the correct child

2017-09-13 Thread tip-bot for Milian Wolff
Commit-ID: dfc9eec7716cc0a9f7eb743c703d74cd2d6085a0 Gitweb: http://git.kernel.org/tip/dfc9eec7716cc0a9f7eb743c703d74cd2d6085a0 Author: Milian Wolff <milian.wo...@kdab.com> AuthorDate: Tue, 12 Sep 2017 17:25:23 +0200 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/urgent] perf stat: Wait for the correct child

2017-09-13 Thread tip-bot for Milian Wolff
Commit-ID: dfc9eec7716cc0a9f7eb743c703d74cd2d6085a0 Gitweb: http://git.kernel.org/tip/dfc9eec7716cc0a9f7eb743c703d74cd2d6085a0 Author: Milian Wolff AuthorDate: Tue, 12 Sep 2017 17:25:23 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 12 Sep 2017 12:49:13 -0300 perf stat

[tip:perf/urgent] perf tools: Support running perf binaries with a dash in their name

2017-09-13 Thread tip-bot for Milian Wolff
Commit-ID: 3192f1ed3dd3a6883d5ae31bf2ff69984ea0fd54 Gitweb: http://git.kernel.org/tip/3192f1ed3dd3a6883d5ae31bf2ff69984ea0fd54 Author: Milian Wolff <milian.wo...@kdab.com> AuthorDate: Mon, 11 Sep 2017 13:14:22 +0200 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/urgent] perf tools: Support running perf binaries with a dash in their name

2017-09-13 Thread tip-bot for Milian Wolff
Commit-ID: 3192f1ed3dd3a6883d5ae31bf2ff69984ea0fd54 Gitweb: http://git.kernel.org/tip/3192f1ed3dd3a6883d5ae31bf2ff69984ea0fd54 Author: Milian Wolff AuthorDate: Mon, 11 Sep 2017 13:14:22 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 12 Sep 2017 12:48:54 -0300 perf tools

[tip:perf/urgent] perf tests: Fix compile when libunwind's unwind.h is available

2017-09-13 Thread tip-bot for Milian Wolff
Commit-ID: df90cc41d662ad5f700afc042df43e57ce1ed0a4 Gitweb: http://git.kernel.org/tip/df90cc41d662ad5f700afc042df43e57ce1ed0a4 Author: Milian Wolff <milian.wo...@kdab.com> AuthorDate: Wed, 6 Sep 2017 17:02:09 +0200 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> CommitD

[tip:perf/urgent] perf tests: Fix compile when libunwind's unwind.h is available

2017-09-13 Thread tip-bot for Milian Wolff
Commit-ID: df90cc41d662ad5f700afc042df43e57ce1ed0a4 Gitweb: http://git.kernel.org/tip/df90cc41d662ad5f700afc042df43e57ce1ed0a4 Author: Milian Wolff AuthorDate: Wed, 6 Sep 2017 17:02:09 +0200 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 12 Sep 2017 12:34:02 -0300 perf tests

[PATCH] perf stat: wait for the correct child

2017-09-12 Thread Milian Wolff
1 context-switches #0.003 M/sec 0 cpu-migrations#0.000 K/sec 50 page-faults #0.140 M/sec 1269602 cycles#3.554 GHz 654278 instructions #0

[PATCH] perf stat: wait for the correct child

2017-09-12 Thread Milian Wolff
1 context-switches #0.003 M/sec 0 cpu-migrations#0.000 K/sec 50 page-faults #0.140 M/sec 1269602 cycles#3.554 GHz 654278 instructions #0.5

Re: [PATCH] perf: support running perf binaries with a dash in their name

2017-09-11 Thread Milian Wolff
On Monday, September 11, 2017 4:33:12 PM CEST Arnaldo Carvalho de Melo wrote: > Em Mon, Sep 11, 2017 at 07:08:18AM -0700, David Ahern escreveu: > > On 9/11/17 4:14 AM, Milian Wolff wrote: > > > Previously the part behind "perf-" was interpreted as an internal >

Re: [PATCH] perf: support running perf binaries with a dash in their name

2017-09-11 Thread Milian Wolff
On Monday, September 11, 2017 4:33:12 PM CEST Arnaldo Carvalho de Melo wrote: > Em Mon, Sep 11, 2017 at 07:08:18AM -0700, David Ahern escreveu: > > On 9/11/17 4:14 AM, Milian Wolff wrote: > > > Previously the part behind "perf-" was interpreted as an internal >

perf AppImage - perf stat fails to count child process

2017-09-11 Thread Milian Wolff
structions #0.81 insn per cycle # 0.76 stalled cycles per insn 145,166 branches # 259.321 M/sec 7,726 branch-misses #5.

perf AppImage - perf stat fails to count child process

2017-09-11 Thread Milian Wolff
structions #0.81 insn per cycle # 0.76 stalled cycles per insn 145,166 branches # 259.321 M/sec 7,726 branch-misses #5.

[PATCH] perf: support running perf binaries with a dash in their name

2017-09-11 Thread Milian Wolff
y...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao....@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/perf.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/perf/perf.c b/t

[PATCH] perf: support running perf binaries with a dash in their name

2017-09-11 Thread Milian Wolff
g newline at the end of the error message. With this patch applied, the above works properly: ~ $ ./perf-custom-suffix list List of pre-defined events (to be used in -e): ... ~ Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Mili

Re: [PATCH 1/4] perf ui progress: Make sure we always define step value

2017-09-09 Thread Milian Wolff
On Freitag, 8. September 2017 15:26:42 CEST Arnaldo Carvalho de Melo wrote: > Em Fri, Sep 08, 2017 at 03:16:37PM +0200, Milian Wolff escreveu: > > On Freitag, 8. September 2017 14:05:07 CEST Jiri Olsa wrote: > > > +++ b/tools/perf/ui/progress.c > > > @@ -25,7 +25,7

Re: [PATCH 1/4] perf ui progress: Make sure we always define step value

2017-09-09 Thread Milian Wolff
On Freitag, 8. September 2017 15:26:42 CEST Arnaldo Carvalho de Melo wrote: > Em Fri, Sep 08, 2017 at 03:16:37PM +0200, Milian Wolff escreveu: > > On Freitag, 8. September 2017 14:05:07 CEST Jiri Olsa wrote: > > > +++ b/tools/perf/ui/progress.c > > > @@ -25,7 +25,7

Re: [PATCH 1/4] perf ui progress: Make sure we always define step value

2017-09-08 Thread Milian Wolff
id ui_progress__init(struct ui_progress *p, u64 total, const char *title) > { > p->curr = 0; > - p->next = p->step = total / 16; > + p->next = p->step = total / 16 ?: 1; > p->total = total; > p->title = title; This is a GNU extension,

Re: [PATCH 1/4] perf ui progress: Make sure we always define step value

2017-09-08 Thread Milian Wolff
ui_progress *p, u64 total, const char *title) > { > p->curr = 0; > - p->next = p->step = total / 16; > + p->next = p->step = total / 16 ?: 1; > p->total = total; > p->title = title; This is a GNU extension, does this compile with clang

Re: [PATCH v2 03/14] perf report: create real callchain entries for inlined frames

2017-09-07 Thread Milian Wolff
But ilist->symbol is a dangling pointer so accessing ->inlined would > be a problem, no? Sorry, but I can't follow. Why would it be a dangling pointer? Note, again, that I've tested this with both valgrind and ASAN and neither reports any issues about this code. > > If you have sugge

Re: [PATCH v2 03/14] perf report: create real callchain entries for inlined frames

2017-09-07 Thread Milian Wolff
But ilist->symbol is a dangling pointer so accessing ->inlined would > be a problem, no? Sorry, but I can't follow. Why would it be a dangling pointer? Note, again, that I've tested this with both valgrind and ASAN and neither reports any issues about this code. > > If you have sugge

[PATCH] perf tests: fix compile when libunwind's unwind.h is available

2017-09-06 Thread Milian Wolff
nested extern declaration of ‘unwind__get_entries’ [-Werror=nested-externs] ~~ Fix this compile error by specificing an explicit include of perf's unwind.h in the util folder. Signed-off-by: Milian Wolff <milian.wo...@kdab.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Ki

[PATCH] perf tests: fix compile when libunwind's unwind.h is available

2017-09-06 Thread Milian Wolff
nested extern declaration of ‘unwind__get_entries’ [-Werror=nested-externs] ~~ Fix this compile error by specificing an explicit include of perf's unwind.h in the util folder. Signed-off-by: Milian Wolff Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Cc: Jiri Ols

[PATCH v3 01/13] perf report: remove code to handle inline frames from browsers

2017-09-06 Thread Milian Wolff
.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/ui/browsers/hists.c | 180 +++- tools/perf/ui/stdio/hist.c | 77 + tools/perf/util/evsel_fprintf.c |

[PATCH v3 01/13] perf report: remove code to handle inline frames from browsers

2017-09-06 Thread Milian Wolff
The follow-up commits will make inline frames first-class citizens in the callchain, thereby obsoleting all of this special code. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/ui/browsers/hists.c

[PATCH v3 04/13] perf report: fall-back to function name comparison for -g srcline

2017-09-06 Thread Milian Wolff
| | | --0.85%--cabs ~ Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo.

[PATCH v3 04/13] perf report: fall-back to function name comparison for -g srcline

2017-09-06 Thread Milian Wolff
| | | --0.85%--cabs ~ Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tools/perf/util/callchain.c b

[PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-09-06 Thread Milian Wolff
llo.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/dso.c | 2 + tools/perf/util/dso.h | 1 + tools/perf/util/machine.c | 37 + tools/perf/util/srcline.c | 186

[PATCH v3 03/13] perf report: create real callchain entries for inlined frames

2017-09-06 Thread Milian Wolff
all existing users of the callchain API can now transparently display inlined frames without having to patch their code. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/dso.c | 2 + tools/perf/util/ds

[PATCH v3 06/13] perf script: mark inlined frames and do not print DSO for them

2017-09-06 Thread Milian Wolff
c: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/evsel_fprintf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v3 06/13] perf script: mark inlined frames and do not print DSO for them

2017-09-06 Thread Milian Wolff
Signed-off-by: Milian Wolff --- tools/perf/util/evsel_fprintf.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/evsel_fprintf.c b/tools/perf/util/evsel_fprintf.c index f2c6c5ee11e8..5b9e89257aa7 100644 --- a/tools/perf/util/evsel_fprintf.c +++ b/tools

[PATCH v3 05/13] perf report: mark inlined frames in output by " (inlined)" suffix

2017-09-06 Thread Milian Wolff
hello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-off-by: Milian Wolff <milian.wo...@kdab.com> --- tools/perf/util/callchain.c | 10 +++--- tools/perf/util/sort.c | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/callchain.c

[PATCH v3 05/13] perf report: mark inlined frames in output by " (inlined)" suffix

2017-09-06 Thread Milian Wolff
. This allows us to efficiently lookup the symbol for a given name without first having to append the suffix before the lookup. Cc: Arnaldo Carvalho de Melo Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Yao Jin Signed-off-by: Milian Wolff --- tools/perf/util/callchain.c | 10

[PATCH v3 02/13] perf util: store srcline in callchain_cursor_node

2017-09-06 Thread Milian Wolff
of the srcline and handle deletion properly. Cc: Arnaldo Carvalho de Melo <a...@redhat.com> Cc: David Ahern <dsah...@gmail.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Peter Zijlstra <a.p.zijls...@chello.nl> Cc: Yao Jin <yao@linux.intel.com> Signed-o

<    1   2   3   4   5   6   >