On 10.02.2012 01:21, Tom Hughes wrote:
> On 09/02/12 20:36, Matthias Schwarzott wrote:
>
>> The attached patch applies against valgrind svn revision 12373.
>> Tested on a Gentoo amd64 installation built for 64bit and also built for
>> 32bit (with --enable-only32bit).
>
> Please open a bug in the bug tracker and attach your patch to it so 
> that it doesn't get lost.
>
> Tom
>
I created https://bugs.kde.org/show_bug.cgi?id=294047 and attached a new 
version of the patch there.

The attached patch does this:
Change prlimit64 to behave like a combination of the existing setrlimit and
getrlimit.
Run emulation only if ARG0 (pid) is 0 or equal getpid()
improve setrlimit (like new prlimit64) to return EINVAL if softlimit>hardlimit
Add tests (using getrlimit64 and setrlimit64)

TODO: Tests using prlimit and prlimit64 (perhaps with different pid
values)

on x86:
getrlimit ->  syscall getrlimit
setrlimit ->  syscall setrlimit
prlimit ->  syscall prlimit64
getrlimit64 ->  syscall prlimit64
setrlimit64 ->  syscall prlimit64
prlimit64 ->  syscall prlimit64

on amd64:
getrlimit ->  syscall getrlimit
setrlimit ->  syscall setrlimit
prlimit ->  syscall prlimit64
getrlimit64 ->  syscall getrlimit
setrlimit64 ->  syscall setrlimit
prlimit64 ->  syscall prlimit64

Regards
Matthias


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to