Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kernel Program Behaviour Models
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixkhals
Kernel Program Behaviour Models
Commits
34782b42
Commit
34782b42
authored
2 years ago
by
fu5520tp
Browse files
Options
Downloads
Patches
Plain Diff
remove perf overflow handler
parent
16b87490
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/sched/perf_error_detection.c
+21
-21
21 additions, 21 deletions
kernel/sched/perf_error_detection.c
with
21 additions
and
21 deletions
kernel/sched/perf_error_detection.c
+
21
−
21
View file @
34782b42
...
@@ -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
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment