Re: [PATCH 1/3] x86: record relocation offset

Xiao Guangrong
2009-12-31T03:01:55Z

Arnaldo Carvalho de Melo wrote:

>
> Conclusion: at 'perf record' time store the address of a well know
> symbol (_text) into the perf.data header. Later, at perf report time, if
> using a vmlinux file, calculate the relocation by subtracting the same
> well known symbol from the one stored in the header.
>
> So no need for ioctl or boot stuff.
>

I'm little confused, how to get the load symbol address?
It's not a good way, if you get it from '/proc/kallsyms', we can't assume kernel
has this file.

> I'll do that tomorrow, if Xiao doesn't beats me to it :-)
>

Of course, please do if you have a better way :-)

Thanks,
Xiao