public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* changelog files, %( %) idioms
@ 2008-02-25 15:00 Frank Ch. Eigler
  2008-03-03 12:18 ` Ananth N Mavinakayanahalli
  2008-03-06  9:10 ` examples/wait4time.stp Wenji Huang
  0 siblings, 2 replies; 8+ messages in thread
From: Frank Ch. Eigler @ 2008-02-25 15:00 UTC (permalink / raw)
  To: srinivasa; +Cc: systemtap

Hi -

Please remember to add ChangeLog file entries for patches you commit.
You committed several important fixes that only show up on careful
search of cvs/git logs.  Please rescan src/HACKING for guidelines, and
consider retroactively adding the ChangeLog entries.

Thanks for the bug #5772 patch.  It is possible to make the %( kernel
%) conditionals look more compact by realizing that they don't operate
at the statement but at the token level.  That means one can use them
around just the smallest bit of code that needs to be changed for
different versions/architectures, so that instead of:

   %( kernel_vr > "2.6.24" %?
   argstr = sprintf("%d, %p, %s, %p", $upid, $stat_addr, _wait4_opt_str($options), $ru)
   %:
   argstr = sprintf("%d, %p, %s, %p", $pid, $stat_addr, _wait4_opt_str($options), $ru)
   %)

and

   %( kernel_vr > "2.6.24" %?
      pid = $upid
   %:
      pid = $pid
   %)

one could write ...

   argstr = sprintf("%d, %p, %s, %p",
     %( kernel_vr > "2.6.24" %? $upid %: $pid %),
     $stat_addr, _wait4_opt_str($options), $ru)

and

   pid = %( kernel_vr > "2.6.24" %? $upid %: $pid %)


- FChE

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-03-06 15:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-25 15:00 changelog files, %( %) idioms Frank Ch. Eigler
2008-03-03 12:18 ` Ananth N Mavinakayanahalli
2008-03-03 16:24   ` Frank Ch. Eigler
2008-03-03 16:48     ` William Cohen
2008-03-04  4:29       ` Ananth N Mavinakayanahalli
2008-03-06 14:48         ` William Cohen
2008-03-06 15:16           ` Ananth N Mavinakayanahalli
2008-03-06  9:10 ` examples/wait4time.stp Wenji Huang

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).