From: pbartosz on
I have a question about using ptrace system call.
I'm going to write a program loader that can control used memory size
and executing time.
I can use PTRACE_SINGLESTEP to control parameters after every single
instruction but in this way controlled program will execute much
slower.
Is there any other idea to overcome this problem?
From: Scott Lurndal on
pbartosz <bartoszpop(a)gmail.com> writes:
>I have a question about using ptrace system call.
>I'm going to write a program loader that can control used memory size
>and executing time.

Why?

man setrlimit.

scott
From: pbartosz on
> Why?

For educational reasons.

> man setrlimit.

Thanks, I'll use it.