Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started