SUSE / libpulp

libpulp enables live patching in user space applications.
GNU Lesser General Public License v2.1
55 stars 11 forks source link

Use process_vm_readv and process_vm_writev instead of ptrace #144

Closed giulianobelinassi closed 2 years ago

giulianobelinassi commented 2 years ago

New linux versions (> 5.13) provides process_vm_readv and process_vm_writev which can significally reduce the running time of trigger. Quickly patching "read_memory" reduces:

real 0m8.407s to real 0m7.448s

On the stress test (Xeon E5-2670 v3).

giulianobelinassi commented 2 years ago

Done.