diff options
author | 2022-08-26 00:41:09 +0800 | |
---|---|---|
committer | 2022-09-09 11:08:33 +0200 | |
commit | 57899a6610e67ba26fa3251ebbef4a5ed21efc5d (patch) | |
tree | cd4fe1689b8e0f4001966dba898bd9e809a86152 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | sched/psi: Add PSI_IRQ to track IRQ/SOFTIRQ pressure (diff) | |
download | wireguard-linux-57899a6610e67ba26fa3251ebbef4a5ed21efc5d.tar.xz wireguard-linux-57899a6610e67ba26fa3251ebbef4a5ed21efc5d.zip |
sched/psi: Consolidate cgroup_psi()
cgroup_psi() can't return psi_group for root cgroup, so we have many
open code "psi = cgroup_ino(cgrp) == 1 ? &psi_system : cgrp->psi".
This patch move cgroup_psi() definition to <linux/psi.h>, in which
we can return psi_system for root cgroup, so can handle all cgroups.
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Link: https://lore.kernel.org/r/20220825164111.29534-9-zhouchengming@bytedance.com
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions