From c436d97f5657d953ee90f7de4126f88a725ff343 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Mon, 25 Oct 2010 18:39:20 -0200 Subject: [PATCH] --- yaml --- r: 218670 b: refs/heads/master c: 2e7d1e3fb8043380a2fc5d759eb357bf05acf935 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/scripts/python/sctop.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 4ecc8285f0fd..90acf725f531 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6545aaa561b5678c497e94dea22cb2d1af1d6859 +refs/heads/master: 2e7d1e3fb8043380a2fc5d759eb357bf05acf935 diff --git a/trunk/tools/perf/scripts/python/sctop.py b/trunk/tools/perf/scripts/python/sctop.py index 6cafad40c296..547cbe99de68 100644 --- a/trunk/tools/perf/scripts/python/sctop.py +++ b/trunk/tools/perf/scripts/python/sctop.py @@ -8,10 +8,7 @@ # will be refreshed every [interval] seconds. The default interval is # 3 seconds. -import thread -import time -import os -import sys +import os, sys, thread, time sys.path.append(os.environ['PERF_EXEC_PATH'] + \ '/scripts/python/Perf-Trace-Util/lib/Perf/Trace') @@ -71,7 +68,7 @@ def print_syscall_totals(interval): for id, val in sorted(syscalls.iteritems(), key = lambda(k, v): (v, k), \ reverse = True): try: - print "%-40d %10d\n" % (id, val), + print "%-40s %10d\n" % (syscall_name(id), val), except TypeError: pass syscalls.clear()