From: Prasanna S P. <pra...@in...> - 2003-12-30 15:14:16
|
Hi, Your patch basically exports the list of the inserted Kprobes into "user space" /proc. Exporting list of inserted Kprobes to "user space" can be done using "SysRq Keys". Please refer to the patch kprobes-260-test11-sysrq-1.patch for listing the inserted Kprobes using SysRq Key. -- Thanks Prasanna S Panchamukhi Linux Technology Center India Software Labs, IBM Bangalore Ph: 91-80-5044632 > From: "Krishnakumar. R" <kri...@na...> > Reply-To: kri...@na... > To: dp...@ww... > Cc: vam...@in... > Organization: Naturesoft Ltd > Date: 29 Dec 2003 21:55:55 +0900 > Subject: [Dprobes] [PATCH] Proc interface for Kprobes > > Hi, > > Description > ----------- > The following patch will add a new feature, > to the kprobes core patch. This will enable > any one using kprobes core patch to see > all the probes that are set up by just using > > "cat /proc/debuggers/kprobes" > > The above will give an output containing > a probe number and the address on which > the probe is set up. > > This is very useful for people who use > only the core patch for the kernel debugging. > > The patch is to be applied over the 2.6.0-test9 > core kprobes patch. > > > Testing done > ------------ > I have tested the patch on a single processor > machine. Its not tested on SMP (I dont have > an smp machine with me.. sigh !!) > > Please add this patch to the core kprobes > patch (if found okay). > > Testing is _not_ performed on whether > the code will fail if a probe is removed > before the proc is totally read. > > > Module and Scripts used for testing > ------------------------------------ > I used a module to load 1000 probes. > (kprobes.c file in the link given below) > Then used a script to check whether > all these probes are properly displayed > (check.sh in the link below) > Please find all the code in the link > below. > > http://puggy.symonds.net/~krishnakumar/kprobes.html > (all code is GPL'ed) > > > Diffstat of the patch > ---------------------- > > kprobes.c | 87 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files > changed, 87 insertions(+) > > |