lkml.org 
[lkml]   [2018]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] tg: show the sum wait time of an task group
On Wed, Jul 04, 2018 at 11:27:27AM +0800, 王贇 wrote:

> @@ -6788,6 +6790,12 @@ static int cpu_cfs_stat_show(struct seq_file *sf, void *v)
> seq_printf(sf, "nr_throttled %d\n", cfs_b->nr_throttled);
> seq_printf(sf, "throttled_time %llu\n", cfs_b->throttled_time);
>
> + if (schedstat_enabled() && tg != &root_task_group) {

I put the variables here.

> + for_each_possible_cpu(i)
> + ws += schedstat_val(tg->se[i]->statistics.wait_sum);

This doesn't quite work on 32bit archs, but I'm not sure I care enough
to be bothered about that.

> + seq_printf(sf, "wait_sum %llu\n", ws);
> + }

\
 
 \ /
  Last update: 2018-07-23 11:32    [W:0.156 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site