[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190820110430.GL2332@hirez.programming.kicks-ass.net>
Date: Tue, 20 Aug 2019 13:04:30 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: c00423981 <caomeng5@...wei.com>
Cc: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] cpustat: print watchdog time and statistics of soft and
hard interrupts in soft lockup scenes
On Mon, Aug 19, 2019 at 03:12:24PM +0800, c00423981 wrote:
> +static u64 cpustat_curr_cputime(int cpu, int index)
> +{
> + u64 time;
> +
> + if (index == CPUTIME_IDLE)
> + time = get_idle_time(cpu);
> + else if (index == CPUTIME_IOWAIT)
> + time = get_iowait_time(cpu);
NAK; don't add new users of this terminally broken interface.
Powered by blists - more mailing lists