On Mon, Nov 08, 2010 at 03:57:54PM +0100, Oleg Nesterov wrote:Hmm, it seems to me that the last reference to the events are put in __perf_event_exit_task, and then free_event() is called there, which rcu queues the event to be released. Not sure where is the issue here. Hmm, in this case ptrace_bps will continue to trigger on the task they were applied. On the other hand, you're right, I'm not sure that the debugger is the correct owner for the breakpoints. I think it works though, looking at perf_event_create_kernel_counter(): event->owner = current; get_task_struct(current); (current is the debugger) On perf_event_release_kernel(): put_task_struct(event->owner); So even if the debugger dies, we keep a valid owner, it works but just makes few sense as the debugger can change. Perhaps the real owner should be the task on which we attach our breakpoint. What do you think? --
| Greg KH | Og dreams of kernels |
| Jens Axboe | [PATCH 31/33] Fusion: sg chaining support |
| Arnd Bergmann | Re: finding your own dead "CONFIG_" variables |
| Mark Brown | [PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset |
| Tony Breeds | [LGUEST] Look in object dir for .config |
git: | |
| Brian Downing | Re: Git in a Nutshell guide |
| John Benes | Re: master has some toys |
| Matthias Lederhofer | [PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree |
| Alexander Sulfrian | [RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set |
| Junio C Hamano | Re: Rss produced by git is not valid xml? |
| Linux Kernel Mailing List | iSeries: fix section mismatch in iseries_veth |
| Linux Kernel Mailing List | ixbge: remove TX lock and redo TX accounting. |
| Linux Kernel Mailing List | ixgbe: fix several counter register errata |
| Linux Kernel Mailing List |
