[PATCH] powerpc/syscalls/trace: Fix mmap in syscalls_trace

2017-04-11 Thread Balbir Singh
This patch uses SYSCALL_DEFINE6 for sys_mmap and sys_mmap2 so that the meta-data associated with these syscalls is visible to the syscall tracer. In the absence of this generic syscalls (defined outside arch) like munmap,etc. are visible in available_events, syscall_enter_mmap and syscall_exit_mmap

[RFC][PATCH] powerpc/syscalls/trace: Fix mmap in syscalls_trace

2017-04-10 Thread Balbir Singh
This patch uses SYSCALL_DEFINE6 for sys_mmap and sys_mmap2 so that the meta-data associated with these syscalls is visible to the syscall tracer. In the absence of this generic syscalls (defined outside arch) like munmap,etc. are visible in available_events, syscall_enter_mmap and syscall_exit_mmap