Skip to content
Snippets Groups Projects
Commit b3ffc745 authored by Tom's avatar Tom
Browse files

todo: check overflow perf

parent 3e9404aa
Branches err_detect
No related tags found
No related merge requests found
......@@ -118,9 +118,11 @@ static struct task_struct * pick_next_task_pb(struct rq *rq,
printk(KERN_WARNING "PB TASK %llu RAN %llu INSTRUCTIONS TOO SHORT\n", pb->plan[pb->c_entry].task_id, under_time);
} else if (perf_counter > pb->plan[pb->c_entry].n_instr) {
u64 under_time = perf_counter - pb->plan[pb->c_entry].n_instr;
//TODO: Check if actually an overflow occurs and an another calculation is necessary
// (setting a flag in the perf overflow_handler could be a solution)
u64 over_time = perf_counter - pb->plan[pb->c_entry].n_instr;
printk(KERN_WARNING "PB TASK %llu RAN %llu INSTRUCTIONS TOO LONG\n", pb->plan[pb->c_entry].task_id, under_time);
printk(KERN_WARNING "PB TASK %llu RAN %llu INSTRUCTIONS TOO LONG\n", pb->plan[pb->c_entry].task_id, over_time);
}
pb->c_entry++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment