Lines Matching full:sample
195 def common_start_str(comm, sample): argument
196 ts = sample["time"]
197 cpu = sample["cpu"]
198 pid = sample["pid"]
199 tid = sample["tid"]
200 if "machine_pid" in sample:
201 machine_pid = sample["machine_pid"]
202 vcpu = sample["vcpu"]
207 def print_common_start(comm, sample, name): argument
208 flags_disp = get_optional_null(sample, "flags_disp")
210 # period = sample["period"]
211 # phys_addr = sample["phys_addr"]
212 # weight = sample["weight"]
213 # transaction = sample["transaction"]
214 # cpumode = get_optional_zero(sample, "cpumode")
215 print(common_start_str(comm, sample) + "%8s %21s" % (name, flags_disp), end=' ')
217 def print_instructions_start(comm, sample): argument
218 if "x" in get_optional_null(sample, "flags"):
219 print(common_start_str(comm, sample) + "x", end=' ')
221 print(common_start_str(comm, sample), end=' ')
230 def print_common_ip(param_dict, sample, symbol, dso): argument
231 ip = sample["ip"]
233 if "cyc_cnt" in sample:
234 cyc_cnt = sample["cyc_cnt"]
235 insn_cnt = get_optional_zero(sample, "insn_cnt")
254 if "addr_correlates_sym" in sample:
255 addr = sample["addr"]
256 dso = get_optional(sample, "addr_dso")
257 symbol = get_optional(sample, "addr_symbol")
258 offs = get_offset(sample, "addr_symoff")
263 def print_srccode(comm, param_dict, sample, symbol, dso, with_insn): argument
264 ip = sample["ip"]
266 start_str = common_start_str(comm, sample) + ("%x" % ip).rjust(16).ljust(40)
269 start_str = common_start_str(comm, sample) + (symbol + offs).ljust(40)
308 sample = param_dict["sample"]
321 cpu = sample["cpu"]
328 print_srccode(comm, param_dict, sample, symbol, dso, True)
330 print_instructions_start(comm, sample)
331 print_common_ip(param_dict, sample, symbol, dso)
334 print_srccode(comm, param_dict, sample, symbol, dso, False)
336 print_common_start(comm, sample, name)
337 print_common_ip(param_dict, sample, symbol, dso)
339 print_common_start(comm, sample, name)
341 print_common_ip(param_dict, sample, symbol, dso)
343 print_common_start(comm, sample, name)
345 print_common_ip(param_dict, sample, symbol, dso)
347 print_common_start(comm, sample, name)
349 print_common_ip(param_dict, sample, symbol, dso)
351 print_common_start(comm, sample, name)
353 print_common_ip(param_dict, sample, symbol, dso)
355 print_common_start(comm, sample, name)
357 print_common_ip(param_dict, sample, symbol, dso)
359 print_common_start(comm, sample, name)
361 print_common_ip(param_dict, sample, symbol, dso)
363 print_common_start(comm, sample, name)
365 print_common_ip(param_dict, sample, symbol, dso)
367 print_common_start(comm, sample, name)
369 print_common_ip(param_dict, sample, symbol, dso)
371 print_common_start(comm, sample, name)
373 print_common_ip(param_dict, sample, symbol, dso)
375 print_common_start(comm, sample, name)
376 print_common_ip(param_dict, sample, symbol, dso)