diff --git a/kernel/sched/perf_error_detection.c b/kernel/sched/perf_error_detection.c index e3b44eefd97e7dc4ddf61946a2239c646df50609..c38c89680387dd8da7828e02b4b2c114ba09cdaa 100644 --- a/kernel/sched/perf_error_detection.c +++ b/kernel/sched/perf_error_detection.c @@ -1,8 +1,6 @@ #include "perf_error_detection.h" #include <linux/smp.h> -#define PERF_SAMPLE_PERIOD_SIZE 100000 - /* * Our understanding of perf so far. Please correct as needed. * @@ -72,7 +70,6 @@ void overflow_handler( printk(KERN_WARNING "PB TASK %llu RAN TOO LONG\n",pb_rq->plan[pb_rq->c_entry].task_id); - } struct perf_event* perf_event_create(struct perf_event_attr *hw_event_uptr, int cpu) diff --git a/kernel/sched/perf_error_detection.h b/kernel/sched/perf_error_detection.h index ae6a341a4432c2e435967c770b388e887ff343af..12fea1f70e5d3bfe93a5d52cf8eb003af669f93f 100644 --- a/kernel/sched/perf_error_detection.h +++ b/kernel/sched/perf_error_detection.h @@ -1,13 +1,7 @@ #ifndef __PERF_ERROR_DETECTION_H #define __PERF_ERROR_DETECTION_H #include <linux/perf_event.h> -//#include <linux/sched.h> #include "sched.h" -//#include "../../include/linux/signal.h" -//#include <linux/ioctl.h> -//#include "../../include/linux/fs.h" - -//#include <include/linux/smp.h> #endif int init_perf_event(struct plan_entry, struct perf_event **pevent);