projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2af968
)
perf test: check if cpu_map__new() return NULL
author
Han Pingtian
<phan@redhat.com>
Fri, 14 Jan 2011 23:00:50 +0000
(07:00 +0800)
committer
Arnaldo Carvalho de Melo
<acme@redhat.com>
Sat, 22 Jan 2011 21:56:30 +0000
(19:56 -0200)
It looks like we should check if cpus is NULL after
cpus = cpu_map__new(NULL);
in test__open_syscall_event_on_all_cpus().
LKML-Reference: <
20110114230050
.GA7011@localhost>
Signed-off-by: Han Pingtian <phan@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-test.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/builtin-test.c
b/tools/perf/builtin-test.c
index 7cc6b2086947ff28e72431971151a83c951f136a..5a50e4755e6c81c29c79f174f490fe65ff240799 100644
(file)
--- a/
tools/perf/builtin-test.c
+++ b/
tools/perf/builtin-test.c
@@
-347,9
+347,9
@@
static int test__open_syscall_event_on_all_cpus(void)
}
cpus = cpu_map__new(NULL);
- if (
thread
s == NULL) {
- pr_debug("
thread
_map__new\n");
-
return -1
;
+ if (
cpu
s == NULL) {
+ pr_debug("
cpu
_map__new\n");
+
goto out_thread_map_delete
;
}