Re: [PATCH] 2-ptrace_multi

From: Andi Kleen
Date: Thu May 18 2006 - 16:16:34 EST


renzo@xxxxxxxxxxx (Renzo Davoli) writes:

> ptmulti kernel patch inserts a new useful option for ptrace() call,
> adding a new request type to ptrace() syscall.
>
> With PTRACE_MULTI option you can send multiple ptrace requests with a
> single system call: commonly a process that uses ptrace() needs
> several PTRACE_PEEKDATA for getting some useful, even small pieces of data.
> It is useful for these programs to run several ptrace
> operations while limiting the number of context switches.

What context switches do you mean? System calls? Linux is in general
designed to have very cheap system calls and they shouldn't be more tha
a few hundred cycles.

>
> Debuggers and virtual machines (like User Mode Linux) and many other
> applications that are based on ptrace can get great
> performance improvements by PTRACE_MULTI: the number of system
> calls (and context switches) decreases significantly.

You forgot to add numbers?

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/