Re: [Suggestion/Problems] perf annoate: Some problems related to the source code view and Improvement of it with line numbers

2017-02-17 Thread Taeung Song
On 02/17/2017 10:29 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Feb 17, 2017 at 11:33:29AM +0900, Taeung Song escreveu: Hi, Arnaldo :) Regarding perf annotate: 1) Problem : wrong line numbers on perf-annotate (both stdio and TUI) 2) Problem : wrong sum of overhead(percent) matching source

Re: [Suggestion/Problems] perf annoate: Some problems related to the source code view and Improvement of it with line numbers

2017-02-17 Thread Taeung Song
On 02/17/2017 10:29 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Feb 17, 2017 at 11:33:29AM +0900, Taeung Song escreveu: Hi, Arnaldo :) Regarding perf annotate: 1) Problem : wrong line numbers on perf-annotate (both stdio and TUI) 2) Problem : wrong sum of overhead(percent) matching source

Re: [Suggestion/Problems] perf annoate: Some problems related to the source code view and Improvement of it with line numbers

2017-02-16 Thread Taeung Song
readable :) ) I'll send the patchset for them, maybe it'll a bit take time. But I won't be long.. Thanks, Taeung On 02/15/2017 11:24 PM, Taeung Song wrote: On 02/15/2017 10:24 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Feb 15, 2017 at 09:34:51PM +0900, Taeung Song escreveu: > Hi all :) > >

Re: [Suggestion/Problems] perf annoate: Some problems related to the source code view and Improvement of it with line numbers

2017-02-16 Thread Taeung Song
readable :) ) I'll send the patchset for them, maybe it'll a bit take time. But I won't be long.. Thanks, Taeung On 02/15/2017 11:24 PM, Taeung Song wrote: On 02/15/2017 10:24 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Feb 15, 2017 at 09:34:51PM +0900, Taeung Song escreveu: > Hi all :) > >

Re: [Suggestion/Problems] perf annoate: Some problems related to the source code view and Improvement of it with line numbers

2017-02-15 Thread Taeung Song
On 02/15/2017 10:24 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Feb 15, 2017 at 09:34:51PM +0900, Taeung Song escreveu: > Hi all :) > > I found some problems about showing line numbers of perf-annotate. > and I have a suggestion about perf-annotate. > > Sure, I h

Re: [Suggestion/Problems] perf annoate: Some problems related to the source code view and Improvement of it with line numbers

2017-02-15 Thread Taeung Song
On 02/15/2017 10:24 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Feb 15, 2017 at 09:34:51PM +0900, Taeung Song escreveu: > Hi all :) > > I found some problems about showing line numbers of perf-annotate. > and I have a suggestion about perf-annotate. > > Sure, I h

[Suggestion/Problems] perf annoate: Some problems related to the source code view and Improvement of it with line numbers

2017-02-15 Thread Taeung Song
Hi all :) I found some problems about showing line numbers of perf-annotate. and I have a suggestion about perf-annotate. Sure, I have a plan to send the patchset about that. But I'd like to know other opinions about that before sending the patchset. :) If the user do perf-annotate, #

[Suggestion/Problems] perf annoate: Some problems related to the source code view and Improvement of it with line numbers

2017-02-15 Thread Taeung Song
Hi all :) I found some problems about showing line numbers of perf-annotate. and I have a suggestion about perf-annotate. Sure, I have a plan to send the patchset about that. But I'd like to know other opinions about that before sending the patchset. :) If the user do perf-annotate, #

[tip:perf/core] perf tools: Add missing check for failure in a zalloc() call

2017-02-10 Thread tip-bot for Taeung Song
Commit-ID: 5aa365f29867eb739cde0713f00c7d80f36e0739 Gitweb: http://git.kernel.org/tip/5aa365f29867eb739cde0713f00c7d80f36e0739 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Wed, 1 Feb 2017 21:34:05 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Commit

[tip:perf/core] perf tools: Only increase index if perf_evsel__new_idx() succeeds

2017-02-10 Thread tip-bot for Taeung Song
Commit-ID: 75fc5ae5cc53fff71041ecadeb3354a2b4c9fe42 Gitweb: http://git.kernel.org/tip/75fc5ae5cc53fff71041ecadeb3354a2b4c9fe42 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Wed, 1 Feb 2017 21:34:04 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Commit

[tip:perf/core] perf tools: Add missing check for failure in a zalloc() call

2017-02-10 Thread tip-bot for Taeung Song
Commit-ID: 5aa365f29867eb739cde0713f00c7d80f36e0739 Gitweb: http://git.kernel.org/tip/5aa365f29867eb739cde0713f00c7d80f36e0739 Author: Taeung Song AuthorDate: Wed, 1 Feb 2017 21:34:05 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 09:41:11 -0300 perf tools: Add

[tip:perf/core] perf tools: Only increase index if perf_evsel__new_idx() succeeds

2017-02-10 Thread tip-bot for Taeung Song
Commit-ID: 75fc5ae5cc53fff71041ecadeb3354a2b4c9fe42 Gitweb: http://git.kernel.org/tip/75fc5ae5cc53fff71041ecadeb3354a2b4c9fe42 Author: Taeung Song AuthorDate: Wed, 1 Feb 2017 21:34:04 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 09:41:10 -0300 perf tools: Only

[tip:perf/core] perf tools: Use zfree() instead of ad hoc equivalent

2017-02-09 Thread tip-bot for Taeung Song
Commit-ID: 506fde11a35f39e1b44478339c41e94dfd278aa2 Gitweb: http://git.kernel.org/tip/506fde11a35f39e1b44478339c41e94dfd278aa2 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Wed, 1 Feb 2017 21:34:06 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Commit

[tip:perf/core] perf tools: Use zfree() instead of ad hoc equivalent

2017-02-09 Thread tip-bot for Taeung Song
Commit-ID: 506fde11a35f39e1b44478339c41e94dfd278aa2 Gitweb: http://git.kernel.org/tip/506fde11a35f39e1b44478339c41e94dfd278aa2 Author: Taeung Song AuthorDate: Wed, 1 Feb 2017 21:34:06 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Wed, 8 Feb 2017 09:41:11 -0300 perf tools: Use

Re: [PATCH 2/3] perf diff: Add diff.order config option

2017-02-06 Thread Taeung Song
is to set the default value of -o/--order option. Cc: Taeung Song <treeze.tae...@gmail.com> Signed-off-by: Namhyung Kim <namhy...@kernel.org> --- tools/perf/Documentation/perf-config.txt | 7 +++ tools/perf/Documentation/perf-diff.txt | 6 +- tools/perf/builtin-diff.c

Re: [PATCH 2/3] perf diff: Add diff.order config option

2017-02-06 Thread Taeung Song
is to set the default value of -o/--order option. Cc: Taeung Song Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-config.txt | 7 +++ tools/perf/Documentation/perf-diff.txt | 6 +- tools/perf/builtin-diff.c| 14 ++ 3 files changed, 26 insertions

[tip:perf/core] perf ftrace: Add ftrace.tracer config option

2017-02-01 Thread tip-bot for Taeung Song
Commit-ID: b05d1093987a78695766b71a2d723aa65b5c25c5 Gitweb: http://git.kernel.org/tip/b05d1093987a78695766b71a2d723aa65b5c25c5 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Tue, 31 Jan 2017 20:38:29 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/core] perf ftrace: Add ftrace.tracer config option

2017-02-01 Thread tip-bot for Taeung Song
Commit-ID: b05d1093987a78695766b71a2d723aa65b5c25c5 Gitweb: http://git.kernel.org/tip/b05d1093987a78695766b71a2d723aa65b5c25c5 Author: Taeung Song AuthorDate: Tue, 31 Jan 2017 20:38:29 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 31 Jan 2017 16:20:09 -0300 perf ftrace

[tip:perf/core] perf tools: Create for_each_event macro for tracepoints iteration

2017-02-01 Thread tip-bot for Taeung Song
Commit-ID: 43d41deb71fe1850264e5dd8109211683954ea14 Gitweb: http://git.kernel.org/tip/43d41deb71fe1850264e5dd8109211683954ea14 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Tue, 31 Jan 2017 20:38:28 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/core] perf tools: Create for_each_event macro for tracepoints iteration

2017-02-01 Thread tip-bot for Taeung Song
Commit-ID: 43d41deb71fe1850264e5dd8109211683954ea14 Gitweb: http://git.kernel.org/tip/43d41deb71fe1850264e5dd8109211683954ea14 Author: Taeung Song AuthorDate: Tue, 31 Jan 2017 20:38:28 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 31 Jan 2017 16:20:08 -0300 perf tools

[tip:perf/core] perf ftrace: Remove needless code setting default tracer

2017-02-01 Thread tip-bot for Taeung Song
Commit-ID: bf062bd20e6c4988a9c593824ea6bb58730b6289 Gitweb: http://git.kernel.org/tip/bf062bd20e6c4988a9c593824ea6bb58730b6289 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Thu, 26 Jan 2017 18:35:37 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/core] perf ftrace: Remove needless code setting default tracer

2017-02-01 Thread tip-bot for Taeung Song
Commit-ID: bf062bd20e6c4988a9c593824ea6bb58730b6289 Gitweb: http://git.kernel.org/tip/bf062bd20e6c4988a9c593824ea6bb58730b6289 Author: Taeung Song AuthorDate: Thu, 26 Jan 2017 18:35:37 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 26 Jan 2017 15:53:27 -0300 perf ftrace

[PATCH v3 3/4] perf tools: Use zfree() instead of free() and assigning NULL to the pointer

2017-02-01 Thread Taeung Song
Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/parse-events.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 0c3b81a..316f054 100644 --- a/tools/perf/util/parse-ev

[PATCH v3 2/4] perf tools: Fill in a lacking part no checking NULL after zalloc() in parse-events.c

2017-02-01 Thread Taeung Song
Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/parse-events.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 5d90fe7..0c3b81a 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/per

[PATCH v3 1/4] perf tools: Only increase index if perf_evsel__new_idx() succeeds

2017-02-01 Thread Taeung Song
Cc: Jiri Olsa <jo...@kernel.org> Cc: Namhyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/parse-events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/u

[PATCH v3 2/4] perf tools: Fill in a lacking part no checking NULL after zalloc() in parse-events.c

2017-02-01 Thread Taeung Song
Signed-off-by: Taeung Song --- tools/perf/util/parse-events.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 5d90fe7..0c3b81a 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c @@ -211,6

[PATCH v3 1/4] perf tools: Only increase index if perf_evsel__new_idx() succeeds

2017-02-01 Thread Taeung Song
Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/util/parse-events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 3c876b8..5d90fe7 100644 --- a/tools/perf/util/parse-events.c

[PATCH v3 3/4] perf tools: Use zfree() instead of free() and assigning NULL to the pointer

2017-02-01 Thread Taeung Song
Signed-off-by: Taeung Song --- tools/perf/util/parse-events.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 0c3b81a..316f054 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse

[PATCH v3 4/4] perf tools: Use zfree() to be more safe in parse-events.c

2017-02-01 Thread Taeung Song
Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/parse-events.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 316f054..ac47c12 100644 --- a/tools/perf/util

[PATCH v3 4/4] perf tools: Use zfree() to be more safe in parse-events.c

2017-02-01 Thread Taeung Song
Signed-off-by: Taeung Song --- tools/perf/util/parse-events.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 316f054..ac47c12 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util

[PATCH v3 0/4] Fill in lacking parts and Refactor several parts

2017-02-01 Thread Taeung Song
- Add only one macro instead of two macros (Jiri) Taeung Song (4): perf tools: Only increase index if perf_evsel__new_idx() succeeds perf tools: Fill in a lacking part no checking NULL after zalloc() in parse-events.c perf tools: Use zfree() instead of free() and assigning NULL to the

[PATCH v3 0/4] Fill in lacking parts and Refactor several parts

2017-02-01 Thread Taeung Song
- Add only one macro instead of two macros (Jiri) Taeung Song (4): perf tools: Only increase index if perf_evsel__new_idx() succeeds perf tools: Fill in a lacking part no checking NULL after zalloc() in parse-events.c perf tools: Use zfree() instead of free() and assigning NULL to the

Re: [PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded

2017-02-01 Thread Taeung Song
On 01/31/2017 10:25 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 31, 2017 at 08:38:31PM +0900, Taeung Song escreveu: Cc: Jiri Olsa <jo...@kernel.org> Cc: Namhyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> The title of this p

Re: [PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded

2017-02-01 Thread Taeung Song
On 01/31/2017 10:25 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 31, 2017 at 08:38:31PM +0900, Taeung Song escreveu: Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song The title of this patch is misleading, ambiguous. It leads one to have doubt if we were not incrementing

Re: [PATCH v2 3/4] perf tools: Check NULL after zalloc() and Use zfree() instead of free() in parse-events.c

2017-02-01 Thread Taeung Song
Sorry I'm late.. I got it! I'll send v3 with changed patches !! Thanks, Taeung On 01/31/2017 10:23 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 31, 2017 at 08:38:30PM +0900, Taeung Song escreveu: Currently there are several parts not checking NULL after allocating with zalloc() or asigning

Re: [PATCH v2 3/4] perf tools: Check NULL after zalloc() and Use zfree() instead of free() in parse-events.c

2017-02-01 Thread Taeung Song
Sorry I'm late.. I got it! I'll send v3 with changed patches !! Thanks, Taeung On 01/31/2017 10:23 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 31, 2017 at 08:38:30PM +0900, Taeung Song escreveu: Currently there are several parts not checking NULL after allocating with zalloc() or asigning

Re: [PATCH v2 2/4] perf ftrace: Add ftrace.tracer config option

2017-01-31 Thread Taeung Song
On 01/31/2017 10:15 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 31, 2017 at 09:46:28AM -0300, Arnaldo Carvalho de Melo escreveu: Also you are silently ignoring any unknown variable in this section, so if someone has this: cat ~/.perfconfig [ftrace] trace = function I.e.

Re: [PATCH v2 2/4] perf ftrace: Add ftrace.tracer config option

2017-01-31 Thread Taeung Song
On 01/31/2017 10:15 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 31, 2017 at 09:46:28AM -0300, Arnaldo Carvalho de Melo escreveu: Also you are silently ignoring any unknown variable in this section, so if someone has this: cat ~/.perfconfig [ftrace] trace = function I.e.

Re: [PATCH v2 1/4] perf tools: Create for_each_event macro for tracepoints iteration

2017-01-31 Thread Taeung Song
Hi, Arnaldo :) On 01/31/2017 09:21 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 31, 2017 at 08:38:28PM +0900, Taeung Song escreveu: Such as for_each_subsystem and for_each_event in util/parse-events.c, add new macros 'for_each_event' for easy iteration over the tracepoints in order

Re: [PATCH v2 1/4] perf tools: Create for_each_event macro for tracepoints iteration

2017-01-31 Thread Taeung Song
Hi, Arnaldo :) On 01/31/2017 09:21 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Jan 31, 2017 at 08:38:28PM +0900, Taeung Song escreveu: Such as for_each_subsystem and for_each_event in util/parse-events.c, add new macros 'for_each_event' for easy iteration over the tracepoints in order

[PATCH v2 1/4] perf tools: Create for_each_event macro for tracepoints iteration

2017-01-31 Thread Taeung Song
iri Olsa <jo...@kernel.org> Cc: Namhyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/trace-event-info.c | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/tools/perf/util/trace-e

[PATCH v2 3/4] perf tools: Check NULL after zalloc() and Use zfree() instead of free() in parse-events.c

2017-01-31 Thread Taeung Song
m> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/parse-events.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 3c876b8..87a3e5a 100644 --- a/too

[PATCH v2 1/4] perf tools: Create for_each_event macro for tracepoints iteration

2017-01-31 Thread Taeung Song
Such as for_each_subsystem and for_each_event in util/parse-events.c, add new macros 'for_each_event' for easy iteration over the tracepoints in order to be more compact and readable. Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song

[PATCH v2 3/4] perf tools: Check NULL after zalloc() and Use zfree() instead of free() in parse-events.c

2017-01-31 Thread Taeung Song
Currently there are several parts not checking NULL after allocating with zalloc() or asigning NULL value to a pointer variable after doing free(). So I fill in code checking NULL and use zfree() instead of free(). Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util

[PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded

2017-01-31 Thread Taeung Song
Cc: Jiri Olsa <jo...@kernel.org> Cc: Namhyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/parse-events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/u

[PATCH v2 4/4] perf tools: Increase index if perf_evsel__new_idx() succeeded

2017-01-31 Thread Taeung Song
Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/util/parse-events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 87a3e5a..ac47c12 100644 --- a/tools/perf/util/parse-events.c

[PATCH v2 2/4] perf ftrace: Add ftrace.tracer config option

2017-01-31 Thread Taeung Song
hyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/builtin-ftrace.c | 25 + 1 file changed, 25 insertions(+) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index 41d..00e228f 100644 ---

[PATCH v2 0/4] Add ftrace config and refactor several parts

2017-01-31 Thread Taeung Song
Hi, :) Lately I sent several patches. But they need to be modified so I send v2 packing them. v2: - Check the return of perf_config() and warn the user with config error message (Arnaldo) - Change commit messages (Jiri) - Add only one macro instead of two macros (Jiri) Taeung Song (4

[PATCH v2 2/4] perf ftrace: Add ftrace.tracer config option

2017-01-31 Thread Taeung Song
switch <-__schedule <...>-14450 [002] 10089.284232: finish_wait <-pipe_wait <...>-14450 [002] 10089.284232: mutex_lock <-pipe_wait <...>-14450 [002] 10089.284232: _cond_resched <-mutex_lock Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by:

[PATCH v2 0/4] Add ftrace config and refactor several parts

2017-01-31 Thread Taeung Song
Hi, :) Lately I sent several patches. But they need to be modified so I send v2 packing them. v2: - Check the return of perf_config() and warn the user with config error message (Arnaldo) - Change commit messages (Jiri) - Add only one macro instead of two macros (Jiri) Taeung Song (4

Re: [PATCH] perf tools: Create for_each_event{_system, _file} macros for tracepoints iteration

2017-01-30 Thread Taeung Song
On 01/30/2017 09:38 PM, Jiri Olsa wrote: On Mon, Jan 30, 2017 at 07:32:03PM +0900, Taeung Song wrote: SNIP looks almost the same as for_each_event_system macro, what's the difference other than 'ftrace' check? Little thing. In parse-events.c for_each_event macro contains tp_event_has_id

Re: [PATCH] perf tools: Create for_each_event{_system, _file} macros for tracepoints iteration

2017-01-30 Thread Taeung Song
On 01/30/2017 09:38 PM, Jiri Olsa wrote: On Mon, Jan 30, 2017 at 07:32:03PM +0900, Taeung Song wrote: SNIP looks almost the same as for_each_event_system macro, what's the difference other than 'ftrace' check? Little thing. In parse-events.c for_each_event macro contains tp_event_has_id

Re: [PATCH 1/2] perf tools: Use zfree() instead of free() in parse-events.c

2017-01-30 Thread Taeung Song
On 01/30/2017 06:01 PM, Jiri Olsa wrote: On Mon, Jan 30, 2017 at 02:23:38PM +0900, Taeung Song wrote: Currently there are several parts not checking NULL after allocating with zalloc() or asigning NULL value to a pointer variable after doing free(). So I fill in code checking NULL and use

Re: [PATCH 1/2] perf tools: Use zfree() instead of free() in parse-events.c

2017-01-30 Thread Taeung Song
On 01/30/2017 06:01 PM, Jiri Olsa wrote: On Mon, Jan 30, 2017 at 02:23:38PM +0900, Taeung Song wrote: Currently there are several parts not checking NULL after allocating with zalloc() or asigning NULL value to a pointer variable after doing free(). So I fill in code checking NULL and use

Re: [PATCH 2/2] perf evsel: Check for NULL before perf_evsel__is_bpf_output()

2017-01-30 Thread Taeung Song
Hi, jirka :) Thank you! Taeung On 01/30/2017 05:55 PM, Jiri Olsa wrote: On Mon, Jan 30, 2017 at 02:23:39PM +0900, Taeung Song wrote: If 'evsel' is NULL, in perf_evsel__is_bpf_output() NULL pointer error can happen so check it. Cc: Jiri Olsa <jo...@redhat.com> Cc: Namhyung Kim

Re: [PATCH 2/2] perf evsel: Check for NULL before perf_evsel__is_bpf_output()

2017-01-30 Thread Taeung Song
Hi, jirka :) Thank you! Taeung On 01/30/2017 05:55 PM, Jiri Olsa wrote: On Mon, Jan 30, 2017 at 02:23:39PM +0900, Taeung Song wrote: If 'evsel' is NULL, in perf_evsel__is_bpf_output() NULL pointer error can happen so check it. Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song

Re: [PATCH] perf tools: Create for_each_event{_system, _file} macros for tracepoints iteration

2017-01-30 Thread Taeung Song
On 01/30/2017 06:08 PM, Jiri Olsa wrote: On Mon, Jan 30, 2017 at 05:35:28PM +0900, Taeung Song wrote: SNIP +#define for_each_event_system(dir, dent, tps) \ + while ((dent = readdir(dir))) \ + if (dent->d_type == DT_

Re: [PATCH] perf tools: Create for_each_event{_system, _file} macros for tracepoints iteration

2017-01-30 Thread Taeung Song
On 01/30/2017 06:08 PM, Jiri Olsa wrote: On Mon, Jan 30, 2017 at 05:35:28PM +0900, Taeung Song wrote: SNIP +#define for_each_event_system(dir, dent, tps) \ + while ((dent = readdir(dir))) \ + if (dent->d_type == DT_

[PATCH] perf tools: Create for_each_event{_system, _file} macros for tracepoints iteration

2017-01-30 Thread Taeung Song
<fweis...@gmail.com> Cc: Jiri Olsa <jo...@kernel.org> Cc: Namhyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/trace-event-info.c | 45 -- 1 file changed, 19 insertions(+), 26 deletions(-)

[PATCH] perf tools: Create for_each_event{_system, _file} macros for tracepoints iteration

2017-01-30 Thread Taeung Song
Signed-off-by: Taeung Song --- tools/perf/util/trace-event-info.c | 45 -- 1 file changed, 19 insertions(+), 26 deletions(-) diff --git a/tools/perf/util/trace-event-info.c b/tools/perf/util/trace-event-info.c index ceb0e27..27beaff 100644 --- a/tools/perf/util

[PATCH 2/2] perf evsel: Check for NULL before perf_evsel__is_bpf_output()

2017-01-29 Thread Taeung Song
If 'evsel' is NULL, in perf_evsel__is_bpf_output() NULL pointer error can happen so check it. Cc: Jiri Olsa <jo...@redhat.com> Cc: Namhyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/evsel.c | 6 -- 1 file changed,

[PATCH 2/2] perf evsel: Check for NULL before perf_evsel__is_bpf_output()

2017-01-29 Thread Taeung Song
If 'evsel' is NULL, in perf_evsel__is_bpf_output() NULL pointer error can happen so check it. Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/util/evsel.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/evsel.c b/tools/perf

[PATCH 1/2] perf tools: Use zfree() instead of free() in parse-events.c

2017-01-29 Thread Taeung Song
m> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/parse-events.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 3c876b8..87a3e5a 100644 --- a/too

[PATCH 1/2] perf tools: Use zfree() instead of free() in parse-events.c

2017-01-29 Thread Taeung Song
Currently there are several parts not checking NULL after allocating with zalloc() or asigning NULL value to a pointer variable after doing free(). So I fill in code checking NULL and use zfree() instead of free(). Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util

Re: [PATCH 2/3] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
On 01/27/2017 03:58 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Jan 26, 2017 at 06:35:38PM +0900, Taeung Song escreveu: Currently perf ftrace command will select 'function_graph' or 'function'. So add ftrace.tracer config option to select tracer # cat ~/.perfconfig [ftrace

Re: [PATCH 2/3] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
On 01/27/2017 03:58 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Jan 26, 2017 at 06:35:38PM +0900, Taeung Song escreveu: Currently perf ftrace command will select 'function_graph' or 'function'. So add ftrace.tracer config option to select tracer # cat ~/.perfconfig [ftrace

[PATCH] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
: generic_pipe_buf_confirm <-pipe_read Cc: Jiri Olsa <jo...@kernel.org> Cc: Namhyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/builtin-ftrace.c | 25 + 1 file changed, 25 insertions(+) diff --git a/

[PATCH] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
: generic_pipe_buf_confirm <-pipe_read Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/builtin-ftrace.c | 25 + 1 file changed, 25 insertions(+) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index 41d..00e228f 1

Re: [PATCH 2/3] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
Hi, Arnaldo :) On 01/27/2017 03:58 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Jan 26, 2017 at 06:35:38PM +0900, Taeung Song escreveu: Currently perf ftrace command will select 'function_graph' or 'function'. So add ftrace.tracer config option to select tracer # cat ~/.perfconfig

Re: [PATCH 2/3] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
Hi, Arnaldo :) On 01/27/2017 03:58 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Jan 26, 2017 at 06:35:38PM +0900, Taeung Song escreveu: Currently perf ftrace command will select 'function_graph' or 'function'. So add ftrace.tracer config option to select tracer # cat ~/.perfconfig

[PATCH 1/3] perf ftrace: Remove needless code setting default tracer

2017-01-26 Thread Taeung Song
ernel.org> Cc: Namhyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/builtin-ftrace.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index d05658d..414

[PATCH 1/3] perf ftrace: Remove needless code setting default tracer

2017-01-26 Thread Taeung Song
im Signed-off-by: Taeung Song --- tools/perf/builtin-ftrace.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index d05658d..41d 100644 --- a/tools/perf/builtin-ftrace.c +++ b/tools/perf/builtin-ftrace.c @@ -20

[PATCH 2/3] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
: generic_pipe_buf_confirm <-pipe_read Cc: Jiri Olsa <jo...@kernel.org> Cc: Namhyung Kim <namhy...@kernel.org> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/builtin-ftrace.c | 20 1 file changed, 20 insertions(+) diff --git a/tools/pe

[PATCH 3/3] perf ftrace: Handle NULL at write_tracing_file()

2017-01-26 Thread Taeung Song
g> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/builtin-ftrace.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index 8df5416..0754dee 100644 --- a/tools/perf/builtin-ftrace.c +++ b/

[PATCH 3/3] perf ftrace: Handle NULL at write_tracing_file()

2017-01-26 Thread Taeung Song
If a value for tracing file is NULL, segment fault error can occur using strlen(). Of course, currently the function don't be given NULL value. But write_tracing_file() can be generally used. So add the if statement. Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf

[PATCH 2/3] perf ftrace: Add ftrace.tracer config option

2017-01-26 Thread Taeung Song
: generic_pipe_buf_confirm <-pipe_read Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/builtin-ftrace.c | 20 1 file changed, 20 insertions(+) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index 41d..8df5416 100644

Re: [PATCH v9 1/7] perf config: Introduce default_config_section and default_config_item for default config key-value pairs

2016-11-29 Thread Taeung Song
Hi, Arnaldo :) On 11/30/2016 01:05 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Nov 28, 2016 at 05:51:12PM +0900, Taeung Song escreveu: When initializing default perf config values, we currently use values of actual type(int, bool, char *, etc.). For example, If there isn't a user config value

Re: [PATCH v9 1/7] perf config: Introduce default_config_section and default_config_item for default config key-value pairs

2016-11-29 Thread Taeung Song
Hi, Arnaldo :) On 11/30/2016 01:05 AM, Arnaldo Carvalho de Melo wrote: Em Mon, Nov 28, 2016 at 05:51:12PM +0900, Taeung Song escreveu: When initializing default perf config values, we currently use values of actual type(int, bool, char *, etc.). For example, If there isn't a user config value

Re: [PATCH 1/6] perf config: Add support for getting config key-value pairs

2016-11-28 Thread Taeung Song
Good morning!! Arnaldo :) On 11/15/2016 12:50 AM, Arnaldo Carvalho de Melo wrote: Em Fri, Nov 04, 2016 at 03:44:17PM +0900, Taeung Song escreveu: Add a functionality getting specific config key-value pairs. For the syntax examples, perf config [] [section.name ...] e.g. To query config

Re: [PATCH 1/6] perf config: Add support for getting config key-value pairs

2016-11-28 Thread Taeung Song
Good morning!! Arnaldo :) On 11/15/2016 12:50 AM, Arnaldo Carvalho de Melo wrote: Em Fri, Nov 04, 2016 at 03:44:17PM +0900, Taeung Song escreveu: Add a functionality getting specific config key-value pairs. For the syntax examples, perf config [] [section.name ...] e.g. To query config

[PATCH v9 7/7] perf config: Initialize annotate_browser__opts with default config items

2016-11-28 Thread Taeung Song
: Jiri Olsa <jo...@kernel.org> Cc: Wang Nan <wangn...@huawei.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/ui/browsers/annotate.c | 16 tools/perf/util/config.h | 3 +++ 2 files changed, 15 insertions(+), 4 deletions(-) di

[PATCH v9 2/7] perf config: Add macros assigning key-value pairs to default_config_item

2016-11-28 Thread Taeung Song
: Jiri Olsa <jo...@redhat.com> Cc: Wang Nan <wangn...@huawei.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/config.h | 20 1 file changed, 20 insertions(+) diff --git a/tools/perf/util/config.h b/tools/perf/util/config.h index

[PATCH v9 3/7] perf config: Add default section and item arrays for 'colors' config

2016-11-28 Thread Taeung Song
r.c because of setting default values of actual variables for 'colors' config. Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Cc: Wang Nan <wangn...@huawei.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/config

[PATCH v9 7/7] perf config: Initialize annotate_browser__opts with default config items

2016-11-28 Thread Taeung Song
Signed-off-by: Taeung Song --- tools/perf/ui/browsers/annotate.c | 16 tools/perf/util/config.h | 3 +++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c index ec7a30f..183f9c7 100644

[PATCH v9 2/7] perf config: Add macros assigning key-value pairs to default_config_item

2016-11-28 Thread Taeung Song
Signed-off-by: Taeung Song --- tools/perf/util/config.h | 20 1 file changed, 20 insertions(+) diff --git a/tools/perf/util/config.h b/tools/perf/util/config.h index 434d71c..7498669 100644 --- a/tools/perf/util/config.h +++ b/tools/perf/util/config.h @@ -96,4 +96,24 @@ struct

[PATCH v9 3/7] perf config: Add default section and item arrays for 'colors' config

2016-11-28 Thread Taeung Song
r.c because of setting default values of actual variables for 'colors' config. Cc: Namhyung Kim Cc: Jiri Olsa Cc: Wang Nan Signed-off-by: Taeung Song --- tools/perf/util/config.c | 15 +++ tools/perf/util/config.h | 17 + 2 files changed, 32 insertions(+) diff --gi

[PATCH v9 5/7] perf config: Initialize ui_browser__colorsets with default config items

2016-11-28 Thread Taeung Song
c: Jiri Olsa <jo...@kernel.org> Cc: Wang Nan <wangn...@huawei.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/ui/browser.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/tools/perf/ui/browser.c b/tools/perf/u

[PATCH v9 4/7] perf config: Use combined {fore,back}ground colors value instead of each two color

2016-11-28 Thread Taeung Song
gt; Cc: Jiri Olsa <jo...@kernel.org> Cc: Wang Nan <wangn...@huawei.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/ui/browser.c | 53 +++-- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/tools/perf/u

[PATCH v9 6/7] perf config: Add default section and item arrays for 'annotate' config

2016-11-28 Thread Taeung Song
of setting default values of actual variables for 'annotate' config. Cc: Namhyung Kim <namhy...@kernel.org> Cc: Jiri Olsa <jo...@redhat.com> Cc: Wang Nan <wangn...@huawei.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/config.c | 11 +++

[PATCH v9 5/7] perf config: Initialize ui_browser__colorsets with default config items

2016-11-28 Thread Taeung Song
Signed-off-by: Taeung Song --- tools/perf/ui/browser.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/tools/perf/ui/browser.c b/tools/perf/ui/browser.c index 1c80f00..5caa7e4 100644 --- a/tools/perf/ui/browser.c +++ b/tools/perf/ui/browser.c @@ -509,

[PATCH v9 4/7] perf config: Use combined {fore,back}ground colors value instead of each two color

2016-11-28 Thread Taeung Song
Signed-off-by: Taeung Song --- tools/perf/ui/browser.c | 53 +++-- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/tools/perf/ui/browser.c b/tools/perf/ui/browser.c index 3eb3edb..1c80f00 100644 --- a/tools/perf/ui/browser.c +++ b/tools

[PATCH v9 6/7] perf config: Add default section and item arrays for 'annotate' config

2016-11-28 Thread Taeung Song
of setting default values of actual variables for 'annotate' config. Cc: Namhyung Kim Cc: Jiri Olsa Cc: Wang Nan Signed-off-by: Taeung Song --- tools/perf/util/config.c | 11 +++ tools/perf/util/config.h | 11 +++ 2 files changed, 22 insertions(+) diff --git a/tools/perf/util

[PATCH v9 0/7] perf config: Introduce default config key-value pairs arrays

2016-11-28 Thread Taeung Song
+ ltrim instead of strchr and while (isspace(*++bg)); (Arnaldo) Taeung Song (7): perf config: Introduce default_config_section and default_config_item for default config key-value pairs perf config: Add macros assigning key-value pairs to default_config_item perf config: Add default

[PATCH v9 0/7] perf config: Introduce default config key-value pairs arrays

2016-11-28 Thread Taeung Song
+ ltrim instead of strchr and while (isspace(*++bg)); (Arnaldo) Taeung Song (7): perf config: Introduce default_config_section and default_config_item for default config key-value pairs perf config: Add macros assigning key-value pairs to default_config_item perf config: Add default

[PATCH v9 1/7] perf config: Introduce default_config_section and default_config_item for default config key-value pairs

2016-11-28 Thread Taeung Song
eter Zijlstra <pet...@infradead.org> Cc: Ingo Molnar <mi...@redhat.com> Cc: Masami Hiramatsu <mhira...@kernel.org> Cc: David Ahern <dsah...@gmail.com> Signed-off-by: Taeung Song <treeze.tae...@gmail.com> --- tools/perf/util/config.h | 29 + 1 file changed

[PATCH v9 1/7] perf config: Introduce default_config_section and default_config_item for default config key-value pairs

2016-11-28 Thread Taeung Song
/config.c) with default config arrays and it could be easy and simple to modify existing default config values or add default values for new config item. Cc: Namhyung Kim Cc: Jiri Olsa Cc: Wang Nan Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Masami Hiramatsu Cc: David Ahern Signed-off-by: Taeung

[tip:perf/core] perf config: Add support setting variables in a config file

2016-11-15 Thread tip-bot for Taeung Song
Commit-ID: c6fc018a7a64c2c3ea56529fd8d0ca0f43408b0f Gitweb: http://git.kernel.org/tip/c6fc018a7a64c2c3ea56529fd8d0ca0f43408b0f Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Fri, 4 Nov 2016 15:44:20 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/core] perf config: Validate config variable arguments before trying use them

2016-11-15 Thread tip-bot for Taeung Song
Commit-ID: 36662794bb520be828df8e2f3404264f5e7a7973 Gitweb: http://git.kernel.org/tip/36662794bb520be828df8e2f3404264f5e7a7973 Author: Taeung Song <treeze.tae...@gmail.com> AuthorDate: Fri, 4 Nov 2016 15:44:19 +0900 Committer: Arnaldo Carvalho de Melo <a...@redhat.com> Com

[tip:perf/core] perf config: Add support setting variables in a config file

2016-11-15 Thread tip-bot for Taeung Song
Commit-ID: c6fc018a7a64c2c3ea56529fd8d0ca0f43408b0f Gitweb: http://git.kernel.org/tip/c6fc018a7a64c2c3ea56529fd8d0ca0f43408b0f Author: Taeung Song AuthorDate: Fri, 4 Nov 2016 15:44:20 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 14 Nov 2016 13:08:11 -0300 perf config

[tip:perf/core] perf config: Validate config variable arguments before trying use them

2016-11-15 Thread tip-bot for Taeung Song
Commit-ID: 36662794bb520be828df8e2f3404264f5e7a7973 Gitweb: http://git.kernel.org/tip/36662794bb520be828df8e2f3404264f5e7a7973 Author: Taeung Song AuthorDate: Fri, 4 Nov 2016 15:44:19 +0900 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 14 Nov 2016 12:57:40 -0300 perf config

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