On Tue, 6 Mar 2007, Roland McGrath wrote:That sounds like a rather fragile approach to avoiding a minimal amount of work. Debug exceptions don't occur very often, and when they do it won't matter too much if we go through some extra notifier-chain callouts. Back to a previous topic: It turns out that this won't work correctly unless I use something stronger, like a spinlock or RCU. Either one seems like overkill. Is there any way to find out from within the switch_to_thread_hw_breakpoint routine whether the task is in this unusual state? (By which I mean the task is being debugged and the debugger hasn't told it to start running.) Would (tsk->exit_code == SIGKILL) work? If not, can we add a TIF_DEBUG_STOPPED flag? Or should I just go with a spinlock? Is SIGKILL the only way this can happen? In a similar vein, I need a reliable way to know whether a task has gone through exit_thread(). If it has, then its hw_breakpoint area has been deallocated and a new one must not be allocated. Will (tsk->flags & PF_EXITING) always be true once that happens? Alan Stern -
| Arjan van de Ven | [patch] Add basic sanity checks to the syscall execution patch |
| Matthew Wilcox | Re: AIM7 40% regression with 2.6.26-rc1 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
git: | |
| Andy Whitcroft | Re: VCS comparison table |
| David | User's mailing list? And multiple cherry pick |
| Scott Chacon | Git Community Book |
| Mark Levedahl | Re: [PATCH] Teach remote machinery about remotes.default config variable |
| Marco Peereboom | Re: Real men don't attack straw men |
| Richard Stallman | Real men don't attack straw men |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Tony Abernethy | Re: What is our ultimate goal?? |
| Arjan van de Ven | Re: [GIT]: Networking |
| Jeff Garzik | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Denys Fedoryshchenko | packetloss, on e1000e worse than r8169? |
| Radu Rendec | Endianness problem with u32 classifier hash masks |
