tud-zih-energy / lo2s

Linux OTF2 Sampling - A Lightweight Node-Level Performance Monitoring Tool
https://tu-dresden.de/zih/forschung/projekte/lo2s?set_language=en
GNU General Public License v3.0
45 stars 13 forks source link

NEC Support Part 2: Sampling #253

Closed cvonelm closed 7 months ago

cvonelm commented 1 year ago

As far as my research goes, NEC does not have dedicated sampling infrastructure in the same vein as contemporary general purpose processors.

But as #237 mentions it, you should be able to read all registers of the accelerator side from the host side. This includes the instruction counter (IC), which is only a little bit of ELF magic away from giving us the name of the function.

If I'm interpreting the IC in this file correctly, then you should be able to read the instruction counter using memory-mapped I/O via PCI. However, the rest is pretty cryptic.