Re: Tracing of vfork
H. Peter Anvin (hpa@transmeta.com)
14 Mar 1999 05:08:32 GMT
Followup to: <19990312101306.E12085@turtle.tat.physik.uni-tuebingen.de>
By author: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
In newsgroup: linux.dev.kernel
>
> On Mar 11, Michael Elizabeth Chastain wrote:
>
> > Yes there are no-op system calls. Just change it to sys_getpid,
> > and smash whatever you want on top of the return value on the way out.
> > Or set ORIG_EAX to __NR_nice and EBX to 0.
>
> be careful, nice(0) isn't necessaily a NOP all the time!
> it's not true if nice<0 before calling...
>
Sure it is: the argument is the *adjustment* to the priority level.
-hpa
--
"Linux is a very complete and sophisticated operating system. There
are, and will be, large numbers of applications available for it."
-- Paul Maritz, Group Vice President for Platforms And Applications,
Microsoft Corporation [Reference at: http://www.kernel.org/~hpa/ms.html]
-
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/