package misc
- Alphabetic
- Public
- All
Type Members
Value Members
-
object
ElfMapper extends App
Dev tool which takes as input two file : - The ELF file of the app being executed, currently linux (/media/data2/proj/vexii/litex/buildroot/buildroot/build/rv32ima/build/linux-custom/vmlinux) - A text file formated with lines which have hexadecimal values.
Dev tool which takes as input two file : - The ELF file of the app being executed, currently linux (/media/data2/proj/vexii/litex/buildroot/buildroot/build/rv32ima/build/linux-custom/vmlinux) - A text file formated with lines which have hexadecimal values. Those values being the PC being executed by the CPU, sampled at random intervals.
So, this tool will generate a histogram of which function from the ELF file makes the CPU busy the most time.
The input text file being generated by running the Litex's VexiiRiscv SoC, and extracting via jtag the CPU PC location via the src/main/tcl/openocd/trace.tcl script, which uses a custom JTAG tap instruction (0x17) to sample the CPU PC without any disturbance to the CPU.
To enable that hardware probe, you need to have the --with-debug-probe-pc0 added to the litex's --vexii-args parameters
- object ElfTest extends App