[GSOC2015] Review on idea

jitendra kumar khasdev jkhasdev at gmail.com
Thu Mar 19 04:19:44 UTC 2015


On Thu, 19 Mar 2015, Dmitry V. Levin wrote:
> 
> What kind of mapping are you talking about?
> In your printf/write example, not every printf() leads to a write syscall,
> some printf() calls lead to other syscalls, and other function calls may
> end up with a write syscall.
> 
> 
> -- 
> ldav
> 

Yes, this is the reason so that is why, want to perform one to many 
mapping between lib function and sys function.

Here is something which thought about output of the program as.


input : $ strace -xyz ./a.out
output:

in main():

	printf() -> 	syscall1();
		 	syscall2();
			syscall3();
			syscall4();
 
	fork() ->	syscall5();
			syscall6();
 			syscall7();

	<return value == 0>

in fun1():

	printf() ->     syscall8();
                        syscall9();
                        syscall10();
                        syscall11();
 
        fork() ->       syscall12();
                        syscall13();
                        syscall14();
	<return value == 56>

<normally program exited>


where syscall[i] represent the system call.



Regards,
Jitendra Kumar Khasdev,
CSE-Student | LNCT-E(GGITM)
jkhasdev at gmail.com| Mo.8871242083





More information about the Strace-devel mailing list