mpstat.pl: improve the script, implement the basic function.