Customization of LKET

Li Guanglei guanglei@cn.ibm.com
Wed May 31 07:49:00 GMT 2006


Li Guanglei дµÀ:
> 
>   I modified systemtap to make it able to support lket_trace_extra at
> script level. In fact, lket_trace_extra has the same signature as
> printf, the difference is that printf will be turned into
> _stp_printf() in pass 3 while lket_trace_extra will be turned into
> _lket_trace_extra(). Attached is a draft patch against 0527 snapshot
> for this.

  After some testing, I found there are some bugs in this patch. Here
is an updated patch.

  The LKET's tapsets also need some changes. Now if a use want to
append extra trace data, he could use lket_trace_extra() at script
level and he can also call as many times of lket_trace_extra &
lket_backtrace as he want, e.g:

probe addevent.pagefault
{
  lket_trace_extra("%4b%0s", $numa_node, "testing str")
  lket_backtrace()
  lket_trace_extra(%8b", $address)
}

Any comments?

- Guanglei


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-lket_trace_extra
URL: <http://sourceware.org/pipermail/systemtap/attachments/20060531/bb57c54a/attachment.ksh>


More information about the Systemtap mailing list