GNU/Linux xterm-256color bash 316 views

See the (Linux) procmap utility in action on a TI BeagleBone Black (BBB) 32-bit board! This util displays both the kernel and user Virtual Address Spaces (VAS) in detail, in an intuitive console-based display ‘drawing’.

Here, we begin from scratch: we first do the git clone on the BBB, cd to the procmap folder and run it on the bash process… As it’s the very first run, it detects that the procmap kernel module isn’t built and it builds it.

It then proceeds to analyze and display the details (notice how slow it is on this board compared to a modern x64 laptop or desktop!). Here, it runs on a ‘bash’ process; the output shows both the kernel and user VAS of the process in detail: the name of every memory region (technically, mapping), it’s size, permissions, mapping type (pvt / shared as p / s), offset from beginning of file (if a file mapping), and the virtual address where it’s mapped. When done, we modify the ‘config’ file - turning on the SHOW_STATS option - and then rerun it (kernel-only to save time); this time it shows some stats when finished.

(Like it!? Please Star the project on GitHub and contribute! https://github.com/kaiwan/procmap )