Re: [PATCH v4] perf annotate: Fix missing number of samples for source_line_samples

2017-03-28 Thread Taeung Song
On 03/28/2017 10:48 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 28, 2017 at 09:12:05PM +0900, Taeung Song escreveu: The option 'show-total-period' works fine without a option '-l'. But if running 'perf annotate --stdio -l --show-total-period', you can see a problem showing only zero '0

Re: [PATCH v4] perf annotate: Fix missing number of samples for source_line_samples

2017-03-28 Thread Taeung Song
On 03/28/2017 10:48 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 28, 2017 at 09:12:05PM +0900, Taeung Song escreveu: The option 'show-total-period' works fine without a option '-l'. But if running 'perf annotate --stdio -l --show-total-period', you can see a problem showing only zero '0

[PATCH v4] perf annotate: Fix missing number of samples for source_line_samples

2017-03-28 Thread Taeung Song
(%rdx),%esi 1 :40082a: mov$0x0,%edx ... Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Cc: Martin Liska <mli...@suse.cz> Fixes: 0c4a5bcea460 ("perf annotate: Display total number of samples with --show-total-period"

[PATCH v4] perf annotate: Fix missing number of samples for source_line_samples

2017-03-28 Thread Taeung Song
(%rdx),%esi 1 :40082a: mov$0x0,%edx ... Cc: Namhyung Kim Cc: Jiri Olsa Cc: Martin Liska Fixes: 0c4a5bcea460 ("perf annotate: Display total number of samples with --show-total-period") Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 6 --

Re: [PATCH v3 3/3] perf annotate: Fix missing number of samples

2017-03-28 Thread Taeung Song
Good morning, Arnaldo :) On 03/28/2017 03:26 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 27, 2017 at 04:10:38PM +0900, Taeung Song escreveu: If running 'perf annotate --stdio -l --show-total-period', you can see a problem showing only zero '0' for number of samples. Before: $ perf

Re: [PATCH v3 3/3] perf annotate: Fix missing number of samples

2017-03-28 Thread Taeung Song
Good morning, Arnaldo :) On 03/28/2017 03:26 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 27, 2017 at 04:10:38PM +0900, Taeung Song escreveu: If running 'perf annotate --stdio -l --show-total-period', you can see a problem showing only zero '0' for number of samples. Before: $ perf

Re: [PATCH v3 1/3] perf annotate: Fix a bug reading link name from a build-id file

2017-03-28 Thread Taeung Song
On 03/28/2017 03:01 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 27, 2017 at 04:10:36PM +0900, Taeung Song escreveu: It is wrong way to read link name from a build-id file. Because a build-id file is not symbolic link but build-id directory of it is symbolic link, so fix it. Ok, applied

Re: [PATCH v3 1/3] perf annotate: Fix a bug reading link name from a build-id file

2017-03-28 Thread Taeung Song
On 03/28/2017 03:01 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 27, 2017 at 04:10:36PM +0900, Taeung Song escreveu: It is wrong way to read link name from a build-id file. Because a build-id file is not symbolic link but build-id directory of it is symbolic link, so fix it. Ok, applied

[tip:perf/core] perf annotate: Fix a bug of division by zero when calculating percent

2017-03-28 Thread tip-bot for Taeung Song
Commit-ID: 2e933b1274dc89cd1629f6c7fd9bf952248d84c2 Gitweb: http://git.kernel.org/tip/2e933b1274dc89cd1629f6c7fd9bf952248d84c2 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Mon, 27 Mar 2017 16:10:37 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/core] perf annotate: Fix a bug of division by zero when calculating percent

2017-03-28 Thread tip-bot for Taeung Song
Commit-ID: 2e933b1274dc89cd1629f6c7fd9bf952248d84c2 Gitweb: http://git.kernel.org/tip/2e933b1274dc89cd1629f6c7fd9bf952248d84c2 Author: Taeung Song AuthorDate: Mon, 27 Mar 2017 16:10:37 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 27 Mar 2017 15:04:56 -0300 perf annotate

[tip:perf/core] perf annotate: Fix a bug following symbolic link of a build-id file

2017-03-28 Thread tip-bot for Taeung Song
Commit-ID: 6ebd2547dd24daf95a21b2bc59931de8502afcc3 Gitweb: http://git.kernel.org/tip/6ebd2547dd24daf95a21b2bc59931de8502afcc3 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Mon, 27 Mar 2017 16:10:36 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/core] perf annotate: Fix a bug following symbolic link of a build-id file

2017-03-28 Thread tip-bot for Taeung Song
Commit-ID: 6ebd2547dd24daf95a21b2bc59931de8502afcc3 Gitweb: http://git.kernel.org/tip/6ebd2547dd24daf95a21b2bc59931de8502afcc3 Author: Taeung Song AuthorDate: Mon, 27 Mar 2017 16:10:36 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 27 Mar 2017 14:58:20 -0300 perf annotate

[PATCH v3 0/3] perf annotate: Simple bugfixes

2017-03-27 Thread Taeung Song
Hi, perf-annotate has little bugs so I fix them. I'd appreciate some feedback on this patchset. :) Thanks, Taeung v3: - rebased on current acme/perf/core v2: - more clearly commit log messages (Arnaldo) - rebased on current acme/perf/core Taeung Song (3): perf annotate: Fix a bug reading

[PATCH v3 0/3] perf annotate: Simple bugfixes

2017-03-27 Thread Taeung Song
Hi, perf-annotate has little bugs so I fix them. I'd appreciate some feedback on this patchset. :) Thanks, Taeung v3: - rebased on current acme/perf/core v2: - more clearly commit log messages (Arnaldo) - rebased on current acme/perf/core Taeung Song (3): perf annotate: Fix a bug reading

[PATCH v3 2/3] perf annotate: Fix a bug of division by zero when calculating percent

2017-03-27 Thread Taeung Song
cles (529 samples) - : ... a.c:260.570.004.23 : 40081a: mov%edi,-0x24(%rbp) a.c:260.000.009.86 : 40081d: mov%rsi,-0x30(%rbp) ... Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com&

[PATCH v3 2/3] perf annotate: Fix a bug of division by zero when calculating percent

2017-03-27 Thread Taeung Song
cles (529 samples) - : ... a.c:260.570.004.23 : 40081a: mov%edi,-0x24(%rbp) a.c:260.000.009.86 : 40081d: mov%rsi,-0x30(%rbp) ... Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/ut

[PATCH v3 1/3] perf annotate: Fix a bug reading link name from a build-id file

2017-03-27 Thread Taeung Song
sa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 3d0263e..6dc9148 100644 --- a/tools/perf/util/anno

[PATCH v3 1/3] perf annotate: Fix a bug reading link name from a build-id file

2017-03-27 Thread Taeung Song
/75c7d197c951659d1c1b8b5fd49bcdf8f3f8b1/elf To correctly read link name of build-id, use the build-id dir path that is a symbolic link, instead of the above build-id file name like below. /root/.debug/.build-id/4f/75c7d197c951659d1c1b8b5fd49bcdf8f3f8b1 Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song

[PATCH v3 3/3] perf annotate: Fix missing number of samples

2017-03-27 Thread Taeung Song
: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 6 -- tools/perf/util/annotate.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/annot

[PATCH v3 3/3] perf annotate: Fix missing number of samples

2017-03-27 Thread Taeung Song
: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 6 -- tools/perf/util/annotate.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 11af5f0..a37032b 100644 --- a/tools/perf

[tip:perf/core] perf annotate: More exactly grep -v of the objdump command

2017-03-24 Thread tip-bot for Taeung Song
Commit-ID: e7cb9de211ebb2924d87fdeb77e50d74c2e673d1 Gitweb: http://git.kernel.org/tip/e7cb9de211ebb2924d87fdeb77e50d74c2e673d1 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Mon, 20 Mar 2017 11:56:57 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/core] perf annotate: More exactly grep -v of the objdump command

2017-03-24 Thread tip-bot for Taeung Song
Commit-ID: e7cb9de211ebb2924d87fdeb77e50d74c2e673d1 Gitweb: http://git.kernel.org/tip/e7cb9de211ebb2924d87fdeb77e50d74c2e673d1 Author: Taeung Song AuthorDate: Mon, 20 Mar 2017 11:56:57 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 21 Mar 2017 15:42:25 -0300 perf annotate

[PATCH v2 2/3] perf annotate: Fix a bug of division by zero when calculating percent

2017-03-22 Thread Taeung Song
cles (529 samples) - : ... a.c:260.570.004.23 : 40081a: mov%edi,-0x24(%rbp) a.c:260.000.009.86 : 40081d: mov%rsi,-0x30(%rbp) ... Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com&

[PATCH v2 2/3] perf annotate: Fix a bug of division by zero when calculating percent

2017-03-22 Thread Taeung Song
cles (529 samples) - : ... a.c:260.570.004.23 : 40081a: mov%edi,-0x24(%rbp) a.c:260.000.009.86 : 40081d: mov%rsi,-0x30(%rbp) ... Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/ut

[PATCH v2 1/3] perf annotate: Fix a bug reading link name from a build-id file

2017-03-22 Thread Taeung Song
sa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 22cd1db..20de715 100644 --- a/tools/perf/util/anno

[PATCH v2 1/3] perf annotate: Fix a bug reading link name from a build-id file

2017-03-22 Thread Taeung Song
/75c7d197c951659d1c1b8b5fd49bcdf8f3f8b1/elf To correctly read link name of build-id, use the build-id dir path that is a symbolic link, instead of the above build-id file name like below. /root/.debug/.build-id/4f/75c7d197c951659d1c1b8b5fd49bcdf8f3f8b1 Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song

[PATCH v2 3/3] perf annotate: Fix missing number of samples

2017-03-22 Thread Taeung Song
: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 6 -- tools/perf/util/annotate.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/annot

[PATCH v2 3/3] perf annotate: Fix missing number of samples

2017-03-22 Thread Taeung Song
: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 6 -- tools/perf/util/annotate.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index db3ebf1..23f36cb 100644 --- a/tools/perf

[PATCH v2 0/3] perf annotate: Bugfixes

2017-03-22 Thread Taeung Song
Hi, perf-annotate has little bugs so I fix them. I'd appreciate some feedback on this patchset. :) Thanks, Taeung v2: - more clearly commit log messages (Arnaldo) - rebased on current acme/perf/core Taeung Song (3): perf annotate: Fix a bug reading link name from a build-id file perf

[PATCH v2 0/3] perf annotate: Bugfixes

2017-03-22 Thread Taeung Song
Hi, perf-annotate has little bugs so I fix them. I'd appreciate some feedback on this patchset. :) Thanks, Taeung v2: - more clearly commit log messages (Arnaldo) - rebased on current acme/perf/core Taeung Song (3): perf annotate: Fix a bug reading link name from a build-id file perf

Re: [PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-22 Thread Taeung Song
On 03/21/2017 11:21 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 21, 2017 at 11:14:07AM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Mar 21, 2017 at 07:20:20AM +0900, Taeung Song escreveu: And, I tested by perf-stat on the same situation as below. $ perf stat -e "{cycles

Re: [PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-22 Thread Taeung Song
On 03/21/2017 11:21 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 21, 2017 at 11:14:07AM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Mar 21, 2017 at 07:20:20AM +0900, Taeung Song escreveu: And, I tested by perf-stat on the same situation as below. $ perf stat -e "{cycles

Re: [PATCH 4/4] perf annotate: More exactly grep -v of the objdump command

2017-03-22 Thread Taeung Song
On 03/22/2017 03:32 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 21, 2017 at 03:29:50PM -0300, Arnaldo Carvalho de Melo escreveu: Em Wed, Mar 22, 2017 at 01:19:49AM +0900, Taeung Song escreveu: On 03/21/2017 11:37 PM, Arnaldo Carvalho de Melo wrote: +++ b/tools/perf/util/annotate.c

Re: [PATCH 4/4] perf annotate: More exactly grep -v of the objdump command

2017-03-22 Thread Taeung Song
On 03/22/2017 03:32 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 21, 2017 at 03:29:50PM -0300, Arnaldo Carvalho de Melo escreveu: Em Wed, Mar 22, 2017 at 01:19:49AM +0900, Taeung Song escreveu: On 03/21/2017 11:37 PM, Arnaldo Carvalho de Melo wrote: +++ b/tools/perf/util/annotate.c

Re: [PATCH 4/4] perf annotate: More exactly grep -v of the objdump command

2017-03-21 Thread Taeung Song
Thank you for your review :) On 03/21/2017 11:37 PM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 20, 2017 at 11:56:57AM +0900, Taeung Song escreveu: grep -v "file name" in the objdump command cause a side effect eliminating filename:linenr of output of 'objdump -l' if the object

Re: [PATCH 4/4] perf annotate: More exactly grep -v of the objdump command

2017-03-21 Thread Taeung Song
Thank you for your review :) On 03/21/2017 11:37 PM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 20, 2017 at 11:56:57AM +0900, Taeung Song escreveu: grep -v "file name" in the objdump command cause a side effect eliminating filename:linenr of output of 'objdump -l' if the object

Re: [PATCH 4/4] perf annotate: More exactly grep -v of the objdump command

2017-03-21 Thread Taeung Song
Thank you for your review :) On 03/21/2017 11:37 PM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 20, 2017 at 11:56:57AM +0900, Taeung Song escreveu: grep -v "file name" in the objdump command cause a side effect eliminating filename:linenr of output of 'objdump -l' if the object

Re: [PATCH 4/4] perf annotate: More exactly grep -v of the objdump command

2017-03-21 Thread Taeung Song
Thank you for your review :) On 03/21/2017 11:37 PM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 20, 2017 at 11:56:57AM +0900, Taeung Song escreveu: grep -v "file name" in the objdump command cause a side effect eliminating filename:linenr of output of 'objdump -l' if the object

Re: [PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-21 Thread Taeung Song
Hi, On 03/21/2017 11:21 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 21, 2017 at 11:14:07AM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Mar 21, 2017 at 07:20:20AM +0900, Taeung Song escreveu: And, I tested by perf-stat on the same situation as below. $ perf stat -e "{cycles

Re: [PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-21 Thread Taeung Song
Hi, On 03/21/2017 11:21 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 21, 2017 at 11:14:07AM -0300, Arnaldo Carvalho de Melo escreveu: Em Tue, Mar 21, 2017 at 07:20:20AM +0900, Taeung Song escreveu: And, I tested by perf-stat on the same situation as below. $ perf stat -e "{cycles

Re: [PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-20 Thread Taeung Song
addr[i] / h->sum; This patch just add if statement 'if (h->sum)' to handle the case that h->sum is zero. But now I wonder how h->sum could be zero.. I'll dig the problem to find the root cause of it, too ! Thanks, Taeung On 03/21/2017 07:11 AM, Taeung Song wrote: Hi Arnaldo :)

Re: [PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-20 Thread Taeung Song
addr[i] / h->sum; This patch just add if statement 'if (h->sum)' to handle the case that h->sum is zero. But now I wonder how h->sum could be zero.. I'll dig the problem to find the root cause of it, too ! Thanks, Taeung On 03/21/2017 07:11 AM, Taeung Song wrote: Hi Arnaldo :)

Re: [PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-20 Thread Taeung Song
an0.00 old_pack_knapsack.c:38 16.37-nan0.00 old_pack_knapsack.c:37 Thanks, Taeung On 03/21/2017 03:15 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 20, 2017 at 11:56:55AM +0900, Taeung Song escreveu: Currently perf-annotate with --print-line can print -nan(0x8) because o

Re: [PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-20 Thread Taeung Song
an0.00 old_pack_knapsack.c:38 16.37-nan0.00 old_pack_knapsack.c:37 Thanks, Taeung On 03/21/2017 03:15 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 20, 2017 at 11:56:55AM +0900, Taeung Song escreveu: Currently perf-annotate with --print-line can print -nan(0x8) because o

[PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-19 Thread Taeung Song
Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index fc91c6b..9bb43cd 100644 --- a/

[PATCH 2/4] perf annotate: Avoid division by zero when calculating percent

2017-03-19 Thread Taeung Song
samples) - : ... a.c:260.570.004.23 : 40081a: mov%edi,-0x24(%rbp) a.c:260.000.009.86 : 40081d: mov%rsi,-0x30(%rbp) ... Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by

[PATCH 3/4] perf annotate: Fix missing setting nr samples on source_line

2017-03-19 Thread Taeung Song
2 :400824: mov-0x30(%rbp),%rdx 0 :400828: mov(%rdx),%esi 1 :40082a: mov$0x0,%edx ... Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com&g

[PATCH 1/4] perf annotate: Use build-id dir when reading link name

2017-03-19 Thread Taeung Song
<namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 273f2

[PATCH 3/4] perf annotate: Fix missing setting nr samples on source_line

2017-03-19 Thread Taeung Song
2 :400824: mov-0x30(%rbp),%rdx 0 :400828: mov(%rdx),%esi 1 :40082a: mov$0x0,%edx ... Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 6 -- tools/perf/util/annotate.h | 2 +- 2

[PATCH 1/4] perf annotate: Use build-id dir when reading link name

2017-03-19 Thread Taeung Song
: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 273f21f..fc91c6b 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c

[PATCH 0/4] perf annotate: Bugfixes

2017-03-19 Thread Taeung Song
Hi, perf-annotate has little bugs so I fix them. I'd appreciate some feedback on this patchset. :) Thanks, Taeung Taeung Song (4): perf annotate: Use build-id dir when reading link name perf annotate: Avoid division by zero when calculating percent perf annotate: Fix missing setting nr

[PATCH 0/4] perf annotate: Bugfixes

2017-03-19 Thread Taeung Song
Hi, perf-annotate has little bugs so I fix them. I'd appreciate some feedback on this patchset. :) Thanks, Taeung Taeung Song (4): perf annotate: Use build-id dir when reading link name perf annotate: Avoid division by zero when calculating percent perf annotate: Fix missing setting nr

[PATCH 4/4] perf annotate: More exactly grep -v of the objdump command

2017-03-19 Thread Taeung Song
format elf64-x86-64" After: $ objdump -l -d -S -C /home/taeung/hello | grep /home/taeung/hello: Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 2 +- 1 file cha

[PATCH 4/4] perf annotate: More exactly grep -v of the objdump command

2017-03-19 Thread Taeung Song
format elf64-x86-64" After: $ objdump -l -d -S -C /home/taeung/hello | grep /home/taeung/hello: Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.

[PATCH v3 6/7] perf annotate: Introduce --source-only option

2017-03-09 Thread Taeung Song
73 } Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/builtin-annotate.c | 2 + tools/perf/ui/browsers/annotate.c | 5 - tools/perf/util/annotate.c| 299 ++

[PATCH v3 6/7] perf annotate: Introduce --source-only option

2017-03-09 Thread Taeung Song
a Signed-off-by: Taeung Song --- tools/perf/builtin-annotate.c | 2 + tools/perf/ui/browsers/annotate.c | 5 - tools/perf/util/annotate.c| 299 +- tools/perf/util/annotate.h| 22 +++ tools/perf/util/symbol.c | 1 + tools/perf/

[PATCH v3 7/7] perf annotate: Support the new source code view for TUI

2017-03-09 Thread Taeung Song
< 0) |break; | 23.21 |*long_val = (*long_val << 4) | hex_val; |p++; |} | 1.79 |return p - ptr; Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by

[PATCH v3 7/7] perf annotate: Support the new source code view for TUI

2017-03-09 Thread Taeung Song
< 0) |break; | 23.21 |*long_val = (*long_val << 4) | hex_val; |p++; |} | 1.79 |return p - ptr; Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/Documentation/perfconfig.

[PATCH v3 4/7] perf annotate: More exactly grep -v in symbol__disassemble()

2017-03-09 Thread Taeung Song
liminating filename:linenr of output of 'objdump -l' so fix it. Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/

[PATCH v3 2/7] perf annotate: Avoid division by zero when calculating percent

2017-03-09 Thread Taeung Song
Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index fc91c6b..9bb43cd 100644 --- a/

[PATCH v3 4/7] perf annotate: More exactly grep -v in symbol__disassemble()

2017-03-09 Thread Taeung Song
liminating filename:linenr of output of 'objdump -l' so fix it. Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 63130ec..e49eb7e 100644 -

[PATCH v3 2/7] perf annotate: Avoid division by zero when calculating percent

2017-03-09 Thread Taeung Song
samples) - : ... a.c:260.570.004.23 : 40081a: mov%edi,-0x24(%rbp) a.c:260.000.009.86 : 40081d: mov%rsi,-0x30(%rbp) ... Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by

[PATCH v3 5/7] perf annotate: Get correct line numbers matched with addr

2017-03-09 Thread Taeung Song
: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index e49eb7e..a50d949 100644 --- a/tools/perf/uti

[PATCH v3 5/7] perf annotate: Get correct line numbers matched with addr

2017-03-09 Thread Taeung Song
-by: Taeung Song --- tools/perf/util/annotate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index e49eb7e..a50d949 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c @@ -823,11 +823,11 @@ static struct

[PATCH v3 3/7] perf annotate: Fix missing setting nr samples on source_line

2017-03-09 Thread Taeung Song
2 :400824: mov-0x30(%rbp),%rdx 0 :400828: mov(%rdx),%esi 1 :40082a: mov$0x0,%edx ... Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com&g

[PATCH v3 3/7] perf annotate: Fix missing setting nr samples on source_line

2017-03-09 Thread Taeung Song
2 :400824: mov-0x30(%rbp),%rdx 0 :400828: mov(%rdx),%esi 1 :40082a: mov$0x0,%edx ... Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 6 -- tools/perf/util/annotate.h | 2 +- 2

[PATCH v3 1/7] perf annotate: Use build-id dir when reading link name

2017-03-09 Thread Taeung Song
<namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 273f2

[PATCH v3 1/7] perf annotate: Use build-id dir when reading link name

