linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.33k stars 1.02k forks source link

cpuhotplug: Get rid of sar #612

Open metan-ucw opened 5 years ago

metan-ucw commented 5 years ago

The cpuhotplug05.c uses sar to check if CPU statistics are updated properly while CPU is being offlined and onlined. The main problem is that sar output is not stable and it also includes additional layer of complex code between the kernel we want to test and the test itself.

So instead of parsing sar output the test should be rewritten to use /proc/stat directly.

xuyang0410 commented 5 years ago

I think we can also check /proc/cpuinfo for online/offline cpu.