lkml.org 
[lkml]   [2009]   [Nov]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4] perf tools: Add support for breakpoint events in perf tools

* Frederic Weisbecker <fweisbec@gmail.com> wrote:

> > Using just /proc/kallsyms all we can do is find the size of a
> > variable by looking at its address and the address of the next one.
> >
> > - Arnaldo
>
> Hmm, but I worry a bit about alignment which would return us the wrong
> size.
>
> May be can we first try to get the address from /proc/kallsyms, and if
> we have dwarf, get the size from it, otherwise try some magic with
> /proc/kallsysms...

Can we extend /proc/kallsyms (or add /proc/kallsyms) to include a size
field?

Perhaps can we generate some sort of DSO-alike thing in /proc/vmlinux
(via a default-off debug option in .config), that perf could just
interpret the usual ELF way - which happens to be the symbol table of
the kernel? It would use up some RAM, but it would also be quite useful
for debugging purposes.

Ingo


\
 
 \ /
  Last update: 2009-11-23 22:27    [W:0.034 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site