tracing/syscalls: combined patches from cyanogenmod (thanks to googy_anas)