Re: Counting System Calls

Craig Milo Rogers (rogers@ISI.EDU)
Fri, 17 Apr 1998 18:23:36 -0700


>A bit radical, but why not make /sbin/init a shell script which does
>strace -f -o /tmp/sclog -c -S calls /sbin/init.real

Three reasons: Performance, performance, and performance! By
the way, is tracing inherited by child processes?

Counting the syscalls isn't a problem -- it's easy to see what
to do in "arch/i386/.../entry.S". Allocating the buffer in
appropriate read/write memory, ensuring it is cleared (does that
happen automatically?) on bootup, learning the interface to make a new
"/proc" file -- those are the tasks.

Craig Milo Rogers

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu