It mainly initializes and releases the rblist which is
defined in struct runtime_stat.
For the original rblist 'runtime_saved_values', it's still
kept there for keeping the patch bisectable.
The rblist 'runtime_saved_values' will be removed in later
patch at switching time.
Signed-off-by: Jin
r/u16:2-23146 2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Jin Yao (11):
perf util: Define a structure for per-thread shadow stats
perf stat:
2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.
If the stats pointer in stat_config structure is not null, it will
update the per-thread stats or print the per-thread stats on this
buffer.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.c | 9 +++--
tools/perf/util/stat.c| 11 ---
2 files c
r/u16:2-23146 2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Jin Yao (11):
perf util: Define a structure for per-thread shadow stats
perf stat:
2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 77
If the stats pointer in stat_config structure is not null, it will
update the per-thread stats or print the per-thread stats on this
buffer.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 9 +++--
tools/perf/util/stat.c| 11 ---
2 files changed, 15 insertions(+), 5
stat events on existing thread id
This patch removes this limitation. If no pid/tid specified, it returns
all threads (get threads from /proc).
Note that it doesn't support cpu_list yet so if it's a cpu_list case,
then skip.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/b
in stat_config.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.c | 46 +-
tools/perf/util/stat.h| 2 ++
2 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
stat events on existing thread id
This patch removes this limitation. If no pid/tid specified, it returns
all threads (get threads from /proc).
Note that it doesn't support cpu_list yet so if it's a cpu_list case,
then skip.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 23
in stat_config.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 46 +-
tools/perf/util/stat.h| 2 ++
2 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 1edc082..8ff3348 100644
stat-1754 cpu_clk_unhalted.thread
3.051274166 seconds time elapsed
Could you please help to take a look?
Thanks
Jin Yao
On 10/17/2017 2:32 AM, Ganapatrao Kulkarni wrote:
PMU CORE devices are identified using sysfs filename cpu, however
on some platforms(like arm/arm64), PMU CORE s
ead
3.051274166 seconds time elapsed
Could you please help to take a look?
Thanks
Jin Yao
On 10/17/2017 2:32 AM, Ganapatrao Kulkarni wrote:
PMU CORE devices are identified using sysfs filename cpu, however
on some platforms(like arm/arm64), PMU CORE sysfs name is not cpu.
Hence cpu can
On 12/1/2017 11:02 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 11:44:25AM -0300, Arnaldo Carvalho de Melo escreveu:
Em Fri, Dec 01, 2017 at 06:57:34PM +0800, Jin Yao escreveu:
Perf already has a function thread_map__new_by_uid() which can
enumerate all threads from /proc
On 12/1/2017 11:02 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 11:44:25AM -0300, Arnaldo Carvalho de Melo escreveu:
Em Fri, Dec 01, 2017 at 06:57:34PM +0800, Jin Yao escreveu:
Perf already has a function thread_map__new_by_uid() which can
enumerate all threads from /proc
On 12/1/2017 10:44 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 06:57:34PM +0800, Jin Yao escreveu:
Perf already has a function thread_map__new_by_uid() which can
enumerate all threads from /proc by uid.
This patch creates a static function enumerate_threads() which
reuses
On 12/1/2017 10:44 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 06:57:34PM +0800, Jin Yao escreveu:
Perf already has a function thread_map__new_by_uid() which can
enumerate all threads from /proc by uid.
This patch creates a static function enumerate_threads() which
reuses
On 12/1/2017 10:21 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 06:57:30PM +0800, Jin Yao escreveu:
The functions perf_stat__update_shadow_stats() and
perf_stat__print_shadow_statss() are called to update
and print the shadow stats on a set of static variables.
But the static
On 12/1/2017 10:21 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 06:57:30PM +0800, Jin Yao escreveu:
The functions perf_stat__update_shadow_stats() and
perf_stat__print_shadow_statss() are called to update
and print the shadow stats on a set of static variables.
But the static
On 12/1/2017 10:10 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 06:57:27PM +0800, Jin Yao escreveu:
Previously the rbtree was used to link generic metrics.
Try to make the one line subject more descriptive, I'm changing it to:
perf stat: Extend rbtree to support per-thread
On 12/1/2017 10:10 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 06:57:27PM +0800, Jin Yao escreveu:
Previously the rbtree was used to link generic metrics.
Try to make the one line subject more descriptive, I'm changing it to:
perf stat: Extend rbtree to support per-thread
On 12/1/2017 10:02 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 06:57:26PM +0800, Jin Yao escreveu:
Perf has a set of static variables to record the runtime shadow
metrics stats.
While if we want to record the runtime shadow stats for per-thread,
it will be the limitation
On 12/1/2017 10:02 PM, Arnaldo Carvalho de Melo wrote:
Em Fri, Dec 01, 2017 at 06:57:26PM +0800, Jin Yao escreveu:
Perf has a set of static variables to record the runtime shadow
metrics stats.
While if we want to record the runtime shadow stats for per-thread,
it will be the limitation
-thread.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/stat-shadow.c | 11 ---
tools/perf/util/stat.h| 44 ++-
2 files changed, 43 insertions(+), 12 deletions(-)
diff --git a/tools/perf/util/stat-shadow.c b/tools/per
-thread.
Signed-off-by: Jin Yao
---
tools/perf/util/stat-shadow.c | 11 ---
tools/perf/util/stat.h| 44 ++-
2 files changed, 43 insertions(+), 12 deletions(-)
diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c
index
'.
It will not directly get value from static variable. Instead, it now
uses runtime_stat_avg() and runtime_stat_n() to get and compute the
values.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-script.c | 6 +-
tools/perf/builtin-stat.c | 27 ++--
tools/per
'.
It will not directly get value from static variable. Instead, it now
uses runtime_stat_avg() and runtime_stat_n() to get and compute the
values.
Signed-off-by: Jin Yao
---
tools/perf/builtin-script.c | 6 +-
tools/perf/builtin-stat.c | 27 ++--
tools/perf/util/stat-shadow.c | 293
In current stat-shadow.c, the rbtree deleting is ignored.
The patch adds the implementation to node_delete method
of rblist.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/stat-shadow.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a
In current stat-shadow.c, the rbtree deleting is ignored.
The patch adds the implementation to node_delete method
of rblist.
Signed-off-by: Jin Yao
---
tools/perf/util/stat-shadow.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tools/perf/util/stat-shadow.c b
stat events on existing thread id
This patch removes this limitation. If no pid/tid specified, it returns
all threads (get threads from /proc).
Note that it doesn't support cpu_list yet so if it's a cpu_list case,
then skip.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/b
In previous patches, we have reconstructed the code and let
it not access the static variables directly.
This patch removes these static variables.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/stat-shadow.c | 68 ++-
tool
If the stats pointer in stat_config structure is not null, it will
update the per-thread stats or print the per-thread stats on this
buffer.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.c | 9 +++--
tools/perf/util/stat.c| 11 ---
2 files c
In previous patches, we have reconstructed the code and let
it not access the static variables directly.
This patch removes these static variables.
Signed-off-by: Jin Yao
---
tools/perf/util/stat-shadow.c | 68 ++-
tools/perf/util/stat.h| 1 +
2
If the stats pointer in stat_config structure is not null, it will
update the per-thread stats or print the per-thread stats on this
buffer.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 9 +++--
tools/perf/util/stat.c| 11 ---
2 files changed, 15 insertions(+), 5
stat events on existing thread id
This patch removes this limitation. If no pid/tid specified, it returns
all threads (get threads from /proc).
Note that it doesn't support cpu_list yet so if it's a cpu_list case,
then skip.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 23
by thread_map__new_by_uid()
and a new function thread_map__new_threads().
The new function thread_map__new_threads() is called to enumerate
all threads from /proc.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/tests/thread-map.c | 2 +-
tools/perf/util/evlist.c | 3 ++-
tool
by thread_map__new_by_uid()
and a new function thread_map__new_threads().
The new function thread_map__new_threads() is called to enumerate
all threads from /proc.
Signed-off-by: Jin Yao
---
tools/perf/tests/thread-map.c | 2 +-
tools/perf/util/evlist.c | 3 ++-
tools/perf/util/thread_map.c | 19
2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.
Previously the rbtree was used to link generic metrics.
This patches adds new ctx/type/stat into rbtree keys because we
will use this rbtree to maintain shadow metrics to replace original
a couple of static arrays for supporting per-thread shadow stats.
Signed-off-by: Jin Yao <
.
This patch creates a new function rblist__exit() which is similar
as rblist__delete() but it will not free the pointer of rblist.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/rblist.c | 19 ---
tools/perf/util/rblist.h | 1 +
2 files changed, 13 inse
It mainly initializes and releases the rblist which is
defined in struct runtime_stat.
For the original rblist 'runtime_saved_values', it's still
kept there for keeping the patch bisectable.
The rblist 'runtime_saved_values' will be removed in later
patch at switching time.
Signed-off-by: Jin
2,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Jin Yao (12):
perf util: Create rblist__exit() function
perf util: Define a structure for runtime shadow stats
perf util: Extend rbtree to support
in stat_config.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.c | 46 +-
tools/perf/util/stat.h| 2 ++
2 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 77
Previously the rbtree was used to link generic metrics.
This patches adds new ctx/type/stat into rbtree keys because we
will use this rbtree to maintain shadow metrics to replace original
a couple of static arrays for supporting per-thread shadow stats.
Signed-off-by: Jin Yao
---
tools/perf
.
This patch creates a new function rblist__exit() which is similar
as rblist__delete() but it will not free the pointer of rblist.
Signed-off-by: Jin Yao
---
tools/perf/util/rblist.c | 19 ---
tools/perf/util/rblist.h | 1 +
2 files changed, 13 insertions(+), 7 deletions(-)
diff
It mainly initializes and releases the rblist which is
defined in struct runtime_stat.
For the original rblist 'runtime_saved_values', it's still
kept there for keeping the patch bisectable.
The rblist 'runtime_saved_values' will be removed in later
patch at switching time.
Signed-off-by: Jin
2,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Jin Yao (12):
perf util: Create rblist__exit() function
perf util: Define a structure for runtime shadow stats
perf util: Extend rbtree to support
in stat_config.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 46 +-
tools/perf/util/stat.h| 2 ++
2 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 1edc082..8ff3348 100644
On 11/30/2017 6:05 PM, Jiri Olsa wrote:
On Thu, Nov 30, 2017 at 07:56:30PM +0800, Jin Yao wrote:
v4:
---
Update according to Jiri's comments. The major modification is:
Move struct perf_stat_config::*stats|stats_num to
'perf stat: Allocate shadow stats buffer for threads'.
I also move
On 11/30/2017 6:05 PM, Jiri Olsa wrote:
On Thu, Nov 30, 2017 at 07:56:30PM +0800, Jin Yao wrote:
v4:
---
Update according to Jiri's comments. The major modification is:
Move struct perf_stat_config::*stats|stats_num to
'perf stat: Allocate shadow stats buffer for threads'.
I also move
On 12/1/2017 3:30 AM, Arnaldo Carvalho de Melo wrote:
Em Thu, Nov 30, 2017 at 07:56:31PM +0800, Jin Yao escreveu:
Currently we have a rblist__delete() which is used to delete a rblist.
While rblist__delete() will free the pointer of rblist at the end.
It's inconvenience for user to delete
On 12/1/2017 3:30 AM, Arnaldo Carvalho de Melo wrote:
Em Thu, Nov 30, 2017 at 07:56:31PM +0800, Jin Yao escreveu:
Currently we have a rblist__delete() which is used to delete a rblist.
While rblist__delete() will free the pointer of rblist at the end.
It's inconvenience for user to delete
.
This patch creates a new function rblist__reset() which function is
similar as rblist__delete() but it will not free the rblist.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/rblist.c | 24 +---
tools/perf/util/rblist.h | 1 +
2 files changed, 18 inse
.
This patch creates a new function rblist__reset() which function is
similar as rblist__delete() but it will not free the rblist.
Signed-off-by: Jin Yao
---
tools/perf/util/rblist.c | 24 +---
tools/perf/util/rblist.h | 1 +
2 files changed, 18 insertions(+), 7 deletions(-)
diff
Previously the rbtree was used to link generic metrics.
This patches adds new ctx/type/stat into rbtree keys because we
will use this rbtree to maintain shadow metrics to replace original
a couple of static arrays for supporting per-thread shadow stats.
Signed-off-by: Jin Yao <
Previously the rbtree was used to link generic metrics.
This patches adds new ctx/type/stat into rbtree keys because we
will use this rbtree to maintain shadow metrics to replace original
a couple of static arrays for supporting per-thread shadow stats.
Signed-off-by: Jin Yao
---
tools/perf
-thread.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/stat-shadow.c | 11 ---
tools/perf/util/stat.h| 44 ++-
2 files changed, 43 insertions(+), 12 deletions(-)
diff --git a/tools/perf/util/stat-shadow.c b/tools/per
It mainly initializes the rblist in struct runtime_stat.
For the original rblist 'runtime_saved_values', it's still there
for keeping the patch bisectable. The rblist 'runtime_saved_values'
will be removed in later patch at switching time.
Signed-off-by: Jin Yao <yao@linux.intel.
-thread.
Signed-off-by: Jin Yao
---
tools/perf/util/stat-shadow.c | 11 ---
tools/perf/util/stat.h| 44 ++-
2 files changed, 43 insertions(+), 12 deletions(-)
diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c
index
It mainly initializes the rblist in struct runtime_stat.
For the original rblist 'runtime_saved_values', it's still there
for keeping the patch bisectable. The rblist 'runtime_saved_values'
will be removed in later patch at switching time.
Signed-off-by: Jin Yao
---
tools/perf/util/stat
In previous patches, we have reconstructed the code and let
it not access the static variables directly.
This patch removes these static variables.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/stat-shadow.c | 68 ++-
tool
In previous patches, we have reconstructed the code and let
it not access the static variables directly.
This patch removes these static variables.
Signed-off-by: Jin Yao
---
tools/perf/util/stat-shadow.c | 68 ++-
tools/perf/util/stat.h| 1 +
2
in stat_config.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.c | 46 +-
tools/perf/util/stat.h| 2 ++
2 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
in stat_config.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 46 +-
tools/perf/util/stat.h| 2 ++
2 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index 1edc082..4b88803 100644
2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.
stat events on existing thread id
This patch removes this limitation. If no pid/tid specified, it returns
all threads (get threads from /proc).
Note that it doesn't support cpu_list yet so if it's a cpu_list case,
then skip.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/b
In current stat-shadow.c, the rbtree deleting is ignored.
The patch adds the implementation to node_delete method
of rblist.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/stat-shadow.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a
'.
It will not directly get value from static variable. Instead, it now
uses runtime_stat_avg() and runtime_stat_n() to get and compute the
values.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-script.c | 6 +-
tools/perf/builtin-stat.c | 27 ++--
tools/per
2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 77
stat events on existing thread id
This patch removes this limitation. If no pid/tid specified, it returns
all threads (get threads from /proc).
Note that it doesn't support cpu_list yet so if it's a cpu_list case,
then skip.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 23
In current stat-shadow.c, the rbtree deleting is ignored.
The patch adds the implementation to node_delete method
of rblist.
Signed-off-by: Jin Yao
---
tools/perf/util/stat-shadow.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tools/perf/util/stat-shadow.c b
'.
It will not directly get value from static variable. Instead, it now
uses runtime_stat_avg() and runtime_stat_n() to get and compute the
values.
Signed-off-by: Jin Yao
---
tools/perf/builtin-script.c | 6 +-
tools/perf/builtin-stat.c | 27 ++--
tools/perf/util/stat-shadow.c | 293
by thread_map__new_by_uid()
and a new function thread_map__new_threads().
The new function thread_map__new_threads() is called to enumerate
all threads from /proc.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/tests/thread-map.c | 2 +-
tools/perf/util/evlist.c | 3 ++-
tool
by thread_map__new_by_uid()
and a new function thread_map__new_threads().
The new function thread_map__new_threads() is called to enumerate
all threads from /proc.
Signed-off-by: Jin Yao
---
tools/perf/tests/thread-map.c | 2 +-
tools/perf/util/evlist.c | 3 ++-
tools/perf/util/thread_map.c | 19
If the stats pointer in stat_config structure is not null, it will
update the per-thread stats or print the per-thread stats on this
buffer.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.c | 9 +++--
tools/perf/util/stat.c| 11 ---
2 files c
If the stats pointer in stat_config structure is not null, it will
update the per-thread stats or print the per-thread stats on this
buffer.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 9 +++--
tools/perf/util/stat.c| 11 ---
2 files changed, 15 insertions(+), 5
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Jin Yao (12):
perf util: Create rblist__reset() function
perf util: Define a structure for runtime shadow stats
perf util: Extend rbtree to support shadow
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Jin Yao (12):
perf util: Create rblist__reset() function
perf util: Define a structure for runtime shadow stats
perf util: Extend rbtree to support shadow
On 11/29/2017 11:16 PM, Jiri Olsa wrote:
On Wed, Nov 29, 2017 at 08:05:47PM +0800, Jin Yao wrote:
v3:
---
Update according to Jiri's comments. The major modifications are:
1. Fix the crash issue when performing the git bisect.
Move the removing of runtime_saved_values to the switching
On 11/29/2017 11:16 PM, Jiri Olsa wrote:
On Wed, Nov 29, 2017 at 08:05:47PM +0800, Jin Yao wrote:
v3:
---
Update according to Jiri's comments. The major modifications are:
1. Fix the crash issue when performing the git bisect.
Move the removing of runtime_saved_values to the switching
In current stat-shadow.c, the rbtree deleting is ignored.
The patch adds the implementation to node_delete method
of rblist.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/stat-shadow.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a
In current stat-shadow.c, the rbtree deleting is ignored.
The patch adds the implementation to node_delete method
of rblist.
Signed-off-by: Jin Yao
---
tools/perf/util/stat-shadow.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/tools/perf/util/stat-shadow.c b
-thread.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/stat-shadow.c | 11 ---
tools/perf/util/stat.h| 46 ++-
2 files changed, 45 insertions(+), 12 deletions(-)
diff --git a/tools/perf/util/stat-shadow.c b/tools/per
-thread.
Signed-off-by: Jin Yao
---
tools/perf/util/stat-shadow.c | 11 ---
tools/perf/util/stat.h| 46 ++-
2 files changed, 45 insertions(+), 12 deletions(-)
diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c
index
It mainly initializes the rblist in struct runtime_stat.
For the original rblist 'runtime_saved_values', it's still there
for keeping the patch bisectable. The rblist 'runtime_saved_values'
will be removed in later patch at switching time.
Signed-off-by: Jin Yao <yao@linux.intel.
It mainly initializes the rblist in struct runtime_stat.
For the original rblist 'runtime_saved_values', it's still there
for keeping the patch bisectable. The rblist 'runtime_saved_values'
will be removed in later patch at switching time.
Signed-off-by: Jin Yao
---
tools/perf/util/stat
'.
It will not directly get value from static variable. Instead, it now
uses runtime_stat_avg() and runtime_stat_n() to get and compute the
values.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-script.c | 6 +-
tools/perf/builtin-stat.c | 34 +++--
tool
'.
It will not directly get value from static variable. Instead, it now
uses runtime_stat_avg() and runtime_stat_n() to get and compute the
values.
Signed-off-by: Jin Yao
---
tools/perf/builtin-script.c | 6 +-
tools/perf/builtin-stat.c | 34 +++--
tools/perf/util/stat-shadow.c | 293
.
This patch creates a new function rblist__reset() which function is
similar as rblist__delete() but it will not free the rblist.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/rblist.c | 24 +---
tools/perf/util/rblist.h | 1 +
2 files changed, 18 inse
.
This patch creates a new function rblist__reset() which function is
similar as rblist__delete() but it will not free the rblist.
Signed-off-by: Jin Yao
---
tools/perf/util/rblist.c | 24 +---
tools/perf/util/rblist.h | 1 +
2 files changed, 18 insertions(+), 7 deletions(-)
diff
stat events on existing thread id
This patch removes this limitation. If no pid/tid specified, it returns
all threads (get threads from /proc).
Note that it doesn't support cpu_list yet so if it's a cpu_list case,
then skip.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/b
stat events on existing thread id
This patch removes this limitation. If no pid/tid specified, it returns
all threads (get threads from /proc).
Note that it doesn't support cpu_list yet so if it's a cpu_list case,
then skip.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 23
in stat_config.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.c | 46 +-
tools/perf/util/stat.c| 11 ---
2 files changed, 53 insertions(+), 4 deletions(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/b
in stat_config.
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 46 +-
tools/perf/util/stat.c| 11 ---
2 files changed, 53 insertions(+), 4 deletions(-)
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index c7fe582
2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/builtin-stat.
2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Signed-off-by: Jin Yao
---
tools/perf/builtin-stat.c | 73
In previous patches, we have reconstructed the code and let
it not access the static variables directly.
This patch removes these static variables.
Signed-off-by: Jin Yao <yao@linux.intel.com>
---
tools/perf/util/stat-shadow.c | 68 ++-
tool
In previous patches, we have reconstructed the code and let
it not access the static variables directly.
This patch removes these static variables.
Signed-off-by: Jin Yao
---
tools/perf/util/stat-shadow.c | 68 ++-
tools/perf/util/stat.h| 1 +
2
6 cycles
watchdog/2-203,850 cycles
kworker/u16:2-23146 2,654 cycles
watchdog/6-442,017 cycles
watchdog/7-502,017 cycles
2.175726600 seconds time elapsed
Jin Yao
1101 - 1200 of 2029 matches
Mail list logo