On Tue, Sep 25, 2007 at 02:13:33PM +0530, Ananth N Mavinakayanahalli wrote:I don't think we should have this type of comment in any of the files. I don't think you'll need uio,h here. I'd rather write this as: /* Always end with a call to jprobe_return(). */ jprobe_return(); return 0; } Also a a note not to these example but general kprobes code I've bee wondering whether jprobe_return() should just include the return. Yes, macros including a return are ugly, but in this case jprobe_return actually handles the return anyway through deep magic. Shouldn't this be simply done in the static initialization, ala: static struct jprobe my_jprobe = { .entry = jdo_fork, .kp = { .symbol_name = "do_fork", }, }; (same for the other examples) Now this is really ugly. We should really have macros for the interesting registers (instruction pointer, frame pointer, stack pointer) in kdebug.h. systemtap runtime already has them for supported architectures, any care to port them over? (note that this is not an objection to the patch as-is, but rather a suggestion for later improvement of the whole thing) Thanks a lot for moving this in the right place! -
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Arjan van de Ven | Re: Linux 2.6.27-rc8 |
git: | |
| Arjan van de Ven | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
