From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [RFC][PATCH v2 1/7] taskstats: Add new taskstats command TASKSTATS_CMD_ATTR_PIDS From: Peter Zijlstra In-Reply-To: <20101111170813.527389224@linux.vnet.ibm.com> References: <20101111170352.732381138@linux.vnet.ibm.com> <20101111170813.527389224@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Sat, 13 Nov 2010 20:20:05 +0100 Message-ID: <1289676005.2109.148.camel@laptop> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-Archive: List-Post: To: Michael Holzheu Cc: Shailabh Nagar , Andrew Morton , Venkatesh Pallipadi , Suresh Siddha , Ingo Molnar , Oleg Nesterov , John stultz , Thomas Gleixner , Balbir Singh , Martin Schwidefsky , Heiko Carstens , Roland McGrath , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org List-ID: On Thu, 2010-11-11 at 18:03 +0100, Michael Holzheu wrote: > As clock for 'now' and 'time' the sched_clock() function is used and the patch > + preempt_disable(); > + stats->time_ns = sched_clock(); > + preempt_enable(); > + task_snap_time = sched_clock(); That's just plain broken... > + t->sched_info.last_depart = task_rq(t)->clock; Are you sure you don't mean task_rq(t)->clock_task ?