perf test: check if cpu_map__new() return NULL
authorHan Pingtian <phan@redhat.com>
Fri, 14 Jan 2011 23:00:50 +0000 (07:00 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 22 Jan 2011 21:56:30 +0000 (19:56 -0200)
commit98d77b78504a423fca911a26a17bee00ef2fdda2
treefbb246e981c5358fa28e1eaf3cf92dc753cc4afe
parentd2af9687c96f3864178de1860e6d83873aeef224
perf test: check if cpu_map__new() return NULL

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