2017-03-09 Thread Taeung Song
: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 273f21f..fc91c6b 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c

[PATCH v3 0/7] perf annotate: Fixes & Introduce --source-only and new source code view

2017-03-09 Thread Taeung Song
of asm per a line' on the new source code view. If you agree the new source code view, I keep going to do! Taeung Song (7): perf annotate: Use build-id dir when reading link name perf annotate: Avoid division by zero when calculating percent perf annotate: Fix missing setting nr samples on s

[PATCH v3 0/7] perf annotate: Fixes & Introduce --source-only and new source code view

2017-03-09 Thread Taeung Song
of asm per a line' on the new source code view. If you agree the new source code view, I keep going to do! Taeung Song (7): perf annotate: Use build-id dir when reading link name perf annotate: Avoid division by zero when calculating percent perf annotate: Fix missing setting nr samples on s

Re: [PATCH v2 1/3] perf annotate: Get correct line numbers matched with addr

2017-03-02 Thread Taeung Song
On 03/03/2017 11:40 AM, Namhyung Kim wrote: + Andi Kleen who wrote the code. On Thu, Mar 02, 2017 at 03:05:14PM +0900, Taeung Song wrote: On 03/01/2017 10:17 PM, Namhyung Kim wrote: Hi Taeung, On Wed, Mar 01, 2017 at 04:59:51AM +0900, Taeung Song wrote: Currently perf-annotate show

Re: [PATCH v2 1/3] perf annotate: Get correct line numbers matched with addr

2017-03-02 Thread Taeung Song
On 03/03/2017 11:40 AM, Namhyung Kim wrote: + Andi Kleen who wrote the code. On Thu, Mar 02, 2017 at 03:05:14PM +0900, Taeung Song wrote: On 03/01/2017 10:17 PM, Namhyung Kim wrote: Hi Taeung, On Wed, Mar 01, 2017 at 04:59:51AM +0900, Taeung Song wrote: Currently perf-annotate show

Re: [PATCH v2 1/3] perf annotate: Get correct line numbers matched with addr

2017-03-01 Thread Taeung Song
On 03/01/2017 10:17 PM, Namhyung Kim wrote: Hi Taeung, On Wed, Mar 01, 2017 at 04:59:51AM +0900, Taeung Song wrote: Currently perf-annotate show wrong line numbers. For example, Actual source code is as below ... 21 }; 22 23 unsigned int limited_wgt; 24 25 unsigned int

Re: [PATCH v2 1/3] perf annotate: Get correct line numbers matched with addr

2017-03-01 Thread Taeung Song
On 03/01/2017 10:17 PM, Namhyung Kim wrote: Hi Taeung, On Wed, Mar 01, 2017 at 04:59:51AM +0900, Taeung Song wrote: Currently perf-annotate show wrong line numbers. For example, Actual source code is as below ... 21 }; 22 23 unsigned int limited_wgt; 24 25 unsigned int

