lkml.org 
[lkml]   [2011]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateSat, 4 Jun 2011 12:23:50 +0200
FromIngo Molnar <>
SubjectRe: [patch] perf - comment /proc/sys/kernel/perf_event_paranoid to be part of user ABI

* Vince Weaver <vweaver1@eecs.utk.edu> wrote:

> On Tue, 24 May 2011, Ingo Molnar wrote:
>
> > I agree with Vince that as far as shell scripts are concerned, checking
> > /proc/sys/kernel/perf_event_paranoid would work best - and it works better than
> > having to check the perf syscall.
> >
> > Vince: mind sending a patch that adds a comment to perf_event_paranoid that
> > userspace relies on the existence of that file as a feature check? Having such
> > reminders in the code works even better than frequent testing ;-)
>
> Such a patch is included below. Not sure if this is exactly what you
> meant.

Yeah, that's exactly what i meant - we don't need more really.

Most sysctls are not ABIs (there's no userspace that relies on them)
so the general attitude is to change them freely and backtrack if
something breaks unexpectedly. We can avoid that by commenting the
dependency.

Thanks,

Ingo


\
 
 \ /
  Last update: 2011-06-04 12:27    [from the cache]
©2003-2010