git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf hist: Only allocate callchain_node if processing callchains
[safe/jmp/linux-2.6]
/
tools
/
perf
/
util
/
sort.h
diff --git
a/tools/perf/util/sort.h
b/tools/perf/util/sort.h
index
439ec5f
..
5bf2b74
100644
(file)
--- a/
tools/perf/util/sort.h
+++ b/
tools/perf/util/sort.h
@@
-49,12
+49,12
@@
struct hist_entry {
u64 ip;
char level;
struct symbol *parent;
- struct callchain_node callchain;
union {
unsigned long position;
struct hist_entry *pair;
struct rb_root sorted_chain;
};
+ struct callchain_node callchain[0];
};
enum sort_type {