perf annotate: Defer allocating sym_priv->hist array

Because symbol->end is not fixed up at symbol_filter time, only
after all symbols for a DSO are loaded, and that, for asm
symbols, may be bogus, causing segfaults when hits happen in
these symbols.

Reported-by: David Miller <davem@davemloft.net>
Reported-by: Anton Blanchard <anton@samba.org>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: <stable@kernel.org> # for .33.x. Does not apply cleanly, needs backport.
LKML-Reference: <20100225155740.GB8553@ghostprotocols.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
此提交包含在:
Arnaldo Carvalho de Melo
2010-02-25 12:57:40 -03:00
提交者 Ingo Molnar
父節點 3846df2e0a
當前提交 628ada0cb0
共有 3 個檔案被更改,包括 32 行新增29 行删除

查看文件

@@ -51,6 +51,8 @@ struct symbol {
char name[0];
};
void symbol__delete(struct symbol *self);
struct strlist;
struct symbol_conf {