From: Xie XiuQi <xiexiuqi(a)huawei.com>
commit f70278e987fba33140bbbf958c3806737c73aebe openEuler-1.0
hulk inclusion
category: feature
bugzilla: 5510
CVE: NA
both match partid and pmg.
Signed-off-by: Xie XiuQi <xiexiuqi(a)huawei.com>
Reviewed-by: Hanjun Guo <guohanjun(a)huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang(a)huawei.com>
Signed-off-by: Xin Hao <haoxing990(a)gmail.com>
---
arch/arm64/kernel/mpam.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/kernel/mpam.c b/arch/arm64/kernel/mpam.c
index 260490dad226..a33a01285d81 100644
--- a/arch/arm64/kernel/mpam.c
+++ b/arch/arm64/kernel/mpam.c
@@ -917,10 +917,11 @@ static void show_resctrl_tasks(struct rdtgroup *r, struct seq_file
*s)
rcu_read_lock();
for_each_process_thread(p, t) {
if ((r->type == RDTCTRL_GROUP && t->closid == r->closid) ||
- (r->type == RDTMON_GROUP && t->rmid == r->mon.rmid))
- seq_printf(s, "%d: partid = %d, pmg = %d, (group: partid %d, pmg %d)\n",
+ (r->type == RDTMON_GROUP && t->closid == r->closid &&
+ t->rmid == r->mon.rmid))
+ seq_printf(s, "%d: partid = %d, pmg = %d, (group: partid %d, pmg %d, mon
%d)\n",
t->pid, t->closid, t->rmid,
- r->closid, r->mon.rmid);
+ r->closid, r->mon.rmid, r->mon.mon);
}
rcu_read_unlock();
}
--
2.31.0