Re: [GIT PULL] tracing: Syscalls trace events + perf support

From: Frederic Weisbecker
Date: Wed Aug 12 2009 - 07:33:24 EST


On Wed, Aug 12, 2009 at 01:03:07PM +0200, Ingo Molnar wrote:
>
> one thing i noticed is that we dont seem to be catching
> compat syscalls properly:


Oh right. While looking at fs/compat.c, it seems most of the
compat syscalls haven't been defined through the SYSCALL_DEFINE
macro.

Grr...

Frederic.



> phoenix:~/linux/linux/tools/perf> perf stat -e
> syscalls:sys_enter_read -e syscalls:sys_enter_write -e
> syscalls:sys_enter_mmap ~/hackbench 10
> Time: 0.236
>
> Performance counter stats for '/home/mingo/hackbench 10':
>
> 0 syscalls:sys_enter_read
> 0 syscalls:sys_enter_write
> 0 syscalls:sys_enter_mmap
>
> 0.270062020 seconds time elapsed
>
> phoenix:~/linux/linux/tools/perf> file ~/hackbench
> /home/mingo/hackbench: ELF 32-bit LSB executable, Intel
> 80386, version 1 (SYSV), dynamically linked (uses shared
> libs), for GNU/Linux 2.2.5, not stripped
> phoenix:~/linux/linux/tools/perf> uname -a
> Linux phoenix 2.6.31-rc5-tip #3 SMP Wed Aug 12 12:50:38 CEST
> 2009 x86_64 x86_64 x86_64 GNU/Linux
>
>
> phoenix:~> perf stat -e syscalls:sys_enter_read -e
> syscalls:sys_enter_write -e syscalls:sys_enter_mmap
> ~/hackbench64 10
> Running with 10*40 (== 400) tasks.
> Time: 0.199
>
> Performance counter stats for '/home/mingo/hackbench64 10':
>
> 400402 syscalls:sys_enter_read
> 400403 syscalls:sys_enter_write
> 12 syscalls:sys_enter_mmap
>
> 0.247919263 seconds time elapsed
>
> phoenix:~> file hackbench64
> hackbench64: ELF 64-bit LSB executable, x86-64, version 1
> (SYSV), dynamically linked (uses shared libs), for GNU/Linux
> 2.6.9, not stripped
>
> Ingo

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/