From: Jiri Olsa <jolsa@redhat.com>
To: Vince Weaver <vincent.weaver@maine.edu>
Cc: Peter Zijlstra <peterz@infradead.org>,
linux-kernel@vger.kernel.org, Paul Mackerras <paulus@samba.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
Stephane Eranian <eranian@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Andi Kleen <ak@linux.intel.com>
Subject: Re: perf/Documentation/ABI -- add some documentation for perf_event sysfs usage
Date: Sun, 7 Jul 2013 16:56:04 +0200 [thread overview]
Message-ID: <20130707145604.GD23433@krava.brq.redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1307051119410.27475@vincent-weaver-1.um.maine.edu>
On Fri, Jul 05, 2013 at 11:28:08AM -0400, Vince Weaver wrote:
> On Fri, 5 Jul 2013, Jiri Olsa wrote:
>
> > On Thu, Jul 04, 2013 at 11:02:53AM +0200, Peter Zijlstra wrote:
> > > On Wed, Jul 03, 2013 at 11:14:40PM -0400, Vince Weaver wrote:
>
> > > > Documentation/ABI/testing/sysfs-bus-event_source-devices-events
> > > >
> > > > Should the ldlat value be fixed to be hex? Or should we ammend the ABI
> > > > document to allow decimal?
> > >
> > > I don't see a good reason not to allow decimal as well. Jolsa?
> >
> > yep, no technical problem with decimal
> >
> > hum, the doc mentions 'event' term only, which IS hex only AFAICS ;-)
> >
> > I think this docs should be updated and either describe all
> > allowed terms or be generic enough to cover all of them.
>
> So you're saying the official kernel ABI should be "whatever the
> userspace perf tool happens to accept"?
nope, I meant whatever term is used by kernel to describe the event
'event, umask, edge, pc, any, inv, cmask, ldat'
please check x86_event_sysfs_show function
>
> That's not really useful, especially as perf doesn't distinguish between
> event strings read from sysfs and those passed on the perf command line.
> The ABI documentation in effect ends up being a pointer to a mostly
> incomprehensible lex/yacc file.
the documentation is missing, no argument here :-\
'sysfs-bus-event_source-devices-events' could be more descriptive
>
> I think we should just remove the
> Documentation/ABI/testing/sysfs-bus-event_source-devices-events
> file as it's misleading. Userspace broke and no one cares.
>
> It's not even easy to audit all places in the kernel that create the sysfs
> event files because each architecture does it differently. And there's no
> sane way to unit test this on a new kernel release because the values
> printed depend on the hardware you have, so without a full range of all
> families of cpus for all architectures you never know when someone has
> added a decimal value, or started depending on { characters, etc.
>
> This is the problem with perf in the tools directory, any other user of
> the ABI is eternally second-class.
with updated documentation I dont see the issue
jirka
prev parent reply other threads:[~2013-07-07 14:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-03 19:39 Vince Weaver
2013-07-04 3:14 ` Vince Weaver
2013-07-04 9:02 ` Peter Zijlstra
2013-07-04 22:02 ` Jiri Olsa
2013-07-05 15:28 ` Vince Weaver
2013-07-07 14:56 ` Jiri Olsa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130707145604.GD23433@krava.brq.redhat.com \
--to=jolsa@redhat.com \
--cc=acme@ghostprotocols.net \
--cc=ak@linux.intel.com \
--cc=eranian@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=vincent.weaver@maine.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®