Lines Matching full:sample
113 def print_sample(sample): argument
114 print("Sample = { cpu: %04d addr: 0x%016x phys_addr: 0x%016x ip: 0x%016x " \
116 (sample['cpu'], sample['addr'], sample['phys_addr'], \
117 sample['ip'], sample['pid'], sample['tid'], \
118 sample['period'], sample['time']))
129 def common_start_str(comm, sample): argument
130 sec = int(sample["time"] / 1000000000)
131 ns = sample["time"] % 1000000000
132 cpu = sample["cpu"]
133 pid = sample["pid"]
134 tid = sample["tid"]
139 def print_srccode(comm, param_dict, sample, symbol, dso): argument
140 ip = sample["ip"]
142 start_str = common_start_str(comm, sample) + ("%x" % ip).rjust(16).ljust(40)
145 start_str = common_start_str(comm, sample) + (symbol + offs).ljust(40)
181 sample = param_dict["sample"]
191 cpu = sample["cpu"]
192 ip = sample["ip"]
193 addr = sample["addr"]
197 print_sample(sample)
215 print_srccode(comm, param_dict, sample, symbol, dso)
218 # Don't proceed if this event is not a branch sample, .
243 # Record for previous sample packet
274 print_srccode(comm, param_dict, sample, symbol, dso)