On Fri, 28 Mar 2008 00:13:48 +0100 "Vegard Nossum" <vegard.nossum@gmail.com> wrote:I guess that would be appropriate. I think it should go into this function: +static int kmmio_die_notifier(struct notifier_block *nb, unsigned long val, + void *args) +{ + struct die_args *arg = args; + + if (val == DIE_DEBUG) + if (post_kmmio_handler(arg->err, arg->regs) == 1) + return NOTIFY_STOP; + + return NOTIFY_DONE; +} On the other hand I am thinking of not using the die notifier chain at all and adding a direct call from do_debug() or something. This is the last dynamic hook remaining from the out-of-tree module era of mmiotrace. I guess with the notifier list there is a possibility that another module intercepts my single step trap, so that this is never called, which would leave mmiotrace half blind, and also trigger a recursive probe hit. btw. what if someone uses kmemcheck and mmiotrace at the same time? Mmiotrace will not fiddle with any other pages than returned via __ioremap(), but can kmemcheck "hide" the same mmio pages? Also keeping in mind, that some day I'd like to make mmiotrace able to catch mmio accesses originating in user space. Thanks. -- Pekka Paalanen http://www.iki.fi/pq/ --
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andi Kleen | [PATCH x86] [0/16] Various i386/x86-64 changes |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Arjan van de Ven | Re: [GIT]: Networking |
