Lines Matching refs:sys
12 import sys
17 print >> sys.stderr, "Usage: \n" + \
39 if sys.byteorder == 'little':
48 idx = 1 if sys.byteorder == 'little' else 0
68 print >>sys.stderr, "%s: read %d %d-bit PCs from %s" % (prog_name, size * 8 / bits, bits, path)
75 print >> sys.stderr, "%s: %d files merged; %d PCs total" % \
84 print >> sys.stderr, "%s: 1 file merged; %d PCs total" % \
90 if sys.stdout.isatty():
96 array.array('I', MagicForBits(bits)).tofile(sys.stdout)
98 a.tofile(sys.stdout)
103 print >> sys.stderr, "%s: unpacking %s" % (prog_name, path)
115 print >> sys.stderr, "%s: extracting %s" % \
132 print >> sys.stderr, "%s: reading map %s" % (prog_name, map_path)
146 print >> sys.stderr, "%s: unpacking %s" % (prog_name, path)
160 print >> sys.stderr, "warning: %s: pc %x outside of any known mapping" % (prog_name, pc)
168 print >> sys.stderr, "%s: writing %d PCs to %s" % (prog_name, len(pc_list), dst_path)
202 print >> sys.stderr, "%s: found %d instrumented PCs in %s" % (prog_name,
205 covered = set(int(line, 16) for line in sys.stdin)
206 print >> sys.stderr, "%s: read %d PCs from stdin" % (prog_name, len(covered))
208 print >> sys.stderr, "%s: %d PCs missing from coverage" % (prog_name, len(missing))
210 print >> sys.stderr, \
216 prog_name = sys.argv[0]
217 if len(sys.argv) <= 2:
220 if sys.argv[1] == "missing":
221 if len(sys.argv) != 3:
223 PrintMissing(sys.argv[2])
227 for f in sys.argv[2:]:
232 if sys.argv[1] == "print":
234 elif sys.argv[1] == "merge":
236 elif sys.argv[1] == "unpack":
238 elif sys.argv[1] == "rawunpack":