projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95a2b3c
)
perf bench: Fix segfault at the end of an 'all' execution
author
Ramkumar Ramachandra
<
[email protected]
>
Thu, 27 Mar 2014 23:50:19 +0000
(19:50 -0400)
committer
Jiri Olsa
<
[email protected]
>
Mon, 14 Apr 2014 10:55:53 +0000
(12:55 +0200)
At the end of
$ perf bench all
the program segfaults because it attempts to dereference a NULL
pointer. Fix this fault.
Signed-off-by: Ramkumar Ramachandra <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Jiri Olsa <
[email protected]
>
tools/perf/builtin-bench.c
patch
|
blob
|
history
diff --git
a/tools/perf/builtin-bench.c
b/tools/perf/builtin-bench.c
index f600b74216da4b876ee0e5f127eae3eab347d447..1e6e77710545afc472eae5c0f5e5a63f5ec432d1 100644
(file)
--- a/
tools/perf/builtin-bench.c
+++ b/
tools/perf/builtin-bench.c
@@
-86,7
+86,7
@@
static struct collection collections[] = {
/* Iterate over all benchmarks within a collection: */
#define for_each_bench(coll, bench) \
- for (bench = coll->benchmarks; bench->name; bench++)
+ for (bench = coll->benchmarks; bench
&& bench
->name; bench++)
static void dump_benchmarks(struct collection *coll)
{