[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190820093907.GG2332@hirez.programming.kicks-ass.net>
Date: Tue, 20 Aug 2019 11:39:07 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: longli@...uxonhyperv.com
Cc: Ingo Molnar <mingo@...hat.com>,
Keith Busch <keith.busch@...el.com>, Jens Axboe <axboe@...com>,
Christoph Hellwig <hch@....de>,
Sagi Grimberg <sagi@...mberg.me>,
linux-nvme@...ts.infradead.org, linux-kernel@...r.kernel.org,
Long Li <longli@...rosoft.com>
Subject: Re: [PATCH 1/3] sched: define a function to report the number of
context switches on a CPU
On Mon, Aug 19, 2019 at 11:14:27PM -0700, longli@...uxonhyperv.com wrote:
> +u64 get_cpu_rq_switches(int cpu)
> +{
> + return cpu_rq(cpu)->nr_switches;
> +}
> +EXPORT_SYMBOL_GPL(get_cpu_rq_switches);
Also, that is broken on 32bit.
Powered by blists - more mailing lists