git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d5bf5
)
perf record: Use sw counter only if hw pmu is not detected
author
Robert Richter
<robert.richter@amd.com>
Thu, 5 Apr 2012 16:26:28 +0000
(18:26 +0200)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Wed, 11 Apr 2012 20:39:19 +0000
(17:39 -0300)
Use cpu-clock-tick sw counter for cpu-cycles only if there is no hw
pmu available. This is the case if the syscall reports ENOENT. In
other cases (e.g. invalid attributes) we don't want the sw counter to
be used.
Cc: Ingo Molnar <mingo@kernel.org>
Link:
http://lkml.kernel.org/r/1333643188-26895-5-git-send-email-robert.richter@amd.com
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
patch
|
blob
|
history
diff --cc
tools/perf/builtin-record.c
Simple merge