intel / numatop

NumaTOP is an observation tool for runtime memory locality characterization and analysis of processes and threads running on a NUMA system.
BSD 3-Clause "New" or "Revised" License
197 stars 47 forks source link

Simple fixes, enhancements, port mgen selftest to powerpc #33

Closed BangoriaRavi closed 7 years ago

BangoriaRavi commented 7 years ago

Hi Jin,

Please pull few more patches. Most of the patches are simple fixes or enhancements. The major change is about mgen selftest. I saw many functions are re-defined in mgen.c which are already defined for numatop binary. Reuse all those functions instead of redefining them.

To make mgen reuse those functions, Makefile needs to be changed for dependencies and this needs the change in approach of how selftest gets compiled. Currently, we compile the selftest by 'cd test/mgen/' and run 'make' there. This method won't work now. Instead, use 'make test' from numatop home directory to build the selftest. Running 'make numatop' will build numatop binary and runing 'make' or 'make all' will build both numatop and mgen.

Finally, one patch ports mgen selftest on powerpc.

The last patch adds "IBM" name for powerpc wherever "Intel" is used for intel cpus.

Regards, Ravi