Lines Matching defs:opcode
20 # opcode: {
32 # opcode: nsec
243 def hcall_table_lookup(opcode):
244 if (opcode in hcall_table):
245 return hcall_table[opcode]
247 return opcode
251 def sort_output(opcode):
252 stats = output[opcode]
296 for opcode in sorted(output, key = sort_output,
298 h_name = hcall_table_lookup(opcode)
299 time = output[opcode]['time']
300 cnt = output[opcode]['cnt']
301 min_t = output[opcode]['min']
302 max_t = output[opcode]['max']
307 opcode, retval):
308 if (cpu in d_enter and opcode in d_enter[cpu]):
309 diff = nsecs(sec, nsec) - d_enter[cpu][opcode]
311 if (opcode in output):
312 output[opcode]['time'] += diff
313 output[opcode]['cnt'] += 1
314 if (output[opcode]['min'] > diff):
315 output[opcode]['min'] = diff
316 if (output[opcode]['max'] < diff):
317 output[opcode]['max'] = diff
319 output[opcode] = {
326 del d_enter[cpu][opcode]
331 callchain, opcode):
333 d_enter[cpu][opcode] = nsecs(sec, nsec)
335 d_enter[cpu] = {opcode: nsecs(sec, nsec)}