how to print element in struct prams??
Frank Ch. Eigler
fche@redhat.com
Fri Mar 9 02:39:00 GMT 2012
ch huang <justlooks@gmail.com> writes:
> if i put a probe on function do_command(thd), the argument thd is a
> structor ,and i want check a element named command in the structor,how
> to do?
> probe process.function("do_command") {
> printf("%s",$$prams->command)
> }
Drop the double-$ at the beginning. That's for meta-variables like
$$vars, $$parms, $$locals. If you want a pretty-printed form of just
one field of just one variable, try
println($thd->command$)
- FChE
More information about the Systemtap
mailing list