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

remove perf overflow handler

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