public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* BUG: different symbol address between System.map and /proc/kallsyms
@ 2009-12-21  1:20 Xiao Guangrong
  2009-12-21  1:23 ` Xiao Guangrong
  2009-12-21  6:31 ` H. Peter Anvin
  0 siblings, 2 replies; 5+ messages in thread
From: Xiao Guangrong @ 2009-12-21  1:20 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: Peter Zijlstra, Paul Mackerras, Frederic Weisbecker,
	Steven Rostedt, Arnaldo Carvalho de Melo, Andrew Morton, LKML

Hi,

The symbol address in System.map and /proc/kallsys is different:

# cat System.map | grep _text
  c1000000 T _text
# cat /proc/kallsyms | grep _text
  c0100000 T _text

# readelf -s vmlinux | grep _text
35078: c1000000     0 NOTYPE  GLOBAL DEFAULT    1 _text

So, perf can't get sysmbol address properly:

# ./perf report
# Samples: 29
#
# Overhead  Command        Shared Object  Symbol
# ........  .......  ...................  ......
#
    93.10%    sleep             c014f988  [k] 0x000000c014f988
     3.45%    sleep  libc-2.9.90.so       [.] _int_malloc
     3.45%    sleep  [kernel]             [k] 0x000000c014f988

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-21  9:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-21  1:20 BUG: different symbol address between System.map and /proc/kallsyms Xiao Guangrong
2009-12-21  1:23 ` Xiao Guangrong
2009-12-21  6:31 ` H. Peter Anvin
2009-12-21  9:13   ` Xiao Guangrong
2009-12-21  9:34     ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox