[PATCH] Add input file_name support for perf sched {map|latency|replay|timehist}

2019-09-03 Thread yuzhoujian
From: YuZhoujian Just add '-i' option for perf sched {map|latency|replay|timehist} Signed-off-by: YuZhoujian --- tools/perf/Documentation/perf-sched.txt | 7 +++ tools/perf/builtin-sched.c | 4 2 files changed, 11 insertions(+) diff --git a/tools/perf/Documentation/perf

[tip:perf/core] perf record: Add support to collect callchains from kernel or user space only

2019-06-17 Thread tip-bot for yuzhoujian
Commit-ID: 53651b28cfb637ef604abc189d877948d1af39bb Gitweb: https://git.kernel.org/tip/53651b28cfb637ef604abc189d877948d1af39bb Author: yuzhoujian AuthorDate: Thu, 30 May 2019 14:29:22 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 10 Jun 2019 15:50:01 -0300 perf record

[tip:perf/core] perf stat: Add support to print counts after a period of time

2018-02-17 Thread tip-bot for yuzhoujian
Commit-ID: f1f8ad52f8bf1239282737a2a5c3bd450300cc78 Gitweb: https://git.kernel.org/tip/f1f8ad52f8bf1239282737a2a5c3bd450300cc78 Author: yuzhoujian <yuzhouj...@didichuxing.com> AuthorDate: Mon, 29 Jan 2018 10:25:23 +0100 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf stat: Add support to print counts after a period of time

2018-02-17 Thread tip-bot for yuzhoujian
Commit-ID: f1f8ad52f8bf1239282737a2a5c3bd450300cc78 Gitweb: https://git.kernel.org/tip/f1f8ad52f8bf1239282737a2a5c3bd450300cc78 Author: yuzhoujian AuthorDate: Mon, 29 Jan 2018 10:25:23 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 16 Feb 2018 10:18:06 -0300 perf stat: Add

[tip:perf/core] perf stat: Add support to print counts for fixed times

2018-02-17 Thread tip-bot for yuzhoujian
Commit-ID: db06a269ecbb1d71d534fc5713624e0b8f92 Gitweb: https://git.kernel.org/tip/db06a269ecbb1d71d534fc5713624e0b8f92 Author: yuzhoujian <yuzhouj...@didichuxing.com> AuthorDate: Mon, 29 Jan 2018 10:25:22 +0100 Committer: Arnaldo Carvalho de Melo <a...@redhat.com>

[tip:perf/core] perf stat: Add support to print counts for fixed times

2018-02-17 Thread tip-bot for yuzhoujian
Commit-ID: db06a269ecbb1d71d534fc5713624e0b8f92 Gitweb: https://git.kernel.org/tip/db06a269ecbb1d71d534fc5713624e0b8f92 Author: yuzhoujian AuthorDate: Mon, 29 Jan 2018 10:25:22 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 16 Feb 2018 10:09:24 -0300 perf stat: Add

lost some call trace for sleep function

2017-10-26 Thread yuzhoujian
Hi, all. I find a strange problem. Perf cannot record call stack which contains sleep functions. The last function of the call trace is always "__GI___libc_nanosleep" for each sample. one of the sample for perf script is below: test_sleep 12275 185233.961287: 1 cycles:ppp:

lost some call trace for sleep function

2017-10-26 Thread yuzhoujian
Hi, all. I find a strange problem. Perf cannot record call stack which contains sleep functions. The last function of the call trace is always "__GI___libc_nanosleep" for each sample. one of the sample for perf script is below: test_sleep 12275 185233.961287: 1 cycles:ppp:

[PATCH v5 2/2] Add the fp_selection_helper to set the fp for print functions

2017-10-25 Thread yuzhoujian
txt - split the original patch(Make all those related functions receive the file pointer) to two patches, and this is the second part of the original one. Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 107 +++---

[PATCH v5 2/2] Add the fp_selection_helper to set the fp for print functions

2017-10-25 Thread yuzhoujian
txt - split the original patch(Make all those related functions receive the file pointer) to two patches, and this is the second part of the original one. Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 107 +++- tools/perf/util/session.c |

[PATCH v5 1/2] Add new elements for per-event-dump option

2017-10-25 Thread yuzhoujian
do the same thing. Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/evsel.h | 11 +++ tools/perf/util/tool.h | 2 ++ 3 files changed, 16 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin

[PATCH v5 0/2] perf script: Add script per-event-dump support

2017-10-25 Thread yuzhoujian
to the event's name. yuzhoujian (4): Patch 1: Add new elements for per-event-dump option Patch 2: Add the fp_selection_helper to set the fp for print functions Changes since v4: - Patch 1: None - Patch 2: The fp_selection_helper will be invoked by process_event not process_sample_event Replace

[PATCH v5 1/2] Add new elements for per-event-dump option

2017-10-25 Thread yuzhoujian
do the same thing. Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/evsel.h | 11 +++ tools/perf/util/tool.h | 2 ++ 3 files changed, 16 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index a3add2c..81f1

[PATCH v5 0/2] perf script: Add script per-event-dump support

2017-10-25 Thread yuzhoujian
to the event's name. yuzhoujian (4): Patch 1: Add new elements for per-event-dump option Patch 2: Add the fp_selection_helper to set the fp for print functions Changes since v4: - Patch 1: None - Patch 2: The fp_selection_helper will be invoked by process_event not process_sample_event Replace

[PATCH v4 4/4] Add the fp_selection_helper to set the fp for print functions

2017-10-18 Thread yuzhoujian
one. Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 438 +--- tools/perf/util/session.c | 20 +- 2 files changed, 273 insertions(+), 185 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin

[PATCH v4 1/4] Add new elements for per-event-dump option

2017-10-18 Thread yuzhoujian
off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/evsel.h | 12 tools/perf/util/tool.h | 2 ++ 3 files changed, 17 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 7167df2

[PATCH v4 4/4] Add the fp_selection_helper to set the fp for print functions

2017-10-18 Thread yuzhoujian
one. Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 438 +--- tools/perf/util/session.c | 20 +- 2 files changed, 273 insertions(+), 185 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 8c297f0..b49d

[PATCH v4 1/4] Add new elements for per-event-dump option

2017-10-18 Thread yuzhoujian
off-by: yuzhoujian --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/evsel.h | 12 tools/perf/util/tool.h | 2 ++ 3 files changed, 17 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 7167df2..4ffa716 100644 --- a/tools/perf/buil

[PATCH v4 3/4] Replace printf with fprintf for all print functions

2017-10-18 Thread yuzhoujian
variable to do the same thing. Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 178 ++-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c

[PATCH v4 3/4] Replace printf with fprintf for all print functions

2017-10-18 Thread yuzhoujian
variable to do the same thing. Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 178 ++-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 4b51dd1..8c297f0 100644

[PATCH v4 2/4] Add fp argument to print functions

2017-10-18 Thread yuzhoujian
functions, because the fp is not used in this patch but needed in the later patches. - split the original patch(Makes all those related functions receive the FILE pointer) to two simple patches, and this is the first part. Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tool

[PATCH v4 2/4] Add fp argument to print functions

2017-10-18 Thread yuzhoujian
functions, because the fp is not used in this patch but needed in the later patches. - split the original patch(Makes all those related functions receive the FILE pointer) to two simple patches, and this is the first part. Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 190

[PATCH v4 0/4] perf script: Add script per-event-dump support

2017-10-18 Thread yuzhoujian
to the event's name. yuzhoujian (4): Patch 1: Add new elements for per-event-dump option Patch 2: Add fp argument to print functions Patch 3: Replace printf with fprintf for all print functions Patch 4: Add the fp_selection_helper to set the fp for print functions Changes since v3: - Patch 1: - remove three

[PATCH v4 0/4] perf script: Add script per-event-dump support

2017-10-18 Thread yuzhoujian
to the event's name. yuzhoujian (4): Patch 1: Add new elements for per-event-dump option Patch 2: Add fp argument to print functions Patch 3: Replace printf with fprintf for all print functions Patch 4: Add the fp_selection_helper to set the fp for print functions Changes since v3: - Patch 1: - remove three

[PATCH v2 4/4] Make all print functions receive the fp argument, and opens a dump file in process_event.

2017-09-26 Thread yuzhoujian
related functions receive the file pointer) to two patches, and this is the second part of the original one. Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 401 1 file changed, 217 insertions(+), 184 del

[PATCH v2 4/4] Make all print functions receive the fp argument, and opens a dump file in process_event.

2017-09-26 Thread yuzhoujian
related functions receive the file pointer) to two patches, and this is the second part of the original one. Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 401 1 file changed, 217 insertions(+), 184 deletions(-) diff --git a/tools/perf

[PATCH v2 0/4] perf script: Add script per-event-dump support

2017-09-26 Thread yuzhoujian
. Using this option, you can get the trace output files named by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (4): Patch 1: Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script. Patch 2: Add fp argument

[PATCH v2 2/4] Add fp argument to print functions

2017-09-26 Thread yuzhoujian
but needed in the later patches. - split the original patch(Makes all those related functions receive the FILE pointer) to two simple patches, and this is the first part. Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c

[PATCH v2 3/4] Replace printf with fprintf for all print functions

2017-09-26 Thread yuzhoujian
-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 178 ++-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 065bea7..271dfc4 100644 --- a/tools/perf/b

[PATCH v2 0/4] perf script: Add script per-event-dump support

2017-09-26 Thread yuzhoujian
. Using this option, you can get the trace output files named by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (4): Patch 1: Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script. Patch 2: Add fp argument

[PATCH v2 2/4] Add fp argument to print functions

2017-09-26 Thread yuzhoujian
but needed in the later patches. - split the original patch(Makes all those related functions receive the FILE pointer) to two simple patches, and this is the first part. Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 190 +++- 1 file changed

[PATCH v2 3/4] Replace printf with fprintf for all print functions

2017-09-26 Thread yuzhoujian
-by: yuzhoujian --- tools/perf/builtin-script.c | 178 ++-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 065bea7..271dfc4 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin

[PATCH v2 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-26 Thread yuzhoujian
-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/tool.h | 1 + 2 files changed, 4 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 9092de0..936af8b 100644 --- a/tools/perf/builtin-script.c

[PATCH v2 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-26 Thread yuzhoujian
-by: yuzhoujian --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/tool.h | 1 + 2 files changed, 4 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 9092de0..936af8b 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c

[PATCH v2 4/4] Make all print functions receive the fp argument, and opens a dump file in process_event.

2017-09-24 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 401 1 file changed, 217 insertions(+), 184 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 271dfc4..4891719

[PATCH v2 4/4] Make all print functions receive the fp argument, and opens a dump file in process_event.

2017-09-24 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 401 1 file changed, 217 insertions(+), 184 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 271dfc4..4891719 100644 --- a/tools/perf/builtin

[PATCH v2 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-24 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/tool.h | 1 + 2 files changed, 4 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 9092de0..936af8b 100644 --- a/tools/perf/b

[PATCH v2 2/4] Add fp argument to print functions

2017-09-24 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 190 +++- 1 file changed, 100 insertions(+), 90 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 936af8b..065bea7

[PATCH v2 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-24 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/tool.h | 1 + 2 files changed, 4 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 9092de0..936af8b 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin

[PATCH v2 2/4] Add fp argument to print functions

2017-09-24 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 190 +++- 1 file changed, 100 insertions(+), 90 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 936af8b..065bea7 100644 --- a/tools/perf/builtin-script.c

[PATCH v2 3/4] Replace printf with fprintf for all print functions

2017-09-24 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 178 ++-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 065bea7..271dfc4

[PATCH v2 3/4] Replace printf with fprintf for all print functions

2017-09-24 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 178 ++-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 065bea7..271dfc4 100644 --- a/tools/perf/builtin-script.c

[PATCH v2 0/4] perf script: Add script per-event-dump support

2017-09-24 Thread yuzhoujian
files named by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (4): Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script Add fp argument to print functions Replace printf with fprintf for all print

[PATCH v2 0/4] perf script: Add script per-event-dump support

2017-09-24 Thread yuzhoujian
files named by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (4): Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script Add fp argument to print functions Replace printf with fprintf for all print

[PATCH v2 4/4] Makes all print functions receive the fp argument, and opens a dump file in process_event.

2017-09-23 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 404 1 file changed, 220 insertions(+), 184 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 271dfc4..6182859

[PATCH v2 4/4] Makes all print functions receive the fp argument, and opens a dump file in process_event.

2017-09-23 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 404 1 file changed, 220 insertions(+), 184 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 271dfc4..6182859 100644 --- a/tools/perf/builtin

[PATCH v2 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-23 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/tool.h | 1 + 2 files changed, 4 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 9092de0..936af8b 100644 --- a/tools/perf/b

[PATCH v2 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-23 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 3 +++ tools/perf/util/tool.h | 1 + 2 files changed, 4 insertions(+) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 9092de0..936af8b 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin

[PATCH v2 2/4] Add fp argument to print functions

2017-09-23 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 190 +++- 1 file changed, 100 insertions(+), 90 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 936af8b..065bea7

[PATCH v2 0/4] perf script: Add script per-event-dump support

2017-09-23 Thread yuzhoujian
by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (4): Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script Add fp argument to print functions Replace printf with fprintf for all print functions

[PATCH v2 3/4] Replace printf with fprintf for all print functions

2017-09-23 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 178 ++-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 065bea7..271dfc4

[PATCH v2 2/4] Add fp argument to print functions

2017-09-23 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 190 +++- 1 file changed, 100 insertions(+), 90 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 936af8b..065bea7 100644 --- a/tools/perf/builtin-script.c

[PATCH v2 0/4] perf script: Add script per-event-dump support

2017-09-23 Thread yuzhoujian
by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (4): Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script Add fp argument to print functions Replace printf with fprintf for all print functions

[PATCH v2 3/4] Replace printf with fprintf for all print functions

2017-09-23 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 178 ++-- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 065bea7..271dfc4 100644 --- a/tools/perf/builtin-script.c

[PATCH 2/4] Makes all those related functions receive the FILE pointer

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 247 1 file changed, 136 insertions(+), 111 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 91b5225..f709f6f

[PATCH 3/4] Add the fp_selection_helper function to set the file pointer for the related functions

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index f709f6f..89bab68 100644 --- a/tools/perf/b

[PATCH 3/4] Add the fp_selection_helper function to set the file pointer for the related functions

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index f709f6f..89bab68 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf

[PATCH 2/4] Makes all those related functions receive the FILE pointer

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 247 1 file changed, 136 insertions(+), 111 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 91b5225..f709f6f 100644 --- a/tools/perf/builtin

[PATCH 4/4] Replace printf with fprintf for all the output functions

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 187 +++- 1 file changed, 99 insertions(+), 88 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 89bab68..0d206b2

[PATCH 4/4] Replace printf with fprintf for all the output functions

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 187 +++- 1 file changed, 99 insertions(+), 88 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 89bab68..0d206b2 100644 --- a/tools/perf/builtin-script.c

[PATCH 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 11 ++- tools/perf/util/tool.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 378f76c..91b5225

[PATCH 1/4] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-17 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 11 ++- tools/perf/util/tool.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 378f76c..91b5225 100644 --- a/tools/perf/builtin-script.c

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

2017-09-17 Thread yuzhoujian
by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (4): Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script Makes all those related functions receive the FILE pointer Add the fp_selection_helper function

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

2017-09-17 Thread yuzhoujian
by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (4): Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script Makes all those related functions receive the FILE pointer Add the fp_selection_helper function

Port the period data column to centos6.7 for perf script

2017-09-14 Thread yuzhoujian
Hi, all. I want to draw off-cpu flamegraph using perf script on centos6.7 (kernel version, 2.6.32-573), and I found perf script lacks the period data column on that version. I found two related patches, and modifed builin-script.c in reference to those patches. perf script:Add period data column

Port the period data column to centos6.7 for perf script

2017-09-14 Thread yuzhoujian
Hi, all. I want to draw off-cpu flamegraph using perf script on centos6.7 (kernel version, 2.6.32-573), and I found perf script lacks the period data column on that version. I found two related patches, and modifed builin-script.c in reference to those patches. perf script:Add period data column

[PATCH 3/3] Replace printf with fprintf for all the output functions

2017-09-13 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 187 +++- 1 file changed, 99 insertions(+), 88 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 076b7db..a28d98c

[PATCH 3/3] Replace printf with fprintf for all the output functions

2017-09-13 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 187 +++- 1 file changed, 99 insertions(+), 88 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 076b7db..a28d98c 100644 --- a/tools/perf/builtin-script.c

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

2017-09-13 Thread yuzhoujian
by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (3): Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script Makes all those related functions receive the FILE pointer Replace printf with fprintf for all

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

2017-09-13 Thread yuzhoujian
by the monitored events, and could draw flamegraphs according to the event's name. yuzhoujian (3): Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script Makes all those related functions receive the FILE pointer Replace printf with fprintf for all

[PATCH 1/3] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-13 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 11 ++- tools/perf/util/tool.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 378f76c..b4de101

[PATCH 1/3] Add a new element for the struct perf_tool, and add the --per-event-dump option for perf script

2017-09-13 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 11 ++- tools/perf/util/tool.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 378f76c..b4de101 100644 --- a/tools/perf/builtin-script.c

[PATCH 2/3] Makes all those related functions receive the FILE pointer

2017-09-13 Thread yuzhoujian
Signed-off-by: yuzhoujian <yuzhouj...@didichuxing.com> --- tools/perf/builtin-script.c | 269 ++-- 1 file changed, 158 insertions(+), 111 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index b4de101..076b7db

[PATCH 2/3] Makes all those related functions receive the FILE pointer

2017-09-13 Thread yuzhoujian
Signed-off-by: yuzhoujian --- tools/perf/builtin-script.c | 269 ++-- 1 file changed, 158 insertions(+), 111 deletions(-) diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index b4de101..076b7db 100644 --- a/tools/perf/builtin