Skip to main content

Timeline for strace command with line num

Current License: CC BY-SA 4.0

3 events
when toggle format what by license comment
Jan 3, 2020 at 14:43 comment added user1794469 I don't think you really mean system calls. System calls are special functions that allow userspace programs to interact with the kernel. The current list is something like this man7.org/linux/man-pages/man2/syscalls.2.html. But also is there a reason you need to use strace? You can use macros to print out the line number (or the line number plus one if the macro is actually the line before what you want to know).
Jan 3, 2020 at 9:19 comment added Priyashi Actually I want to know the system calls for the few lines of code in my example.c like fork(),usleep(), printf. I am not able to find a way how i can do this . Is there some way in which we can just use function calls directly from the .c file and know the system call interupts?
Jan 2, 2020 at 20:21 history answered user1794469 CC BY-SA 4.0