public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* syscall tapset reorg again?
@ 2006-03-01 18:32 Martin Hunt
  0 siblings, 0 replies; only message in thread
From: Martin Hunt @ 2006-03-01 18:32 UTC (permalink / raw)
  To: Hien Nguyen; +Cc: systemtap

Hien,

I checked in returnstr(). So a simple probe might look like this:

probe syscall.close {
        printf("%s: %s(%s) = ", execname(), name, argstr)
}

probe syscall.close.return {
        printf("%s\n", returnstr(returnp))
}

syscalls that return pointers should set returnp to 2 in
the return probe to indicate that returnstr should display the output in
hex.

---

I think it is time to attempt a reorganization of the syscalls. Actually
we probably should have done this first. Instead of syscalls.stp,
syscalls2.stp and aux_syscalls.stp, I think we need something like
syscall_net.stp, syscall_file.stp, syscall_process.stp, syscall_ipc.stp,
and syscall_misc.stp. This makes it easier to work on related syscalls.
Plus it should speed up the translation process. We can combine the
probes with the functions they use. Or perhaps it is better to put them
in their own set of files; net_funcs.stp, file_funcs.stp, etc. These
could be useful to script writers even if not using the syscall tapset.

Martin


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-01 18:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-01 18:32 syscall tapset reorg again? Martin Hunt

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