On 09/20, Srikar Dronamraju wrote: > > +int uprobe_exception_notify(struct notifier_block *self, > + unsigned long val, void *data) > +{ > + struct die_args *args = data; > + struct pt_regs *regs = args->regs; > + int ret = NOTIFY_DONE; > + > + /* We are only interested in userspace traps */ > + if (regs && !user_mode_vm(regs)) > + return NOTIFY_DONE; > + > + switch (val) { > + case DIE_INT3: > + /* Run your handler here */ > + if (uprobe_bkpt_notifier(regs)) > + ret = NOTIFY_STOP; > + break; OK, but I simply can't understand do_int3(). It uses DIE_INT3 or DIE_TRAP depending on CONFIG_KPROBES. Oleg. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>