diff options
author | Zhang, Yanmin <yanmin_zhang@linux.intel.com> | 2010-04-19 01:32:50 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-04-19 05:37:24 -0400 |
commit | a1645ce12adb6c9cc9e19d7695466204e3f017fe (patch) | |
tree | 5d31aaaf534997e6e9cebc07f38eca35f76986cf /tools/perf/builtin-diff.c | |
parent | ff9d07a0e7ce756a183e7c2e483aec452ee6b574 (diff) |
perf: 'perf kvm' tool for monitoring guest performance from host
Here is the patch of userspace perf tool.
Signed-off-by: Zhang Yanmin <yanmin_zhang@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'tools/perf/builtin-diff.c')
-rw-r--r-- | tools/perf/builtin-diff.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 3a1d94d75dce..207e860591e2 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c | |||
@@ -33,7 +33,7 @@ static int perf_session__add_hist_entry(struct perf_session *self, | |||
33 | return -ENOMEM; | 33 | return -ENOMEM; |
34 | 34 | ||
35 | if (hit) | 35 | if (hit) |
36 | he->count += count; | 36 | __perf_session__add_count(he, al, count); |
37 | 37 | ||
38 | return 0; | 38 | return 0; |
39 | } | 39 | } |
@@ -225,6 +225,10 @@ int cmd_diff(int argc, const char **argv, const char *prefix __used) | |||
225 | input_new = argv[1]; | 225 | input_new = argv[1]; |
226 | } else | 226 | } else |
227 | input_new = argv[0]; | 227 | input_new = argv[0]; |
228 | } else if (symbol_conf.default_guest_vmlinux_name || | ||
229 | symbol_conf.default_guest_kallsyms) { | ||
230 | input_old = "perf.data.host"; | ||
231 | input_new = "perf.data.guest"; | ||
228 | } | 232 | } |
229 | 233 | ||
230 | symbol_conf.exclude_other = false; | 234 | symbol_conf.exclude_other = false; |