public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: Stan Cox <scox@redhat.com>
Cc: systemtap@sourceware.org
Subject: Re: revamp sdt.h
Date: Wed, 08 Sep 2010 00:27:00 -0000	[thread overview]
Message-ID: <20100908002734.B0F2F401AF@magilla.sf.frob.com> (raw)
In-Reply-To: Stan Cox's message of  Tuesday, 7 September 2010 11:05:41 -0400 <4C8654C5.9060503@redhat.com>

Hi Stan,

I was in a lousy mood on Friday, so sorry for the tone of my message.

My review of your changes had objections to some parts thoroughly isolated
to the tests, or the headers, and no objections to the translator changes.
For a variety of reasons like that, I find it far preferable always to do
multiple small commits rather than individual large ones.  Of course, it
always helps collaboration to push your branch frequently while you work,
and doing smaller-grained commits makes that easier.

Whenever you would use two separate paragraphs in traditional ChangeLog
format (i.e. a blank line between two * lines), then those should be two
separate commits.  Those should be separate whenever one change is
separable from the other (and sometimes even when they aren't really).

For example, I would have done one commit of just the systemtap.exp change,
one of just the sdt.h change, and another with the translator changes.

This makes it easier to revert one part cleanly (or just avoid merging it).
When reviewing changes, it makes it easier to approve/reject one part, etc.

Doing reversions by hand almost always results in unintended changes, and
one really never knows until much later whether they were in fact as
inconsequential as they seemed.

> > Your addition of _SDT_SEMAPHORE... I thought we had abandoned the semaphore thing,
> 
> The implementation is unchanged;  I changed the name to match the pattern in 
> sdt.h.  Nothing sacred about the name or implementation;  we can certainly 
> change it.  The semaphore mechanism is used to implement the *_ENABLED 
> mechanism, the usefulness of which is described by Mark here:
>   http://sourceware.org/ml/systemtap/2009-q1/msg00959.html

I don't really have an opinion about the semaphore feature.  It's just that
in my long posting proposing what we're now calling "sdt v3", I said I was
leaving out the semaphore because it wasn't being used, and nobody followed
up to say otherwise.  I had expected others to participate with me in the
discussion of my code before anyone just started reworking it.  I spent a
long time making the header file as pretty as it can be, so I'm more
sensitive about willy-nilly changes than is entirely reasonable.


The includes magic changes I made for the tests were done quite carefully,
and I did test them (using runcheck but not installcheck), so I'm surprised
you had issues I didn't see.  It's all rather subtle, so I think it's wise
to discuss any such changes rather than just sweep them in.  (I suppose I
should have done so.)  And, frankly, for anything that even might either be
subtle or ever be important, commits with a log explanation of "Tweak it"
are just inadequate.

Those paths need to be exactly just right to have installcheck actually
test the installed headers so we can know they got installed properly,
which is its purpose.  For the runcheck case, they need to be differently
exactly just right to have it find the right headers in the build and
source directories and no others.  For both cases, it's important that they
be found in an -isystem path so that -pedantic doesn't emit meaningless
stupid warnings that there is no other way to suppress (until GCC is fixed).


Thanks,
Roland

  reply	other threads:[~2010-09-08  0:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03  3:07 Roland McGrath
2010-08-09 15:16 ` Rayson Ho
2010-08-09 16:38   ` Roland McGrath
2010-08-11 13:11     ` Rayson Ho
2010-09-08  0:44       ` Roland McGrath
2010-09-29 17:18       ` Adding systemtap probe points in pthread library (was: Re: revamp sdt.h) Rayson Ho
2010-10-06 14:27         ` RFC: " Rayson Ho
2010-09-03 20:36     ` revamp sdt.h Stan Cox
2010-09-03 20:38       ` Roland McGrath
2010-09-03 20:42         ` Stan Cox
2010-09-03 21:02           ` Roland McGrath
2010-09-07 15:08             ` Stan Cox
2010-09-08  0:27               ` Roland McGrath [this message]
2010-09-08 15:44                 ` Stan Cox
2010-09-08 17:37                   ` Mark Wielaard

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=20100908002734.B0F2F401AF@magilla.sf.frob.com \
    --to=roland@redhat.com \
    --cc=scox@redhat.com \
    --cc=systemtap@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).