On 4/6/12 5:36 AM, Kant wrote:
(gdb) bt
#0 0x000000000041adb0 in __cmd_report () at builtin-report.c:315
#1 cmd_report (argc=<optimized out>, argv=<optimized out>,
prefix=<optimized out>) at builtin-report.c:575
#2 0x000000000041129f in run_builtin (p=p@entry=0x6aab88,
argc=argc@entry=6, argv=argv@entry=0x7e2c43b8e760) at perf.c:286
#3 0x0000000000410b2f in handle_internal_command
(argv=0x7e2c43b8e760, argc=6) at perf.c:358
#4 run_argv (argv=0x7e2c43b8e560, argcp=0x7e2c43b8e56c) at perf.c:402
#5 main (argc=6, argv=0x7e2c43b8e760) at perf.c:512
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Fixed by 47fbe53bef3b219a365ebf3eca949d6cd4c5291c.I guess that one did
not make it into 3.2 stable.
Here's the diff if you want to apply it to your branch:
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c
index 85c1e6b7..0f4555c 100644
--- a/tools/perf/util/session.c
+++ b/tools/perf/util/session.c
@@ -1333,6 +1333,10 @@ int perf_session__cpu_bitmap(struct perf_session
*session,
}
map = cpu_map__new(cpu_list);
+ if (map == NULL) {
+ pr_err("Invalid cpu_list\n");
+ return -1;
+ }
for (i = 0; i < map->nr; i++) {
int cpu = map->map[i];
David
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html