linux-mips
[Top] [All Lists]

Re: FP exception statistics

To: Atsushi Nemoto <nemoto@toshiba-tops.co.jp>
Subject: Re: FP exception statistics
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Wed, 21 Nov 2001 19:25:30 +1100
Cc: linux-mips@oss.sgi.com
In-reply-to: <20011121.160347.48536367.nemoto@toshiba-tops.co.jp>; from nemoto@toshiba-tops.co.jp on Wed, Nov 21, 2001 at 04:03:47PM +0900
References: <20011121.160347.48536367.nemoto@toshiba-tops.co.jp>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Wed, Nov 21, 2001 at 04:03:47PM +0900, Atsushi Nemoto wrote:

> Sometimes I want to know what kind of (and how many times) FP
> exceptions occurred in run time.  Here is a patch to provide us these
> informations via /proc/cpuinfo.
> 
> Any comments are welcome.  (This patch is not tested on SMP)

It get's atomicity wrong.  I suggest to make such statistics a per thread
thing.  That'll not only solve the SMP issues but also make sure processes
running in parallel won't influence the result.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>