Messages in this thread | | | Date | Thu, 09 May 2013 13:43:52 -0600 | From | David Ahern <> | Subject | Re: [PATCH 5/9] perf tools: Set maximum precise value for event 'p' modifier |
| |
On 5/9/13 7:32 AM, Jiri Olsa wrote: > +static int precise_default(void) > +{ > + int precise = perf_precise__get(); > + static int warned; > + > + /* > + * Precise info not supported by by this kernel, > + * set 1 as the precise value. > + */ > + if (precise == -1) > + precise = 1; > + > + /* PEBS is not supported here, display warning. */ > + if (precise == 0 && !warned++) > + pr_warning("warning: no precise support, " > + "using non-precise event(s)\n");
WARN_ONCE().
David
| |