Lines Matching full:sample
114 def print_sample(sample): argument
115 print("Sample = { cpu: %04d addr: 0x%016x phys_addr: 0x%016x ip: 0x%016x " \
117 (sample['cpu'], sample['addr'], sample['phys_addr'], \
118 sample['ip'], sample['pid'], sample['tid'], \
119 sample['period'], sample['time']))
130 def common_start_str(comm, sample): argument
131 sec = int(sample["time"] / 1000000000)
132 ns = sample["time"] % 1000000000
133 cpu = sample["cpu"]
134 pid = sample["pid"]
135 tid = sample["tid"]
140 def print_srccode(comm, param_dict, sample, symbol, dso): argument
141 ip = sample["ip"]
143 start_str = common_start_str(comm, sample) + ("%x" % ip).rjust(16).ljust(40)
146 start_str = common_start_str(comm, sample) + (symbol + offs).ljust(40)
182 sample = param_dict["sample"]
194 print_sample(sample)
206 print_srccode(comm, param_dict, sample, symbol, dso)
209 # Don't proceed if this event is not a branch sample, .
213 cpu = sample["cpu"]
214 ip = sample["ip"]
215 addr = sample["addr"]
244 # Record for previous sample packet
274 print_srccode(comm, param_dict, sample, symbol, dso)