Skip to content
Snippets Groups Projects
Commit 34782b42 authored by fu5520tp's avatar fu5520tp
Browse files

remove perf overflow handler

parent 16b87490
Branches
No related tags found
No related merge requests found
......@@ -61,25 +61,25 @@ u64 terminate_perf_event(struct perf_event *pevent)
}
/*
* handle the perf overflow event -> task needed more instructions than planed
*/
void overflow_handler(
struct perf_event *event,
struct perf_sample_data *data,
struct pt_regs *regs)
{
struct pb_rq *pb_rq;
int cpu;
cpu = smp_processor_id();
pb_rq = &cpu_rq(cpu)->pb;
// if(pb_rq->is_initialized)
// printk(KERN_WARNING "OH: PB TASK %llu RAN TOO LONG\n",pb_rq->plan[pb_rq->c_entry].task_id);
// else
// printk(KERN_WARNING "OH: PB TASK RAN TOO LONG\n");
}
// /*
// * handle the perf overflow event -> task needed more instructions than planed
// */
// void overflow_handler(
// struct perf_event *event,
// struct perf_sample_data *data,
// struct pt_regs *regs)
// {
// struct pb_rq *pb_rq;
// int cpu;
// cpu = smp_processor_id();
// pb_rq = &cpu_rq(cpu)->pb;
// if(pb_rq->is_initialized)
// printk(KERN_WARNING "OH: PB TASK %llu RAN TOO LONG\n",pb_rq->plan[pb_rq->c_entry].task_id);
// else
// printk(KERN_WARNING "OH: PB TASK RAN TOO LONG\n");
// }
struct perf_event* perf_event_create(struct perf_event_attr *hw_event_uptr, int cpu, struct task_struct *task_struct)
{
......@@ -87,6 +87,6 @@ struct perf_event* perf_event_create(struct perf_event_attr *hw_event_uptr, int
hw_event_uptr,
cpu,
task_struct,
&overflow_handler,
NULL /* What's meant by context? 'oprofile' uses NULL */);
NULL, /* &overflow_handler disabled, because we count within the scheduler */
NULL);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment