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/Document
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
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
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
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:
p-cs.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
OLEAN
will 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
inde
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
Re
inal 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.
ng.
Signed-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/
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
--- a
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
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
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
. 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 arg
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
: 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
-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
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
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
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
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
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
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
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
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
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 func
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
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
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
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
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
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 functi
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
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
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 al
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
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
38 matches
Mail list logo