[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160406203219.788ae7cf@kryten>
Date: Wed, 6 Apr 2016 20:32:19 +1000
From: Anton Blanchard <anton@...ba.org>
To: Ingo Molnar <mingo@...nel.org>
Cc: Srikar Dronamraju <srikar@...ux.vnet.ibm.com>, tglx@...utronix.de,
efault@....de, htejun@...il.com, linux-kernel@...r.kernel.org,
tj@...nel.org, torvalds@...ux-foundation.org,
zhaolei@...fujitsu.com, peterz@...radead.org,
yangds.fnst@...fujitsu.com, hpa@...or.com,
Stephen Rothwell <sfr@...b.auug.org.au>,
Michael Ellerman <mpe@...erman.id.au>
Subject: Re: [tip:sched/core] sched/cpuacct: Split usage accounting into
user_usage and sys_usage
Hi,
> > > void cpuacct_charge(struct task_struct *tsk, u64 cputime)
> > > {
> > > struct cpuacct *ca;
> > > + int index;
> > > +
> > > + if (user_mode(task_pt_regs(tsk)))
> > > + index = CPUACCT_USAGE_USER;
> > > + else
> > > + index = CPUACCT_USAGE_SYSTEM;
This is oopsing because PowerPC task_pt_regs() returns NULL for
kernel threads.
Anton
Powered by blists - more mailing lists