aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-06-30 23:35:13 -0400
committerIngo Molnar <mingo@elte.hu>2009-07-01 03:58:23 -0400
commit9198aa77b69647d1d91207f8075763abe7dc0bf4 (patch)
treeb9a55ebc36c919c41e3d3ac07264f53b471157e1
parent087021ba41e9481202103d51d3dd0c4706899a2b (diff)
perf_counter tools: Fix storage size allocation of callchain list
Fix a confusion while giving the size of a callchain list during its allocation. We are using the wrong structure size. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Anton Blanchard <anton@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <1246419315-9968-2-git-send-email-fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--tools/perf/util/callchain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/callchain.c b/tools/perf/util/callchain.c
index ad3c28578961..bbf7813fefe0 100644
--- a/tools/perf/util/callchain.c
+++ b/tools/perf/util/callchain.c
@@ -74,7 +74,7 @@ fill_node(struct callchain_node *node, struct ip_callchain *chain, int start)
74 for (i = start; i < chain->nr; i++) { 74 for (i = start; i < chain->nr; i++) {
75 struct callchain_list *call; 75 struct callchain_list *call;
76 76
77 call = malloc(sizeof(*chain)); 77 call = malloc(sizeof(*call));
78 if (!call) { 78 if (!call) {
79 perror("not enough memory for the code path tree"); 79 perror("not enough memory for the code path tree");
80 return; 80 return;