Re: Counting System Calls

MOLNAR Ingo (mingo@chiara.csoma.elte.hu)
Fri, 17 Apr 1998 23:02:10 +0200 (CEST)


On Fri, 17 Apr 1998, Craig Milo Rogers wrote:

> >> Has anyone created entry.S code to count system calls (per
> >> syscall number), and /proc code to read these counts?
> >
> >no kernel change needed, eg. try:
> >
> > strace -c -S calls w
>
> That counts a single process' calls. I was thinking about
> count of all system calls (summed across all processes) from boot-up
> on. This would be a useful tool in the context of the proposed
> modular system call mechanism.

ah, i understand.

but there is a granularity problem i think. With modules we 'waste' about
2K per module due to 4K page sizes. (every module has to have it's own set
of pages). With 183 syscalls we'd waste much more 'partial pages', about
183*2K=366K resident memory, brrr.

-- mingo

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