Skip to content
Advertisement

Tag: operating-system

How the parent is restored after vfork()

As vfork creates the child process in the same address space as that of the parent, and when execv() is called on the child then how is the parent process restored, as exec loads the file and runs it in the same address space of the parent and hence the child? Answer When execv follows a true vfork, it does

Collect and sum statistics of `strace` commands?

I know that I can runstrace -c ls to collect system call statistics on the ls executable. However, I want to run the command strace -c {some executable here} mulitiple times over different executables, merge the individual results, and then write to a single file. I want to merge the ‘syscall’ and the ‘calls’ columns. So for example, if ls

Advertisement