Yuck, that sounds far too complicated and slow. I would like the interface
as lightweight as possible to avoid stealing too much cache from the debugee.
What is wrong with a simple ptrace extension to read/write the performance
registers?
The lifetime problem is already solved by ptrace (the debugee is reparented
to the debugger and gets a SIGCHLD and can still access the zombie in a limited
fashion)
ptrace basically does not care about SMP, because a ptraced process is stopped
and fortunately cannot move CPUs while it is inspecting it. For virtual
counters the SMP problems are handled for free in the normal context switch
(no IPIs needed like for global ones)
-Andi
-- This is like TV. I don't like TV.- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/