Hi, I propose a patch to powertop which I use privately to enhance the "show pid" option. currently if more than one process-name are present, powertop does not assign the values to the separate pids, but only to the process-name (e.g. "java"). When having multiple such applications running, it is hard to find out which application is actually causing the wakeups. This is especially bad for java-applications, as usually the IDE itself is also a java application (eclipse, intellij) and thus it is hard to see how much the application under test contributes to wakeups.
In the patch I try to change this so multiple entries are shown for different pids if the option "show pids" is used either on the commandline via --pid or via the "P" key. The patch does the following things: - it handles push_line_pid differently to store the entry per pid even if the process-name appears multiple times - it changes push_line to note the time that is not directly related to a pid for every process, as I could not find a better way and assigning it to only one pid also felt wrong - if resolves thread-pids to pids via /proc/<pid>/task/<threadpid> Please let me know what you think and if this is useful for powertop in general. Thanks... Dominik.
list_separate_pids.dpatch
Description: Binary data
_______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
