diff options
author | Simon Que <[email protected]> | 2014-06-16 11:32:09 -0700 |
---|---|---|
committer | Jiri Olsa <[email protected]> | 2014-06-20 09:34:22 +0200 |
commit | a93f0e551af9e194db38bfe16001e17a3a1d189a (patch) | |
tree | 3816f86c02f055fa02437000a2b3fa660a51cf66 /tools/perf/scripts/python/bin/syscall-counts-by-pid-record | |
parent | d755330c5e0658d8056242b5b81e2f44ed7a96d8 (diff) |
perf symbols: Get kernel start address by symbol name
The function machine__get_kernel_start_addr() was taking the first symbol
of kallsyms as the start address. This is incorrect in certain cases
where the first symbol is something at 0, while the actual kernel
functions begin at a later point (e.g. 0x80200000).
This patch fixes machine__get_kernel_start_addr() to search for the
symbol "_text" or "_stext", which marks the beginning of kernel mapping.
This was already being done in machine__create_kernel_maps(). Thus, this
patch is just a refactor, to move that code into
machine__get_kernel_start_addr().
Signed-off-by: Simon Que <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jiri Olsa <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/syscall-counts-by-pid-record')
0 files changed, 0 insertions, 0 deletions