Re: [PATCH v2 2/3] perf annotate: Introduce the new source code view

2017-03-01 Thread Taeung Song
Hi, Peter On 03/02/2017 12:07 AM, Peter Zijlstra wrote: On Wed, Mar 01, 2017 at 11:56:39PM +0900, Namhyung Kim wrote: It's a kind of user experience issue. We provide the asm-only and asm+source annotation, and I think it'd be nice to add source-only option. And I remember that it was

Re: [PATCH v2 2/3] perf annotate: Introduce the new source code view

2017-03-01 Thread Taeung Song
Hi, Peter On 03/02/2017 12:07 AM, Peter Zijlstra wrote: On Wed, Mar 01, 2017 at 11:56:39PM +0900, Namhyung Kim wrote: It's a kind of user experience issue. We provide the asm-only and asm+source annotation, and I think it'd be nice to add source-only option. And I remember that it was

[PATCH v2 2/3] perf annotate: Introduce the new source code view

2017-02-28 Thread Taeung Song
c: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/builtin-annotate.c | 2 +- tools/perf/ui/browsers/annotate.c | 5 - tools/perf/util/annotate.c| 235 +- tools/perf/util/annotate.h

[PATCH v2 2/3] perf annotate: Introduce the new source code view

2017-02-28 Thread Taeung Song
; 0.00 : 60 12.20 : 61 if (knapsack_list[wgt].maxprice < maxprice) 0.00 : 62 knapsack_list[wgt].maxprice = maxprice; 0.00 : 63 } 0.00 : 64 } 0.00 : 65 } Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-

[PATCH v2 3/3] perf annotate: Support the new source code view for TUI

2017-02-28 Thread Taeung Song
│59 maxprice = get_cond_maxprice(wgt, jewelry); Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/ui/browsers/annotate.c | 170 -- tools/

[PATCH v2 3/3] perf annotate: Support the new source code view for TUI

2017-02-28 Thread Taeung Song
│59 maxprice = get_cond_maxprice(wgt, jewelry); Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/ui/browsers/annotate.c | 170 -- tools/perf/util/annotate.h| 1 + 2 files changed, 128 insertions(+), 43 deleti

[PATCH v2 0/3] perf annotate: Introduce the new source code view

2017-02-28 Thread Taeung Song
-S') So fix them regarding wrong line numbers and Introduce new source_code collecting actual code, not depending on 'objdump -S'. I'd appreciate some feedback. Thanks, Taeung v2: - contains the new source code view (Namhyung) Taeung Song (3): perf annotate: Get correct line numbers matched

[PATCH v2 1/3] perf annotate: Get correct line numbers matched with addr

2017-02-28 Thread Taeung Song
source code view. Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 59 +++--- 1 file changed, 35 insertions(+), 24 deletions(-) diff

[PATCH v2 0/3] perf annotate: Introduce the new source code view

2017-02-28 Thread Taeung Song
-S') So fix them regarding wrong line numbers and Introduce new source_code collecting actual code, not depending on 'objdump -S'. I'd appreciate some feedback. Thanks, Taeung v2: - contains the new source code view (Namhyung) Taeung Song (3): perf annotate: Get correct line numbers matched

[PATCH v2 1/3] perf annotate: Get correct line numbers matched with addr

2017-02-28 Thread Taeung Song
source code view. Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 59 +++--- 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 273f21f

Re: [PATCH 4/4] perf annotate: Introduce source_code to collect actual code

2017-02-22 Thread Taeung Song
On 02/22/2017 08:27 PM, Namhyung Kim wrote: On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song <treeze.tae...@gmail.com> wrote: The output of perf-annotate has a problem. It is so confusing that the output is mixed with both source code and assembly code. IMHO, we need readable annotate view

Re: [PATCH 4/4] perf annotate: Introduce source_code to collect actual code

2017-02-22 Thread Taeung Song
On 02/22/2017 08:27 PM, Namhyung Kim wrote: On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song wrote: The output of perf-annotate has a problem. It is so confusing that the output is mixed with both source code and assembly code. IMHO, we need readable annotate view based on source code, not mixed

Re: [PATCH 2/4] perf annotate: Align filename:linenr and more correct summary

