Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932555AbZACUlZ (ORCPT ); Sat, 3 Jan 2009 15:41:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755810AbZACUlQ (ORCPT ); Sat, 3 Jan 2009 15:41:16 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:57107 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754353AbZACUlQ (ORCPT ); Sat, 3 Jan 2009 15:41:16 -0500 Date: Sun, 4 Jan 2009 05:40:37 +0900 (JST) From: KOSAKI Motohiro To: Roland McGrath , Sripathi Kodi , Ingo Molnar , Frank Mayhar , LKML Subject: [PATCH] getrusage: RUSAGE_THREAD should return ru_utime and ru_stime Cc: kosaki.motohiro@jp.fujitsu.com Message-Id: <20090104053654.069C.KOSAKI.MOTOHIRO@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.42 [ja] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1301 Lines: 42 I believe that's bugfix. not new implement. == Subject: [PATCH] getrusage: RUSAGE_THREAD should return ru_utime and ru_stime Impact: regression fix Original getrusage(RUSAGE_THREAD) implementation can return ru_utime and ru_stime. but unforunately commit f06febc96ba8e0af80bcc3eaec0a109e88275fac break it. this patch restore it. Signed-off-by: KOSAKI Motohiro CC: Roland McGrath CC: Sripathi Kodi Cc: Ingo Molnar CC: Frank Mayhar --- kernel/sys.c | 2 ++ 1 file changed, 2 insertions(+) Index: b/kernel/sys.c =================================================================== --- a/kernel/sys.c 2009-01-04 05:01:15.000000000 +0900 +++ b/kernel/sys.c 2009-01-04 05:35:51.000000000 +0900 @@ -1551,6 +1551,8 @@ static void k_getrusage(struct task_stru utime = stime = cputime_zero; if (who == RUSAGE_THREAD) { + utime = task_utime(current); + stime = task_stime(current); accumulate_thread_rusage(p, r); goto out; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/