public inbox for trinity@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <michael@ellerman.id.au>
To: Vince Weaver <vincent.weaver@maine.edu>
Cc: Dave Jones <davej@redhat.com>,
	trinity@vger.kernel.org, ak@linux.intel.com
Subject: Re: Expected 0x
Date: Thu, 04 Jul 2013 12:42:39 +1000	[thread overview]
Message-ID: <1372905759.12381.3.camel@concordia> (raw)
In-Reply-To: <alpine.DEB.2.10.1307031435440.12584@vincent-weaver-1.um.maine.edu>

On Wed, 2013-07-03 at 14:43 -0400, Vince Weaver wrote:
> On Wed, 3 Jul 2013, Dave Jones wrote:
> 
> > Linus' current tree seems to trigger this in perf_event_open on startup:
> > 
> >                         if (value[ptr]!='0') fprintf(stderr,"Expected 0x\n");
> >                         ptr++;
> >                         if (value[ptr]!='x') fprintf(stderr,"Expected 0x\n");
> >                         ptr++;
> > 
> > I think it's from this..
> > 
> > /sys/bus/event_source/devices/cpu/events/mem-loads
> > event=0xcd,umask=0x1,ldlat=3
> > 
> > Looks like that field isn't always hex.
> 
> Ugh, I would have thought they were using sprintf() or something
> to generate these, but they just hard-code the string in the kernel.
> 
>   EVENT_ATTR_STR(mem-loads, mem_ld_snb, "event=0xcd,umask=0x1,ldlat=3");
> 
> The only documentation for what to expect are the lex/yacc files in
> tools/perf/util/parse-events.*

It's sort of documented here:

Documentation/ABI/testing/sysfs-bus-event_source-devices-events


Though strictly speaking that only applies to the events listed in that
file, which doesn't include mem-loads.

And it says it should be hex.

cheers


  reply	other threads:[~2013-07-04  2:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-03 18:21 Expected 0x Dave Jones
2013-07-03 18:43 ` Vince Weaver
2013-07-04  2:42   ` Michael Ellerman [this message]
2013-07-04  3:07     ` Vince Weaver
2013-07-04  5:10       ` Michael Ellerman
2013-07-03 21:07 ` Vince Weaver
2013-07-03 21:29   ` Dave Jones
2013-07-04  3:19     ` Vince Weaver
2013-07-04  4:28       ` Vince Weaver

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=1372905759.12381.3.camel@concordia \
    --to=michael@ellerman.id.au \
    --cc=ak@linux.intel.com \
    --cc=davej@redhat.com \
    --cc=trinity@vger.kernel.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