cgtop: Fix processing of controllers other than CPU
authorSzabolcs Fruhwald <sfruhwald@google.com>
Wed, 20 Feb 2019 20:38:50 +0000 (12:38 -0800)
committerRaspbian forward porter <root@raspbian.org>
Sat, 13 Jul 2019 01:30:09 +0000 (02:30 +0100)
commitec7aac4082cb2fdeb6982b4a4f3f73b6fa5c8e97
treeca5bb56e2cb5132df33ae561739cc3394b11d9dc
parentc281802b9c22980190b804738a261cefa835fd62
cgtop: Fix processing of controllers other than CPU

After debugging the issue with gdb, I found that the following change

 94ddb08 "cgtop: Still try to get CPU statistics if controller-free"

has introduced a bug, which prevents process(..) method processing
memory and io controllers when cpu_accounting_is_cheap() is true.
The obvious fix is to move this branch to be the last one, keeping
the intended behavior of the above change, without having a negative
effect on the other controllers.

Fixes #11773 [systemd-cgtop no longer shows memory (and io) usage]

(cherry picked from commit 5fe74e893c7939a360dc4eb75dbf3f540526c968)

Gbp-Pq: Name cgtop-Fix-processing-of-controllers-other-than-CPU.patch
src/cgtop/cgtop.c