Lines Matching full:sample
64 args.add_argument("--start-time", type=int_arg, help="Monotonic clock time of sample to start from.…
66 args.add_argument("--stop-time", type=int_arg, help="Monotonic clock time of sample to stop at. "
68 args.add_argument("--start-sample", type=int_arg, help="Index of sample to start from. "
70 args.add_argument("--stop-sample", type=int_arg, help="Index of sample to stop at. "
80 print("--start-sample must less than --stop-sample")
176 def print_sample(sample): argument
177 print("Sample = { cpu: %04d addr: 0x%016x phys_addr: 0x%016x ip: 0x%016x " \
179 (sample['cpu'], sample['addr'], sample['phys_addr'], \
180 sample['ip'], sample['pid'], sample['tid'], \
181 sample['period'], sample['time'], sample_idx))
192 def common_start_str(comm, sample): argument
193 sec = int(sample["time"] / 1000000000)
194 ns = sample["time"] % 1000000000
195 cpu = sample["cpu"]
196 pid = sample["pid"]
197 tid = sample["tid"]
202 def print_srccode(comm, param_dict, sample, symbol, dso): argument
203 ip = sample["ip"]
205 start_str = common_start_str(comm, sample) + ("%x" % ip).rjust(16).ljust(40)
208 start_str = common_start_str(comm, sample) + (symbol + offs).ljust(40)
245 sample = param_dict["sample"]
259 cpu = sample["cpu"]
260 ip = sample["ip"]
261 addr = sample["addr"]
265 if (options.start_time and sample["time"] < options.start_time):
267 if (options.stop_time and sample["time"] > options.stop_time):
276 print_sample(sample)
294 print_srccode(comm, param_dict, sample, symbol, dso)
297 # Don't proceed if this event is not a branch sample, .
322 # Record for previous sample packet
355 print_srccode(comm, param_dict, sample, symbol, dso)