projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
856e966
)
perf record: Use per-task-per-cpu events for inherited events
author
Peter Zijlstra
<
[email protected]
>
Wed, 16 Dec 2009 16:55:56 +0000
(17:55 +0100)
committer
Ingo Molnar
<
[email protected]
>
Wed, 16 Dec 2009 17:30:13 +0000
(18:30 +0100)
Create events with a pid and cpu contraint for inherited events
so that we get a stream per cpu, instead of all cpus contending
on a single stream.
Signed-off-by: Peter Zijlstra <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc:
[email protected]
Cc: Paul Mackerras <
[email protected]
>
LKML-Reference: <
20091216165904
.
987643843
@chello.nl>
Signed-off-by: Ingo Molnar <
[email protected]
>
tools/perf/builtin-record.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-record.c
b/tools/perf/builtin-record.c
index 9b7c6d887d5a9ad4cfca9cffc024218204385b57..63136d0534d450ef18a6bf65ee1d78275f41333b 100644
(file)
--- a/
tools/perf/builtin-record.c
+++ b/
tools/perf/builtin-record.c
@@
-278,7
+278,7
@@
static void create_counter(int counter, int cpu, pid_t pid)
attr->mmap = track;
attr->comm = track;
- attr->inherit =
(cpu < 0) &&
inherit;
+ attr->inherit = inherit;
attr->disabled = 1;
try_again:
@@
-537,7
+537,7
@@
static int __cmd_record(int argc __used, const char **argv)
}
- if (
!system_wide
|| profile_cpu != -1) {
+ if (
(!system_wide && !inherit)
|| profile_cpu != -1) {
open_counters(profile_cpu, target_pid);
} else {
for (i = 0; i < nr_cpus; i++)