lkml.org 
[lkml]   [2012]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/3 v2] perf tool: give user better message if precise is not supported
From
Date
On Fri, 2012-09-14 at 22:11 +0200, Ingo Molnar wrote:
> return -EPERF_CPU_PRECISE_EV_NOTSUPP;

I just don't like having to enumerate all possible fails, I'm too lazy.
Can't we be smarter about that? Could we do a {reason}x{bit-offset} like
thing?

Where we limit reason to a few simple things like:

invalid
out-of-range
not-supported

and have the bit-offset indicate the field we're having the particular
problem with?

Then all we need is a smart way to generate and map the bit-offsets
without too much manual labour.


\
 
 \ /
  Last update: 2012-09-15 00:01    [W:0.047 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site