[RFC] Design + prototype: Multiple handler sets per probe address

William Cohen wcohen@redhat.com
Fri Apr 1 22:04:00 GMT 2005


Ananth N Mavinakayanahalli wrote:
> Hi,
> 
> Here is a design to support "Mulitple handler sets per address". I have 
> also put in the i386 implementation based on this design.
> 
> Some notes:
> 
> - The interfaces to register, unregister, define handlers all remain
> the same.
> - A kprobe and jprobe cannot co-exist at the same location. (Ideas are 
> welcome on how to support this).
> 
> I have minimally tested the patch and it works(tm).
> 
> Please let me know your thoughts on the design. I'd also appreciate if 
> you could test the patch (diffed against 2.6.12-rc1-mm3) and provide 
> feedback.
> 
> 
> Thanks,
> Ananth


I have been working on some simple testing to exercises the multiple 
probes. It checks to make sure that probes are inserted and deleted as 
expected. It has three probes at location.

I appologize for the verbose output. I have also attached output of the 
test results. There are some warning about allocating sleeping function.

It appears to be inserting and removing probes as expected.

It seems like it would be useful to have unregister_kprobe() return 
whether the operation was successful or not. Be able to catch cases were 
code attempts to remove a probe twice.

-Will
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kprobe_multi.tar.gz
Type: application/x-tar
Size: 1755 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/systemtap/attachments/20050401/df1799e3/attachment.tar>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testresults_multi.txt
URL: <http://sourceware.org/pipermail/systemtap/attachments/20050401/df1799e3/attachment.txt>


More information about the Systemtap mailing list