Question: (10 points) 'strace' is a Linux utility which monitors a program and prints out the details of the system calls made by the program Write

 (10 points) 'strace' is a Linux utility which monitors a program

(10 points) 'strace' is a Linux utility which monitors a program and prints out the details of the system calls made by the program Write a "Hello, world!" program in C using C's printf() function and use the 'strace' command to see all system calls made by the program. (See the man page for strace details) (a) (5 points) Produce your result of strace on 'Hello World' program. (attach print out) (b) (5 points) You should see a lot of system calls that are not directly related to printing out the "Hello, world!" string. Figure out (or guess) what these system calls are, what purposes these calls are serving, and who is calling these functions dedicated to system calls. You can specify section 2 by, for example, "$ man 2 write", which should show the man page of write) system call instead of the write command. (10 points) 'strace' is a Linux utility which monitors a program and prints out the details of the system calls made by the program Write a "Hello, world!" program in C using C's printf() function and use the 'strace' command to see all system calls made by the program. (See the man page for strace details) (a) (5 points) Produce your result of strace on 'Hello World' program. (attach print out) (b) (5 points) You should see a lot of system calls that are not directly related to printing out the "Hello, world!" string. Figure out (or guess) what these system calls are, what purposes these calls are serving, and who is calling these functions dedicated to system calls. You can specify section 2 by, for example, "$ man 2 write", which should show the man page of write) system call instead of the write command

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!