How to find which type of system call is used by a program

Posted by bala1486 on Stack Overflow See other posts from Stack Overflow or by bala1486
Published on 2010-04-30T19:42:30Z Indexed on 2010/04/30 19:47 UTC
Read the original article Hit count: 341

Filed under:
|

I am working on x86_64 machine. My linux kernel is also 64 bit kernel. As there are different ways to implement a system call (int 80, syscall, sysenter), i wanted to know what type of system call my machine is using. I am newbie to linux. I have written a demo program.

include

int main() { getpid(); return 0; }

getpid() does one system call. Can anybody give me a method to find which type of system call will be used by my machine for this program.. Thank you....

© Stack Overflow or respective owner

Related posts about linux

Related posts about systemcall