aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-05 11:52:45 -0500
committerAlon Zakai <alonzakai@gmail.com>2014-02-05 11:52:45 -0500
commitdb8a8a991adc6057bf78f8d0cae4d6c7dfaa4bca (patch)
tree5cf925a62d135ddcdf269b09ab0bd0b1d3a5665b
parente4550588041beb105b0d2e0e04f925519180fd86 (diff)
tool to parse unaligned output
-rw-r--r--tools/parse_unaligned.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/parse_unaligned.py b/tools/parse_unaligned.py
new file mode 100644
index 00000000..614ea692
--- /dev/null
+++ b/tools/parse_unaligned.py
@@ -0,0 +1,17 @@
+import os, sys
+from subprocess import Popen, PIPE, STDOUT
+
+shown = set()
+
+for line in open(sys.argv[1]).readlines():
+ try:
+ x = line.split(' in ')[1].split(':')[0]
+ #output = str([x, Popen(['c++filt', x], stdout=PIPE).communicate()])
+ output = Popen(['c++filt', x], stdout=PIPE).communicate()[0]
+ if output not in shown:
+ shown.add(output)
+ print output,
+ except:
+ pass
+
+