Lines Matching full:sample

231 def common_start_str(comm, sample):  argument
232 ts = sample["time"]
233 cpu = sample["cpu"]
234 pid = sample["pid"]
235 tid = sample["tid"]
236 if "machine_pid" in sample:
237 machine_pid = sample["machine_pid"]
238 vcpu = sample["vcpu"]
243 def print_common_start(comm, sample, name): argument
244 flags_disp = get_optional_null(sample, "flags_disp")
246 # period = sample["period"]
247 # phys_addr = sample["phys_addr"]
248 # weight = sample["weight"]
249 # transaction = sample["transaction"]
250 # cpumode = get_optional_zero(sample, "cpumode")
251 print(common_start_str(comm, sample) + "%8s %21s" % (name, flags_disp), end=' ')
253 def print_instructions_start(comm, sample): argument
254 if "x" in get_optional_null(sample, "flags"):
255 print(common_start_str(comm, sample) + "x", end=' ')
257 print(common_start_str(comm, sample), end=' ')
266 def print_common_ip(param_dict, sample, symbol, dso): argument
267 ip = sample["ip"]
269 if "cyc_cnt" in sample:
270 cyc_cnt = sample["cyc_cnt"]
271 insn_cnt = get_optional_zero(sample, "insn_cnt")
290 if "addr_correlates_sym" in sample:
291 addr = sample["addr"]
292 dso = get_optional(sample, "addr_dso")
293 symbol = get_optional(sample, "addr_symbol")
294 offs = get_offset(sample, "addr_symoff")
299 def print_srccode(comm, param_dict, sample, symbol, dso, with_insn): argument
300 ip = sample["ip"]
302 start_str = common_start_str(comm, sample) + ("%x" % ip).rjust(16).ljust(40)
305 start_str = common_start_str(comm, sample) + (symbol + offs).ljust(40)
343 sample = param_dict["sample"]
357 cpu = sample["cpu"]
364 print_srccode(comm, param_dict, sample, symbol, dso, True)
366 print_instructions_start(comm, sample)
367 print_common_ip(param_dict, sample, symbol, dso)
370 print_srccode(comm, param_dict, sample, symbol, dso, False)
372 print_common_start(comm, sample, name)
373 print_common_ip(param_dict, sample, symbol, dso)
375 print_common_start(comm, sample, name)
377 print_common_ip(param_dict, sample, symbol, dso)
379 print_common_start(comm, sample, name)
381 print_common_ip(param_dict, sample, symbol, dso)
383 print_common_start(comm, sample, name)
385 print_common_ip(param_dict, sample, symbol, dso)
387 print_common_start(comm, sample, name)
389 print_common_ip(param_dict, sample, symbol, dso)
391 print_common_start(comm, sample, name)
393 print_common_ip(param_dict, sample, symbol, dso)
395 print_common_start(comm, sample, name)
397 print_common_ip(param_dict, sample, symbol, dso)
399 print_common_start(comm, sample, name)
401 print_common_ip(param_dict, sample, symbol, dso)
403 print_common_start(comm, sample, name)
405 print_common_ip(param_dict, sample, symbol, dso)
407 print_common_start(comm, sample, name)
409 print_common_ip(param_dict, sample, symbol, dso)
411 print_common_start(comm, sample, name)
412 print_common_ip(param_dict, sample, symbol, dso)
420 sample = param_dict["sample"]
421 glb_cpu = sample["cpu"]
422 ts = sample["time"]