perf python scripting: print the syscall name on sctop
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Oct 2010 20:39:20 +0000 (18:39 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 25 Oct 2010 20:47:27 +0000 (18:47 -0200)
commit2e7d1e3fb8043380a2fc5d759eb357bf05acf935
tree2441ddd20ba7674bfa3160bff2e56ef2f3aaae0d
parent6545aaa561b5678c497e94dea22cb2d1af1d6859
perf python scripting: print the syscall name on sctop

[root@emilia tmp]# perf trace sctop 1
syscall events:

event                                          count
----------------------------------------  ----------
read                                          215400
futex                                           4029
write                                            376
brk                                               33
rt_sigprocmask                                    24
select                                            17
lseek                                              2
fsync                                              1
^C[root@emilia tmp]#

Cc: David S. Miller <davem@davemloft.net>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/sctop.py