[PATCH 7/7] perf list: place the guiding text in its right position

2015-02-13 Thread Yunlong Song
stores [Hardware cache event] Signed-off-by: Yunlong Song --- tools/perf/builtin-list.c | 3 +++ tools/perf/util/parse-events.c | 5 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index b81a62c..af5bd05 100644 --- a/tool

[PATCH 5/7] perf list: avoid confusion of perf output and the next command prompt

2015-02-13 Thread Yunlong Song
mpt are at the same line After this patch: $perf list --list-opts --raw-dump $ <-- the new line Signed-off-by: Yunlong Song --- tools/perf/perf.c | 1 + tools/perf/util/parse-options.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tools/perf/pe

[PATCH 0/7] perf list: make some improvements and fixes

2015-02-13 Thread Yunlong Song
Hi, Found some functions to improve and bugs to fix in perf list. Yunlong Song (7): perf list: clean up the printing functions of hardware/software events perf list: sort the output of 'perf list' to view more clearly perf list: fix some inaccuracy problem when parsing the argument perf

[PATCH 2/7] perf list: sort the output of 'perf list' to view more clearly

2015-02-13 Thread Yunlong Song
:jbd2_start_commit [Tracepoint event] ...... Signed-off-by: Yunlong Song --- tools/perf/builtin-list.c | 2 - tools/perf/util/parse-events.c | 166 +++-- 2 files changed, 145 insertions

[PATCH 6/7] perf list: extend raw-dump to certain kind of events

2015-02-13 Thread Yunlong Song
-backend stalled-cycles-frontend As shown above, only the hw events are printed. Signed-off-by: Yunlong Song --- tools/perf/Documentation/perf-list.txt | 6 ++ tools/perf/builtin-list.c | 21 - 2 files changed, 14 insertions(+), 13 deletions(-) diff --git

[PATCH 3/7] perf list: fix some inaccuracy problem when parsing the argument

2015-02-13 Thread Yunlong Song
the events of tracepoint_foo are printed. Signed-off-by: Yunlong Song --- tools/perf/builtin-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index de5680e..003dec5 100644 --- a/tools/perf/builtin-list.c +++ b/tools/perf

[PATCH 1/7] perf list: clean up the printing functions of hardware/software events

2015-02-13 Thread Yunlong Song
Do not need print_events_type or __print_events_type for listing hw/sw events, let print_symbol_events do its job instead. Moreover, print_symbol_events can also handle event_glob and name_only. Signed-off-by: Yunlong Song --- tools/perf/builtin-list.c | 6 -- tools/perf/util/parse

[PATCH 4/7] perf list: fix a bug of segmentation fault

2015-02-13 Thread Yunlong Song
$ As shown above, the result prints nothing rather than a segmentation fault. The null result means 'perf list' has no cmds to display at this time. Signed-off-by: Yunlong Song --- tools/perf/util/parse-options.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/perf/util

[PATCH 0/7] perf list: make some improvements and fixes

2015-02-13 Thread Yunlong Song
Hi, Found some functions to improve and bugs to fix in perf list. Yunlong Song (7): perf list: clean up the printing functions of hardware/software events perf list: sort the output of 'perf list' to view more clearly perf list: fix some inaccuracy problem when parsing the argument perf

[PATCH 2/7] perf list: sort the output of 'perf list' to view more clearly

2015-02-13 Thread Yunlong Song
:jbd2_start_commit [Tracepoint event] ...... Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-list.c | 2 - tools/perf/util/parse-events.c | 166 +++-- 2 files

[PATCH 5/7] perf list: avoid confusion of perf output and the next command prompt

2015-02-13 Thread Yunlong Song
are at the same line After this patch: $perf list --list-opts --raw-dump $ -- the new line Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/perf.c | 1 + tools/perf/util/parse-options.c | 2 ++ 2 files changed, 3 insertions(+) diff --git

[PATCH 6/7] perf list: extend raw-dump to certain kind of events

2015-02-13 Thread Yunlong Song
-backend stalled-cycles-frontend As shown above, only the hw events are printed. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/Documentation/perf-list.txt | 6 ++ tools/perf/builtin-list.c | 21 - 2 files changed, 14 insertions(+), 13

[PATCH 3/7] perf list: fix some inaccuracy problem when parsing the argument

2015-02-13 Thread Yunlong Song
the events of tracepoint_foo are printed. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index de5680e..003dec5 100644 --- a/tools/perf/builtin

[PATCH 1/7] perf list: clean up the printing functions of hardware/software events

2015-02-13 Thread Yunlong Song
Do not need print_events_type or __print_events_type for listing hw/sw events, let print_symbol_events do its job instead. Moreover, print_symbol_events can also handle event_glob and name_only. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-list.c | 6

[PATCH 7/7] perf list: place the guiding text in its right position

2015-02-13 Thread Yunlong Song
[Hardware cache event] Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-list.c | 3 +++ tools/perf/util/parse-events.c | 5 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index b81a62c..af5bd05

[PATCH 4/7] perf list: fix a bug of segmentation fault

2015-02-13 Thread Yunlong Song
$ As shown above, the result prints nothing rather than a segmentation fault. The null result means 'perf list' has no cmds to display at this time. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/util/parse-options.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

<    3   4   5   6   7   8