Messages in this thread |  | | Date | Tue, 11 Feb 2014 12:08:20 +0100 | From | Peter Zijlstra <> | Subject | Re: [PATCH 00/21] perf, c2c: Add new tool to analyze cacheline contention on NUMA systems |
| |
On Tue, Feb 11, 2014 at 12:04:23PM +0100, Stephane Eranian wrote: > >> How do you know that load at addr 0x1000 is accessing variable bar? > >> The IP gives you line number, and then what? > >> I think dwarf has the mapping regs -> variable and yes, the type info. > >> But I am not sure that's enough. > > > > Ah, but if you have the instruction, you can decode it and obtain the > > reg and thus type-info, no? > > > But on x86, you can load directly from memory, you'd only have the > target reg for the load. Not enough.
But if you load an immediate, you should be able to find it in the symbol table.
Any other load will have a register base and will thus have type-info therefrom.
|  |