2017-02-22 Thread Taeung Song
On 02/22/2017 08:22 PM, Namhyung Kim wrote: On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song <treeze.tae...@gmail.com> wrote: In the stdio interface, currently 'filename:linenr' infos are confusedly printed in the intervals of assembly code. So fix it. The cause was a 0.5% filter of if sta

Re: [PATCH 2/4] perf annotate: Align filename:linenr and more correct summary

2017-02-22 Thread Taeung Song
On 02/22/2017 08:22 PM, Namhyung Kim wrote: On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song wrote: In the stdio interface, currently 'filename:linenr' infos are confusedly printed in the intervals of assembly code. So fix it. The cause was a 0.5% filter of if statement. After fixed

Re: [PATCH 1/4] perf annotate: Remove needless regular expression for filename:linenr

2017-02-22 Thread Taeung Song
Hi Namhyung, On 02/22/2017 07:47 PM, Namhyung Kim wrote: Hi Taeung, On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song <treeze.tae...@gmail.com> wrote: The commit e592488c01d5 ("perf annotate: Support source line numbers in annotate") support source line numbers in annotate.

Re: [PATCH 1/4] perf annotate: Remove needless regular expression for filename:linenr

2017-02-22 Thread Taeung Song
Hi Namhyung, On 02/22/2017 07:47 PM, Namhyung Kim wrote: Hi Taeung, On Wed, Feb 22, 2017 at 7:08 PM, Taeung Song wrote: The commit e592488c01d5 ("perf annotate: Support source line numbers in annotate") support source line numbers in annotate. But we can get filename:l

[PATCH 4/4] perf annotate: Introduce source_code to collect actual code

2017-02-22 Thread Taeung Song
(sym) using addr2line() and we can handle 'struct source_code' that contains each line of code. In near future, it would be used for new annotate view based on actual source code per function(sym). Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by:

[PATCH 3/4] perf annotate: Change the method counting line numbers

2017-02-22 Thread Taeung Song
sa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 9d0aa50..acd500b 100644 ---

[PATCH 4/4] perf annotate: Introduce source_code to collect actual code

2017-02-22 Thread Taeung Song
(sym) using addr2line() and we can handle 'struct source_code' that contains each line of code. In near future, it would be used for new annotate view based on actual source code per function(sym). Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 117

[PATCH 3/4] perf annotate: Change the method counting line numbers

2017-02-22 Thread Taeung Song
Currently line numbers are wrong due to just counting according to output of 'objdump -S' So remove needless local variables (line_nr, lineno) and get correct line numbers according to each address in symbol__get_source_line(). Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song

[PATCH 2/4] perf annotate: Align filename:linenr and more correct summary

2017-02-22 Thread Taeung Song
0.21 :40081d: mov%rsi,-0x30(%rbp) Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) di

[PATCH 2/4] perf annotate: Align filename:linenr and more correct summary

2017-02-22 Thread Taeung Song
0.21 :40081d: mov%rsi,-0x30(%rbp) Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 17 ++--- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index bc54e41.

[PATCH 1/4] perf annotate: Remove needless regular expression for filename:linenr

2017-02-22 Thread Taeung Song
he problem about line numbers. Cc: Andi Kleen <a...@linux.intel.com> Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/annotate.c | 16 +--- 1 file changed, 1 inserti

[PATCH 1/4] perf annotate: Remove needless regular expression for filename:linenr

2017-02-22 Thread Taeung Song
he problem about line numbers. Cc: Andi Kleen Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 273f21f..bc54

[PATCH 0/4] perf annotate: Fixes for line numbers and Introduce source_code

2017-02-22 Thread Taeung Song
. (Current v1 don't consider improvement of performance of annotate and don't make code of annotate more compact so I'll consider them in v2) Thanks, Taeung Taeung Song (4): perf annotate: Remove needless regular expression for filename:linenr perf annotate: Align filename:linenr and more

[PATCH 0/4] perf annotate: Fixes for line numbers and Introduce source_code

2017-02-22 Thread Taeung Song
. (Current v1 don't consider improvement of performance of annotate and don't make code of annotate more compact so I'll consider them in v2) Thanks, Taeung Taeung Song (4): perf annotate: Remove needless regular expression for filename:linenr perf annotate: Align filename:linenr and more

<    1   2   3   4   5   6   7   8   9   10   >