pcp
[Top] [All Lists]

Re: pmdapapi buglets from Coverity scan

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Subject: Re: pmdapapi buglets from Coverity scan
From: Lukas Berk <lberk@xxxxxxxxxx>
Date: Thu, 26 Feb 2015 16:53:55 -0500
Cc: Nathan Scott <nathans@xxxxxxxxxx>, pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <20150226113052.GA13422@xxxxxxxxxx> (Frank Ch. Eigler's message of "Thu, 26 Feb 2015 06:30:52 -0500")
References: <1730959537.2690842.1423612674835.JavaMail.zimbra@xxxxxxxxxx> <8761atz99h.fsf@xxxxxxxxxx> <y0mtwyaer3q.fsf@xxxxxxxx> <87mw41s46o.fsf@xxxxxxxxxx> <20150226113052.GA13422@xxxxxxxxxx>
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Hey Frank,

"Frank Ch. Eigler" <fche@xxxxxxxxxx> writes:
[...]
> The effect of that patch would be not only to just disable auto-enable
> during the initial pmda install, but on every subsequent pmcd restart.
> That's harsh.

Admittedly that was a side effect I had not considered, and I would
agree it is undesirable. 

>> The qa would need updating again, which I can provide.  I would also
>> like to remove the phrasing that warnings are reasonable in the
>> testsuite, imo in this case, they aren't.
>
> The warnings in this case are apropos: some counter values are just
> not available for the asking.  By turning auto-enable off during
> install, as in your patch, this fact is obscured from the
> pmprobe/user, because then no counters are even attempted to be used!
> If the point of the pmdaInstall "pmprobe -i" is to exercise the pmda,
> then let's exercise it.

While I understand the warnings themselves are apropos, my issue with
them was more along the lines of, how is a user discern between those
warnings, and legitimate ones?  Perhaps a good compromise could be to
make mention/echo in the Install script (similar to pmdatrace),
mentioning to a user that this may happen.

>> On a side note, I'm not sure what the changes in pmdapapi.1 are
>> supposed to mean?  Are they mistakes? "#true -- ..." ?
>
> They're just comments, explaining each command.  They're executable,
> in case a user copy&pastes that section of the man page into a shell.

Ok.

Cheers,

Lukas

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