Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755920AbYJ3Oz7 (ORCPT ); Thu, 30 Oct 2008 10:55:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755295AbYJ3Ozu (ORCPT ); Thu, 30 Oct 2008 10:55:50 -0400 Received: from www.church-of-our-saviour.org ([69.25.196.31]:41467 "EHLO thunker.thunk.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753343AbYJ3Ozu (ORCPT ); Thu, 30 Oct 2008 10:55:50 -0400 Date: Thu, 30 Oct 2008 10:55:43 -0400 From: Theodore Tso To: =?iso-8859-1?Q?J=F6rn?= Engel Cc: Steven Rostedt , LKML , Arjan van de Ven , Mike Snitzer , Andrew Morton , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Daniel Walker , Linus Torvalds Subject: Re: [PATCH 1/2 v3][RFC] trace: profile likely and unlikely annotations Message-ID: <20081030145543.GC14744@mit.edu> Mail-Followup-To: Theodore Tso , =?iso-8859-1?Q?J=F6rn?= Engel , Steven Rostedt , LKML , Arjan van de Ven , Mike Snitzer , Andrew Morton , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , Frederic Weisbecker , Daniel Walker , Linus Torvalds References: <170fa0d20810271529g3c64ae89me29ed8b65a9c3b5e@mail.gmail.com> <20081028001340.GB9797@mit.edu> <20081028143720.GD8869@mit.edu> <20081028074816.04193e04@infradead.org> <20081030143238.GB7157@logfs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20081030143238.GB7157@logfs.org> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@mit.edu X-SA-Exim-Scanned: No (on thunker.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1232 Lines: 31 On Thu, Oct 30, 2008 at 03:32:39PM +0100, J?rn Engel wrote: > On Wed, 29 October 2008 18:39:55 -0400, Steven Rostedt wrote: > > > > 69768 61064 87 __switch_to process_64.c 624 > > 15557 115251 100 __switch_to process_64.c 594 > > 15555 115227 100 __switch_to process_64.c 590 > > I may be out of school for a while, but that math sure looks odd. > > > + if (p->correct) { > > + percent = p->incorrect * 100; > > + percent /= p->correct; > percent /= p->correct + p->incorect; And once you do the above fix, I don't think what is below is necessary any more. :-) > > + /* No need to see huge numbers */ > > + if (percent > 100) > > + percent = 100; I would also calculate the percent correct rather than the percent incorrect, on the general theory that 100% good, 0% bad is easier for my little brain to understand, but that's just a minor thing... - Ted -- 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/