[PATCH v2 1/5] perf list: Sort the output of 'perf list' to view more clearly

2015-02-15 Thread Yunlong Song
[Tracepoint event] jbd2:jbd2_start_commit [Tracepoint event] ...... Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/util/parse-events.c | 212 - 1 file

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

2015-02-15 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

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

2015-02-15 Thread Yunlong Song
://lkml.org/lkml/2015/2/15/75 for PATCH v2 -- Thanks, Yunlong Song -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

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

2015-02-15 Thread Yunlong Song
On 2015/2/13 22:52, Arnaldo Carvalho de Melo wrote: Em Fri, Feb 13, 2015 at 09:11:53PM +0800, Yunlong Song escreveu: Distinguish the output of 'perf list --list-opts' or 'perf --list-cmds' with the next command prompt, which also happens in other cases (e.g. record, report ...). Example

[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

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

2015-02-15 Thread Yunlong Song
On 2015/2/13 22:55, Arnaldo Carvalho de Melo wrote: Em Fri, Feb 13, 2015 at 09:11:54PM +0800, Yunlong Song escreveu: Extend 'perf list --raw-dump' to 'perf list --raw-dump [hw|sw|cache |tracepoint|pmu|event_glob]' in order to show the raw-dump of a certain kind of events rather than all

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

2015-02-15 Thread Yunlong Song
On 2015/2/13 22:45, Arnaldo Carvalho de Melo wrote: Em Fri, Feb 13, 2015 at 09:11:50PM +0800, Yunlong Song escreveu: return; + +if (evt_num_known) { +evt_list = zalloc(sizeof(char *) * evt_num); +if (!evt_list) +goto out_enomem

[PATCH v2 3/5] perf list: Clean up the printing functions of hardware/software events

2015-02-15 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 v2 4/5] perf list: Extend raw-dump to certain kind of events

2015-02-15 Thread Yunlong Song
instructions stalled-cycles-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

[PATCH v2 2/5] perf list: Fix some inaccuracy problem when parsing the argument

2015-02-15 Thread Yunlong Song
above, only the events of tracepoint_foo are printed. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-list.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index ad8018e..2acbcf0 100644

[PATCH v2 0/5] perf list: Make some improvements and fixes

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

[PATCH] perf record: Remove the '--(null)' long_name for --list-opts

2015-02-16 Thread Yunlong Song
--period --no-samples --no-buildid-cache --no-buildid --cgroup --delay --uid --branch-any --branch-filter --weight --transaction --per-thread --intr-regs Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/util/parse-options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH 12/13] perf tools: Add the bash completion for listing subsubcommands of perf trace

2015-03-18 Thread Yunlong Song
of perf trace can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-trace.c| 7 --- tools/perf/perf-completion.sh | 9 ++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c

[PATCH 05/13] perf tools: Fix the bash completion to support listing events for --event

2015-03-18 Thread Yunlong Song
node-store-misses uncore_rbox_0/qpi1_filt_send/ branch-loads dTLB-load-misses L1-icache-load-misses node-stores uncore_rbox_0/qpi1_idle_filt/ ... As shown above, the events of record can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com

[PATCH 11/13] perf tools: Add the bash completion for listing subsubcommands of perf timechart

2015-03-18 Thread Yunlong Song
, the subsubcommands of perf timechart can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-timechart.c | 7 --- tools/perf/perf-completion.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/perf/builtin-timechart.c b/tools/perf

[PATCH 13/13] perf tools: Avoid confusion with preloaded bash function for perf bash completion

2015-03-18 Thread Yunlong Song
-completion.sh. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/perf-completion.sh | 36 ++-- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf-completion.sh index bdd4035..3ba80b2 100644

[PATCH 08/13] perf tools: Add the bash completion for listing subsubcommands of perf help

2015-03-18 Thread Yunlong Song
of perf help can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-help.c | 17 ++--- tools/perf/perf-completion.sh | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/tools/perf/builtin-help.c b/tools/perf/builtin-help.c

[PATCH 02/13] perf tools: Fix the bash completion for listing subsubcommands of perf subcommand

2015-03-18 Thread Yunlong Song
out. After this patch: $ perf kvm --verbose TAB buildid-list diff recordreportstat top As shown above, the subsubcommands of perf kvm can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/perf-completion.sh | 23

[PATCH 07/13] perf tools: Add the bash completion for listing subsubcommands of perf data

2015-03-18 Thread Yunlong Song
of perf data can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-data.c | 6 -- tools/perf/perf-completion.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-data.c b/tools/perf/builtin-data.c index 155cf75

[PATCH 06/13] perf tools: Fix the bash completion for listing subcommands of perf

2015-03-18 Thread Yunlong Song
, the subcommands of perf can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/perf-completion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf-completion.sh index 3e25d3e..7b98ae4 100644 --- a/tools/perf/perf

[PATCH 09/13] perf tools: Add the bash completion for listing subsubcommands of perf script

2015-03-18 Thread Yunlong Song
, the subsubcommands of perf script can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-script.c | 5 +++-- tools/perf/perf-completion.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c

[PATCH 03/13] perf tools: Provide the right bash completion for listing options of perf subcommand subsubcommand

2015-03-18 Thread Yunlong Song
--pid --running-time --transaction As shown above, the result is exactly the options of record as we wished. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/perf-completion.sh | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/perf/perf

[PATCH 01/13] perf tools: Fix the bash completion for listing options of perf subcommand

2015-03-18 Thread Yunlong Song
kvm --TAB --alloc--caller --input--line --raw-ip --sort --verbose As shown above, the options of perf kvm can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/perf-completion.sh | 21 - 1 file changed, 12 insertions(+), 9

[PATCH 00/13] perf tools: Make some improvements and fixes

2015-03-18 Thread Yunlong Song
Hi, Found some functions to improve and bugs to fix in perf bash completion. Yunlong Song (13): perf tools: Fix the bash completion for listing options of perf subcommand perf tools: Fix the bash completion for listing subsubcommands of perf subcommand perf tools

[PATCH 10/13] perf tools: Add the bash completion for listing subsubcommands of perf test

2015-03-18 Thread Yunlong Song
test can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/perf-completion.sh | 2 +- tools/perf/tests/builtin-test.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf-completion.sh index

[PATCH 04/13] perf tools: Fix the bash completion for listing events of perf subcommand record|stat|top -e

2015-03-18 Thread Yunlong Song
above, the events of record can come out now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/perf-completion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf-completion.sh index 01ce841..4b58ac2 100644

[PATCH 0/2] perf build: Make some improvements and fixes

2015-03-19 Thread Yunlong Song
Hi, Found some functions to improve and bugs to fix in perf building. Yunlong Song (2): perf build: Use FEATURE-DUMP instead of PERF-FEATURES in the .gitignore file perf build: Add config/feature-checks/*.output to the .gitignore file tools/perf/.gitignore

[PATCH 1/2] perf build: Use FEATURE-DUMP instead of PERF-FEATURES in the .gitignore file

2015-03-19 Thread Yunlong Song
Since commit 4ae61202b31c (perf build: Rename PERF-FEATURES into FEATURE-DUMP) renames PERF-FEATURES into FEATURE-DUMP, the .gitignore file should also do this thing for consistency. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/.gitignore | 2 +- 1 file changed, 1 insertion

[PATCH 2/2] perf build: Add config/feature-checks/*.output to the .gitignore file

2015-03-19 Thread Yunlong Song
-stackprotector-all.make.output config/feature-checks/test-sync-compare-and-swap.make.output config/feature-checks/test-timerfd.make.output config/feature-checks/test-zlib.make.output After this patch: $ git status nothing to commit, working directory clean Signed-off-by: Yunlong

[PATCH] perf annotate: Fix the segmentation fault bug of perf annotate

2015-03-20 Thread Yunlong Song
- ... Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/util/annotate.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 61bf912..0f9ebad 100644 --- a/tools/perf/util/annotate.c +++ b

[PATCH] perf tools: Remove (null) value of Sort order for perf mem report

2015-03-19 Thread Yunlong Song
' # Total weight : 188 # Sort order : (null) # ... After this patch: $ perf mem report # To display the perf.data header info, please use --header/--header-only options. # # Samples: 18 of event 'cpu/mem-loads/pp' # Total weight : 188 # ... Signed-off-by: Yunlong Song yunlong.s

[PATCH 6/9] perf sched replay: Handle the dead halt of sem_wait when create_tasks() fails for any task

2015-03-31 Thread Yunlong Song
itself. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-sched.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 7fe3b3c..3261300 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf

[PATCH 4/9] perf sched replay: Realloc the memory of pid_to_task stepwise to adapt to the different pid_max configurations

2015-03-31 Thread Yunlong Song
( :5: 5), nr_events: 1 ... Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-sched.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 20d887b..dd71481 100644 --- a/tools

[PATCH 5/9] perf sched replay: Fix the segmentation fault problem caused by pr_err in threads

2015-03-31 Thread Yunlong Song
:163540), nr_events: 1 task 1551 ( unknown: 0), nr_events: 10 ... As shown above, the result continues without any segmentation fault. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-sched.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[PATCH 0/9] perf sched replay: Make some improvements and fixes

2015-03-31 Thread Yunlong Song
Hi, Found some functions to improve and bugs to fix in perf sched replay. Yunlong Song (9): perf sched replay: Use struct task_desc instead of struct task_task for correct meaning perf sched replay: Increase the MAX_PID value to fix assertion failure problem perf sched

[PATCH 2/9] perf sched replay: Increase the MAX_PID value to fix assertion failure problem

2015-03-31 Thread Yunlong Song
3 ( :5: 5), nr_events: 1 ... Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index a1893e8..c466104 100644

[PATCH 1/9] perf sched replay: Use struct task_desc instead of struct task_task for correct meaning

2015-03-31 Thread Yunlong Song
There is no struct task_task at all, thus it is a typo error in the old commits, now fix it to what it should be in order to avoid unnecessary misunderstanding. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH 3/9] perf sched replay: Alloc the memory of pid_to_task dynamically to adapt to the unexpected change of pid_max

2015-03-31 Thread Yunlong Song
... Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-sched.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index c466104..20d887b 100644 --- a/tools/perf/builtin-sched.c +++ b/tools

[PATCH 7/9] perf sched replay: Fix the EMFILE error caused by the limitation of the maximum open files

2015-03-31 Thread Yunlong Song
-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-sched.c | 31 ++- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 3261300..5ab58c6 100644 --- a/tools/perf/builtin-sched.c

[PATCH 8/9] perf sched replay: Support using -f to override perf.data file ownership

2015-03-31 Thread Yunlong Song
above, the -f option really works now. Besides for replay, -f option can also work for latency and map. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-sched.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c

[PATCH 9/9] perf sched replay: Use replay_repeat to calculate the runavg of cpu usage instead of the default value 10

2015-03-31 Thread Yunlong Song
to achieve more accurate results instead of the default value 10. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-sched.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index 7b7b798..5275bab

Re: [PATCH 2/9] perf sched replay: Increase the MAX_PID value to fix assertion failure problem

2015-04-01 Thread Yunlong Song
On 2015/3/31 22:25, David Ahern wrote: On 3/31/15 7:46 AM, Yunlong Song wrote: diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index a1893e8..c466104 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c @@ -28,7 +28,7 @@ #define MAX_CPUS

Re: [PATCH 3/9] perf sched replay: Alloc the memory of pid_to_task dynamically to adapt to the unexpected change of pid_max

2015-04-01 Thread Yunlong Song
On 2015/3/31 22:32, David Ahern wrote: On 3/31/15 7:46 AM, Yunlong Song wrote: diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c index c466104..20d887b 100644 --- a/tools/perf/builtin-sched.c +++ b/tools/perf/builtin-sched.c @@ -23,6 +23,7 @@ #include semaphore.h

Re: [PATCH 3/9] perf sched replay: Alloc the memory of pid_to_task dynamically to adapt to the unexpected change of pid_max

2015-04-01 Thread Yunlong Song
On 2015/3/31 23:56, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu: On 3/31/15 7:46 AM, Yunlong Song wrote: - BUG_ON(pid = MAX_PID); + if (sched-pid_to_task == NULL) { + if (sysctl__read_int(kernel/pid_max, pid_max) 0

[PATCH v2] perf tools: Remove (null) value of Sort order for perf mem report

2015-03-22 Thread Yunlong Song
,symbol_daddr,dso_daddr,snoop,tlb,locked # ... Signed-off-by: Yunlong Song yunlong.s...@huawei.com Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/builtin-report.c | 2 +- tools/perf/util/sort.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin

Re: [PATCH] perf tools: Remove (null) value of Sort order for perf mem report

2015-03-22 Thread Yunlong Song
On 2015/3/23 8:44, Namhyung Kim wrote: Hi Yunlong, On Thu, Mar 19, 2015 at 09:58:32PM +0800, Yunlong Song wrote: When '--sort' is not set, 'perf mem report will print a null pointer as the output value of sort order, so fix it. Example: Before this patch: $ perf mem report

Re: [PATCH] perf record: Remove the '--(null)' long_name for --list-opts

2015-02-27 Thread Yunlong Song
On 2015/2/19 1:56, Ingo Molnar wrote: * Yunlong Song yunlong.s...@huawei.com wrote: If the long_name of a 'struct option' is defined as NULL, --list-opts will incorrectly print '--(null)' in its output. As a result, '--(null)' will finally appear in the case of bash completion, e.g. 'perf

[PATCH v3 3/7] perf list: Clean up the printing functions of hardware/software events

2015-02-27 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 v3 0/7] perf core: Make some improvements and fixes

2015-02-27 Thread Yunlong Song
, for [PATCH v3 4/7], --raw-dump without an argument still shows all the events. Yunlong Song (7): perf list: Sort the output of 'perf list' to view more clearly perf list: Fix some inaccuracy problem when parsing the argument perf list: Clean up the printing functions of hardware/software events

[PATCH v3 7/7] perf core: Fix the bash completion problem of 'perf --*'

2015-02-27 Thread Yunlong Song
-- the required result Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/perf-completion.sh | 6 ++ tools/perf/perf.c | 27 +++ 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/tools/perf/perf-completion.sh b/tools/perf/perf

[PATCH v3 6/7] perf record: Remove the '--(null)' long_name for --list-opts

2015-02-27 Thread Yunlong Song
--period --no-samples --no-buildid-cache --no-buildid --cgroup --delay --uid --branch-any --branch-filter --weight --transaction --per-thread --intr-regs Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/util/parse-options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

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

2015-02-27 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

[PATCH v3 1/7] perf list: Sort the output of 'perf list' to view more clearly

2015-02-27 Thread Yunlong Song
[Tracepoint event] jbd2:jbd2_start_commit [Tracepoint event] ...... Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/util/parse-events.c | 212 - 1 file

[PATCH v3 4/7] perf list: Extend raw-dump to certain kind of events

2015-02-27 Thread Yunlong Song
instructions stalled-cycles-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

[PATCH v3 2/7] perf list: Fix some inaccuracy problem when parsing the argument

2015-02-27 Thread Yunlong Song
above, only the events of tracepoint_foo are printed. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-list.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c index ad8018e..2acbcf0 100644

[PATCH] perf tools: Fix a building error introduced by recent new patch

2015-02-27 Thread Yunlong Song
-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-data.c b/tools/perf/builtin-data.c index 9705ba7..0385063 100644 --- a/tools/perf/builtin-data.c +++ b/tools/perf/builtin-data.c @@ -86,7 +86,7

Re: [PATCH v2] perf tools: Remove (null) value of Sort order for perf mem report

2015-03-23 Thread Yunlong Song
On 2015/3/24 0:15, Arnaldo Carvalho de Melo wrote: Em Mon, Mar 23, 2015 at 11:50:05AM +0800, Yunlong Song escreveu: Signed-off-by: Yunlong Song yunlong.s...@huawei.com Signed-off-by: Namhyung Kim namhy...@kernel.org Humm, this doesn't seem to apply (Namhyung's S-o-B), as this patch was made

[Question] How does perf still record the stack of a specified pid even when that process is interrupted and CPU is scheduled to other process

2015-04-24 Thread Yunlong Song
process? -- Thanks, Yunlong Song -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [Question] How does perf still record the stack of a specified pid even when that process is interrupted and CPU is scheduled to other process

2015-04-24 Thread Yunlong Song
On 2015/4/24 21:31, Yunlong Song wrote: [Profiling Background] Now we are profiling the performance of ext4 and f2fs on an eMMC card with iozone, we find a case that ext4 is better than f2fs in random write under the test of iozone -s 262144 -r 64 -i 0 -i 2. We want to analyze the I/O delay

Re: [Question] How does perf still record the stack of a specified pid even when that process is interrupted and CPU is scheduled to other process

2015-04-24 Thread Yunlong Song
On 2015/4/24 21:49, David Ahern wrote: On 4/24/15 7:31 AM, Yunlong Song wrote: [Profiling Problem] Although perf can record the events (with call stack) of a specified pid, e.g. using perf record -g iozone -s 262144 -r 64 -i 0 -i 2. But we find iozone is interrupted That command tells

Re: [Question] How does perf still record the stack of a specified pid even when that process is interrupted and CPU is scheduled to other process

2015-04-25 Thread Yunlong Song
On 2015/4/24 21:49, Yunlong Song wrote: On 2015/4/24 21:31, Yunlong Song wrote: [Profiling Background] Now we are profiling the performance of ext4 and f2fs on an eMMC card with iozone, we find a case that ext4 is better than f2fs in random write under the test of iozone -s 262144 -r 64

Re: [Question] How does perf still record the stack of a specified pid even when that process is interrupted and CPU is scheduled to other process

2015-04-25 Thread Yunlong Song
On 2015/4/24 21:58, David Ahern wrote: On 4/24/15 7:31 AM, Yunlong Song wrote: Now we are profiling the performance of ext4 and f2fs on an eMMC card with iozone, we find a case that ext4 is better than f2fs in random write under the test of iozone -s 262144 -r 64 -i 0 -i 2. We want

Re: [Question] How does perf still record the stack of a specified pid even when that process is interrupted and CPU is scheduled to other process

2015-05-05 Thread Yunlong Song
On 2015/4/25 23:53, David Ahern wrote: On 4/25/15 8:05 AM, Yunlong Song wrote: On 2015/4/24 21:58, David Ahern wrote: On 4/24/15 7:31 AM, Yunlong Song wrote: Now we are profiling the performance of ext4 and f2fs on an eMMC card with iozone, we find a case that ext4 is better than f2fs

Re: [Question] How does perf still record the stack of a specified pid even when that process is interrupted and CPU is scheduled to other process

2015-05-05 Thread Yunlong Song
On 2015/5/6 5:53, Rabin Vincent wrote: On Sat, Apr 25, 2015 at 09:53:57AM -0600, David Ahern wrote: On 4/25/15 8:05 AM, Yunlong Song wrote: But this only shows the system call like strace, but we want the call stack of kernel functions in fact. We haven't added the callchain option yet

Re: [PATCH 0/9] perf sched replay: Make some improvements and fixes

2015-04-06 Thread Yunlong Song
On 2015/3/31 21:46, Yunlong Song wrote: Hi, Found some functions to improve and bugs to fix in perf sched replay. Yunlong Song (9): perf sched replay: Use struct task_desc instead of struct task_task for correct meaning perf sched replay: Increase the MAX_PID value to fix

Re: [PATCH 3/9] perf sched replay: Alloc the memory of pid_to_task dynamically to adapt to the unexpected change of pid_max

2015-04-07 Thread Yunlong Song
On 2015/4/1 15:06, Yunlong Song wrote: On 2015/3/31 23:56, Arnaldo Carvalho de Melo wrote: Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu: On 3/31/15 7:46 AM, Yunlong Song wrote: - BUG_ON(pid = MAX_PID); + if (sched-pid_to_task == NULL) { + if (sysctl__read_int

[PATCH] perf record: Conditionally define CLOCK_MONOTONIC_RAW for older OSes

2015-04-07 Thread Yunlong Song
-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-record.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index cfdff50..5b0962a 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -731,6

Re: [PATCH] perf record: Conditionally define CLOCK_MONOTONIC_RAW for older OSes

2015-04-08 Thread Yunlong Song
On 2015/4/8 16:55, Peter Zijlstra wrote: On Wed, Apr 08, 2015 at 12:02:28PM +0800, Yunlong Song wrote: Commit 31a9883106cc (perf record: Add clockid parameter) used CLOCK_MONOTONIC_RAW in the struct clockid_map clockids[], but the CLOCK_MONOTONIC_RAW macro is not defined in older releases (e.g

Re: [PATCH] perf record: Conditionally define CLOCK_MONOTONIC_RAW for older OSes

2015-04-08 Thread Yunlong Song
On 2015/4/8 21:03, Arnaldo Carvalho de Melo wrote: Em Wed, Apr 08, 2015 at 12:02:28PM +0800, Yunlong Song escreveu: Commit 31a9883106cc (perf record: Add clockid parameter) used CLOCK_MONOTONIC_RAW in the struct clockid_map clockids[], but the CLOCK_MONOTONIC_RAW macro is not defined in older

[PATCH 00/10] perf tools: Support using -f to override file ownership for perf commands

2015-04-02 Thread Yunlong Song
Hi, Enable perf commands to use perf file when it is not owned by current user or root. Yunlong Song (10): perf tools: Support using -f to override perf.data file ownership for evlist perf tools: Support using -f to override perf.data file ownership for inject perf tools

[PATCH 04/10] perf tools: Support using -f to override perf.data.guest file ownership for kvm

2015-04-02 Thread Yunlong Song
process, the result shows 0 sample here. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-kvm.c | 2 ++ tools/perf/util/kvm-stat.h | 1 + 2 files changed, 3 insertions(+) diff --git a/tools/perf/builtin-kvm.c b/tools/perf/builtin-kvm.c index 643722f..1f9338f 100644

[PATCH 09/10] perf tools: Support using -f to override perf.data file ownership for trace

2015-04-02 Thread Yunlong Song
: 0x7fffeb9a0d00, ... 0.211 ( 0.004 ms): ls/47325 stat(filename: 0x7fffeb9a0d00, ... 0.220 ( 0.007 ms): ls/47325 open(filename: 0x7f312599e8ff, ... ... ... As shown above, the -f option really works now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin

[PATCH 01/10] perf tools: Support using -f to override perf.data file ownership for evlist

2015-04-02 Thread Yunlong Song
, the -f option really works now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-evlist.c | 2 ++ tools/perf/util/evsel.h | 1 + 2 files changed, 3 insertions(+) diff --git a/tools/perf/builtin-evlist.c b/tools/perf/builtin-evlist.c index 0f93f85..695ec5a 100644

[PATCH 03/10] perf tools: Support using -f to override perf.data file ownership for kmem

2015-04-02 Thread Yunlong Song
: 437599 Total bytes allocated: 615472 Total bytes wasted on internal fragmentation: 177873 Internal fragmentation: 28.900259% Cross CPU allocations: 6/1192 As shown above, the -f option really works now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-kmem.c | 9

[PATCH 08/10] perf tools: Support using -f to override perf.data file ownership for timechart

2015-04-02 Thread Yunlong Song
; svg width=1000 height=10110 version=1.1 xmlns=http://www.w3.org/2000/svg; defs style type=text/css ![CDATA[ rect { stroke-width: 1; } ... ... As shown above, the -f option really works now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin

[PATCH 02/10] perf tools: Support using -f to override perf.data file ownership for inject

2015-04-02 Thread Yunlong Song
works now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-inject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/builtin-inject.c b/tools/perf/builtin-inject.c index ea46df25..40a33d7 100644 --- a/tools/perf/builtin-inject.c +++ b/tools/perf/builtin

[PATCH 07/10] perf tools: Support using -f to override perf.data file ownership for script

2015-04-02 Thread Yunlong Song
: 63058 cycles: 8105a592 raise_softirq ([kernel.kallsyms]) ls 41298 2590086.567448:1706255 cycles:406ae0 [unknown] (/usr/bin/ls) As shown above, the -f option really works now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin

[PATCH 05/10] perf tools: Support using -f to override perf.data file ownership for lock

2015-04-02 Thread Yunlong Song
... ... As shown above, the -f option really works now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-lock.c | 5 + 1 file changed, 5 insertions(+) diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c index 7893a9b..d49c2ab 100644 --- a/tools/perf/builtin

[PATCH 06/10] perf tools: Support using -f to override perf.data file ownership for mem

2015-04-02 Thread Yunlong Song
/kcore:page_remove_rmap As shown above, the -f option really works now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-mem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/builtin-mem.c b/tools/perf/builtin-mem.c index b4dcf0b..675216e 100644 --- a/tools/perf/builtin

[PATCH 10/10] perf tools: Support using -f to override perf.data file ownership for data convert

2015-04-02 Thread Yunlong Song
perf_stream_0 As shown above, the -f option really works now. Signed-off-by: Yunlong Song yunlong.s...@huawei.com --- tools/perf/builtin-data.c | 4 +++- tools/perf/util/data-convert-bt.c | 3 ++- tools/perf/util/data-convert-bt.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff

[PATCH] perf test: Add llvm-src-base.c and llvm-src-kbuild.c to .gitignore

2015-11-08 Thread Yunlong Song
add kbuild test") dynamically creates file llvm-src-kbuild.c during the perf building. Add them to .gitignore. Signed-off-by: Yunlong Song <yunlong.s...@huawei.com> --- tools/perf/tests/.gitignore | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tools/perf/tests/.gitignor

[PATCH] perf tools: Change FEATURE-DUMP to FEATURE-DUMP.libbpf for lib bpf

2015-11-04 Thread Yunlong Song
/bpf/ also mistakes FEATURE-DUMP.libbpf for FEATURE-DUMP, which causes that "make clean" will leave (or say create) FEATURE-DUMP.libbpf rather than remove FEATURE-DUMP.libbpf file. Signed-off-by: Yunlong Song <yunlong.s...@huawei.com> --- tools/lib/bpf/.gitignore | 2 +- tools/lib/bpf/

Re: [PATCH] perf tools: Change FEATURE-DUMP to FEATURE-DUMP.libbpf for lib bpf

2015-11-05 Thread Yunlong Song
> > Anyway, fixing it up, thanks for the patch! > > - Arnaldo Yes, right. Thanks for your detailed explanation. -- Thanks, Yunlong Song -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kerne

Re: [PATCH 1/1] perf:Adding --list-opts to usage string

2015-10-15 Thread Yunlong Song
On 2015/10/14 21:40, Arnaldo Carvalho de Melo wrote: > > Le 14 oct. 2015 10:33 AM, "Yunlong Song" <yunlong.s...@huawei.com > <mailto:yunlong.s...@huawei.com>> a écrit : >> >> On 2015/10/14 11:10, Arnaldo Carvalho de Melo wrote: >> >> >

[PATCH v2 1/3] perf help: Add options description to 'perf -h'

2015-10-15 Thread Yunlong Song
new dynamic tracepoints See 'perf help COMMAND' for more information on a specific command. As shown above, the options description really appears now. Signed-off-by: Yunlong Song <yunlong.s...@huawei.com> --- tools/perf/builtin-help.c | 2 +- tools/perf/builtin.h

[PATCH v2 0/3] perf help: Make perf's help consistent with other builtins

2015-10-15 Thread Yunlong Song
Hi, Make some fixes to perf's help for consistency. Yunlong Song (3): perf help: Add options description to 'perf -h' perf help: Change 'usage' to 'Usage' for consistency perf help: Change the usage's stdout to stderr for consistency tools/perf/builtin-help.c | 13

[PATCH v2 2/3] perf help: Change 'usage' to 'Usage' for consistency

2015-10-15 Thread Yunlong Song
Capitalize 'usage' to make it consistent with all the other 'Usage' in the codes, e.g., usage_builtin. Signed-off-by: Yunlong Song <yunlong.s...@huawei.com> --- tools/perf/builtin-help.c | 2 +- tools/perf/util/parse-options.c | 4 ++-- 2 files changed, 3 insertions(+), 3 del

[PATCH] perf build: Add fixdep to .gitignore

2015-10-15 Thread Yunlong Song
Commit 7c422f5572667fef0db38d2046ecce69dcf0afc8 ("tools build: Build fixdep helper from perf and basic libs") dynamically creates fixdep during the perf building. Add it to .gitignore. Signed-off-by: Yunlong Song <yunlong.s...@huawei.com> --- tools/build/.gitignore | 1 + 1

[PATCH v2 3/3] perf help: Change the usage's stdout to stderr for consistency

2015-10-15 Thread Yunlong Song
The builtins use stderr everywhere to show the usage info when the opts or cmds are incorrectly used, for consistency, change perf's stdout to stderr to show its usage info when it is incorrectly (including no command) used. Signed-off-by: Yunlong Song <yunlong.s...@huawei.com> --- tool

Re: [PATCH 1/1] perf:Adding --list-opts to usage string

2015-10-13 Thread Yunlong Song
e existing [OPTIONS] in the perf_usage_string[]. >>> >>> const char perf_usage_string[] = >>> - "perf [--version] [--help] [OPTIONS] COMMAND [ARGS]"; >>> + "perf [--version] [--help] [--list-opts] [OPTIONS] COMMAND [ARGS]"; -- Thanks

Re: [PATCH] perf build: Add fixdep to .gitignore

2015-10-19 Thread Yunlong Song
On 2015/10/15 16:51, Yunlong Song wrote: > Commit 7c422f5572667fef0db38d2046ecce69dcf0afc8 ("tools build: Build fixdep > helper from perf and basic libs") dynamically creates fixdep during the perf > building. Add it to .gitignore. > > Signed-off-by: Yunlong Song

Re: [PATCH v2 1/3] perf help: Add options description to 'perf -h'

2015-10-19 Thread Yunlong Song
On 2015/10/19 23:29, Namhyung Kim wrote: > Hi, > > On Thu, Oct 15, 2015 at 03:39:50PM +0800, Yunlong Song wrote: >> Add options description to 'perf -h' to make it consistent with other >> builtins >> (e.g., 'perf stat -h'). >> >> Example: >> >&g

Re: [PATCH 1/1] perf:Adding --list-opts to usage string

2015-10-14 Thread Yunlong Song
ut to stdout, just like 'ls --help', what do you think? > > - Arnaldo > I think the reason that options do not show in 'perf -h' but show in other builtins is not the different use of stdout or stderr. I will send a patch to fix this instead. -- Thanks, Yunlong Song -- To unsubscribe

  1   2   3   4   5   6   7   8   >