Messages in this thread | | | Date | Fri, 30 Jun 2006 09:02:03 -0700 | From | Stephane Eranian <> | Subject | Re: [PATCH 10/17] 2.6.17.1 perfmon2 patch for review: PMU context switch |
| |
Andi,
As a first step, I am looking at implementing a TIF_DEBUG for x86-64. AFAIK, debug registers must not be inherited on fork().
In copy_thread(), I do not see the place where the child's debug registers (or just debugreg7) are cleared to avoid reloading the parents values in __switch_to() if debugreg7 is not 0. I believe the debug registers values are copied in dup_task_struct().
Am I missing something?
-- -Stephane - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |