From dd0b2f6fcd9a9f178762dd621b0e6771d63efabb Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Mon, 25 Oct 2010 17:11:25 -0200 Subject: [PATCH] --- yaml --- r: 218669 b: refs/heads/master c: 6545aaa561b5678c497e94dea22cb2d1af1d6859 h: refs/heads/master i: 218667: c42945a7b3ba57c0f915d6096b7fa3ef5cb97b19 v: v3 --- [refs] | 2 +- trunk/tools/perf/scripts/python/syscall-counts.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 76b8ccac3161..4ecc8285f0fd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6cc7361440e499abb3a30cdbcfedad03e43c92ae +refs/heads/master: 6545aaa561b5678c497e94dea22cb2d1af1d6859 diff --git a/trunk/tools/perf/scripts/python/syscall-counts.py b/trunk/tools/perf/scripts/python/syscall-counts.py index f977e85ff049..ea183dc82d29 100644 --- a/trunk/tools/perf/scripts/python/syscall-counts.py +++ b/trunk/tools/perf/scripts/python/syscall-counts.py @@ -13,6 +13,7 @@ from perf_trace_context import * from Core import * +from Util import syscall_name usage = "perf trace -s syscall-counts.py [comm]\n"; @@ -27,7 +28,7 @@ syscalls = autodict() def trace_begin(): - pass + print "Press control+C to stop and show the summary" def trace_end(): print_syscall_totals() @@ -55,4 +56,4 @@ def print_syscall_totals(): for id, val in sorted(syscalls.iteritems(), key = lambda(k, v): (v, k), \ reverse = True): - print "%-40d %10d\n" % (id, val), + print "%-40s %10d\n" % (syscall_name(id), val),