pidstat: Report CPU usage for a process as the sum of all threads
Commit
52977c4 introduced a new macro (SP_VALUE_100()) to limit CPU
usage value displayed by pidstat to 100%. This was intended to be a
workaround for some corner cases where inaccurate statistics could be
provided by the kernel.
Yet this macro also limits the value to 100% even when a process uses
more than 100% of a core, e.g. when it starts several threads loading
the system. This patch reverts commit
52977c4 and reports CPU usage
for a process as the sum of CPU usage for all its threads.
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>