pcp
[Top] [All Lists]

Re: [pcp] pcp updates: build, pmdapapi, qa

To: Lukas Berk <lberk@xxxxxxxxxx>
Subject: Re: [pcp] pcp updates: build, pmdapapi, qa
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed, 10 Dec 2014 00:35:55 -0500 (EST)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1323238935.13657717.1418172958894.JavaMail.zimbra@xxxxxxxxxx>
References: <87vbllyirx.fsf@xxxxxxxxxx> <501165841.12943406.1418088614551.JavaMail.zimbra@xxxxxxxxxx> <87vblkaa1a.fsf@xxxxxxxxxx> <1323238935.13657717.1418172958894.JavaMail.zimbra@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: dcGTsbI2s5wokuZB33ycqyJ1BBaIeH5qmE5J
Thread-topic: pcp updates: build, pmdapapi, qa
Hi Lukas,

----- Original Message -----
> ----- Original Message -----
> > [...]
> > Ah, thanks for catching that.  As you pointed to on irc, adding an
> > autoconf check which triggers a macro definition should fix a sitation
> > like this.  I've added that in commit 3ba8c73256cfb7b3 on lberk/dev.
> 
> Taa.
> 
> > I've tested the build on a local RHEL6 vm and everything builds
> > smoothly.  Would you like another pcp updates email?
> 
> (not necessary)
> 
> > or is noting the commit here enough to merge?
> 
> I think letting folks know like this is fine, thanks!
> 

Its all merged, then I realised there may be a little issue.  The man
page reference uses "papi.system.perf.BRANCH-MISSES" as an example -
is that a name that would actually come out of PAPI?  (I assume so)

The problem is, the hyphen there is not valid as part of a metric name.
In some tools, like pmie, that symbol is a keyword in the language and
is used to separate tokens (so the above would be parsed as "MISSES" &
"papi.system.perf.BRANCH", with the subtraction token in-between).

The legal characters in metric names are described in pmns(5), in the
"SYNTAX" section.  I guess we'll need a mapping function to translate
between the two forms (for events with invalid PMNS names, we'd need a
way to replace hyphens with underscores, for example - not sure what
other kinds of characters might appear in PAPI event names though).

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>