- print('Time now: {}, {} to {}'.format(datetime.datetime.now(), i*NB_KPROBES_PER_ITER, (i+1)*NB_KPROBES_PER_ITER))
- set_kprobe_tracing_state(0)
- enable_kprobe_events(instrumentation_points[i*NB_KPROBES_PER_ITER:(i+1)*NB_KPROBES_PER_ITER])
+ lower_bound = (round_nb * NB_KPROBES_PER_ROUND) + (i * NB_KPROBES_PER_ITER)
+ upper_bound = lower_bound + NB_KPROBES_PER_ITER
+ print('Time now: {}, {} to {}'.format(datetime.datetime.now(), lower_bound , upper_bound))
+ enable_kprobe_events(instrumentation_points[lower_bound:upper_bound])