inline documentation syntax
Frank Ch. Eigler
fche@redhat.com
Tue Feb 5 16:50:00 GMT 2008
Hi -
A followup on my note regarding bug #5679. Other than nits regarding
my suggested operator "@@" (hey, pronounce it "look-here"!), the other
possibility would be to support javadoc. The difficulty with this is
that IMO it's important for the translator do directly parse this
stuff, and not just leave it to a separate documentation generator
tool.
One reason for that is because we want the impending "listing"
function (stap -l 'syscall.*') to produce informative data, such as:
syscall.read (syscalls.stp:55:33) - alias to kernel.function("sys_read")
fd - numeric file descriptor
buf_uaddr - user-space buffer pointer, use user_buffer()
count - number of bytes
argstr - formatted argument string
This same style of annotation and searching should also work for
functions and global variables.
One might imagine teaching the translator to parse javadoc and its
internal markup and then heuristically search for this info in /** */
comments left nearby the actual script code, but that idea leaves me
cold.
- FChE
More information about the Systemtap
mailing list