Lines Matching refs:log_file
56 def ResetLogFile(log_file):
57 if log_file != sys.stdout:
58 log_file.seek(0)
60 def PrintByteArray(log_file, byte_array):
62 print >>log_file, hex(byte) + " ",
63 print >>log_file
66 def __init__(self, byte_width, log_file, start=0, skip=1):
68 self.m_log_file = log_file
97 def __init__(self, byte_width, log_file):
99 self.m_log_file = log_file
118 log_file = None
121 global log_file
123 log_file = open(args.log, 'w')
125 log_file = sys.stdout
128 instruction_provider = RandomInstructionProvider(args.bytes, log_file)
136 instruction_provider = SequentialInstructionProvider(args.bytes, log_file, start, skip)
160 print >>log_file, "Invalid instruction list"
164 print >>log_file, "Invalid instruction"
168 print >>log_file, instr_output_stream.GetData()