Re: Map syscall nr to syscall name

2015-05-08 Thread sahil aggarwal
What arch? Try x86 , but looking for portable solution. http://lxr.free-electrons.com/source/arch/x86/syscalls/syscall_64.tbl For my arch this is helpful. Thank you ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Map syscall nr to syscall name

2015-05-08 Thread sahil aggarwal
Found something easier: syscallent.sh ( similar to used by strace ) - cat ${1+$@} | sed -n 's/^#[ ]*define[ ][ ]*SYS_\([^ ]*\)[ ]*[^0-9]*\([0-9]*\).*$/\1 \2/p s/^#[ ]*define[ ][ ]*__NR_\([^ ]*\)[

Map syscall nr to syscall name

2015-05-06 Thread sahil aggarwal
Hi all I am looking for an efficient way to convert syscall number to syscall name. I can get syscall number by enabling profiling using perf_event_open(), but cant find way to convert it to actual syscall name. Thanks --sahil ___ Kernelnewbies