This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] instruction tracing probe


This patch set implements user space instruction tracing by the following itrace probe:
probe process(PID_OR_NAME).itrace [ if (<condition>) ]
{
// instr tracing code
}
where the <condition> is used to turn tracing on and off using user probes like:
probe process(<PID>).statement(<instr_addr>).absolute
{
some_condition_variable = 1
}


       probe process(<PID>).statement(<instr_addr>).absolute.return
       {
               some_condition_variable = 0
       }

The implementation is based on the utrace capability of handling the single step
trap. A btrace probe could easily be added when utrace supports block stepping.


--
Dave Nomura
LTC Linux Power Toolchain

Attachment: itrace.patch.gz
Description: application/gzip


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]