[patch] Set buf as address type in tapset's syslog probe

Frank Ch. Eigler fche@redhat.com
Wed Aug 29 17:12:00 GMT 2007


"Zhaolei" <zhaolei@cn.fujitsu.com> writes:

> [...]  In probe syslog in tapset, buf is set as string type in
> argstr.  But buf is always used for storing returned data in
> syslog().  So i think it is better to set it to address type(%p).
> [...]

You're right.  The confusion probably arises from syslog(3), which
*sends* message strings to the syslog daemon.  syslog(2) *reads* them
from the kernel system log.  The syslog(2) man page says as much.

- FChE



More information about the Systemtap mailing list