lkml.org 
[lkml]   [2003]   [Jul]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Use of Performance Monitoring Counters based on Model number
On Wed, Jul 16, 2003 at 06:19:56PM +0100, John Levon wrote:

> > Attached is a small patch to make Linux kernel use of performance
> > monitoring MSRs based on known processor models. Future processor
> > implementation models may not support the same MSR layout.
> If you're going to do this you should fix up arch/i386/oprofile/ to
> error out similarly at least

It'd also be nice to let the user know why things aren't working
instead of silent failure. A simple

printk (KERN_INFO "Performance counter support for this CPU not yet added.\n");

Should do the trick.

Dave
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.169 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site