This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rethinking syscall tapset


On Tue, 2006-02-07 at 15:17 -0500, Frank Ch. Eigler wrote:

> In other words, returnp does not appear to enable much commonality.
> Unless someone comes up with examples that demonstrate a better
> potential use of "returnp", we should reconsider it.

It's there to help deal with our lack of predicates so I don't have to
keep making the same changes in different places.

probe syscall.*, syscall.*.return {
  if (some expression using pid(), target, and execname()) {
    if (returnp)
       print
    else
       print something else
  }
}

Also, I am planning to eventually make returnp indicate something about
the return value's type.

Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]