Skip to content

Commit

Permalink
Merge pull request iovisor#1388 from sandip4n/fix-tools-syscount
Browse files Browse the repository at this point in the history
Fix 'tools/syscount' from using incorrect fallback values
  • Loading branch information
brendangregg committed Oct 12, 2017
2 parents 5054de5 + a068a03 commit b334702
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/syscount.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import itertools
import subprocess
import sys
import platform

if sys.version_info.major < 3:
izip_longest = itertools.izip_longest
Expand Down Expand Up @@ -362,7 +363,10 @@ def parse_syscall(line):
out = subprocess.check_output('ausyscall --dump | tail -n +2', shell=True)
syscalls = dict(map(parse_syscall, out.strip().split('\n')))
except Exception as e:
pass
if platform.machine() == "x86_64":
pass
else:
raise Exception("ausyscall: command not found")

parser = argparse.ArgumentParser(
description="Summarize syscall counts and latencies.")
Expand Down

0 comments on commit b334702

Please sign in to comment.