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
b3ffc745
Commit
b3ffc745
authored
6 years ago
by
Tom
Browse files
Options
Downloads
Patches
Plain Diff
todo: check overflow perf
parent
3e9404aa
Branches
err_detect
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/sched/pb.c
+4
-2
4 additions, 2 deletions
kernel/sched/pb.c
with
4 additions
and
2 deletions
kernel/sched/pb.c
+
4
−
2
View file @
b3ffc745
...
...
@@ -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
,
und
er_time
);
printk
(
KERN_WARNING
"PB TASK %llu RAN %llu INSTRUCTIONS TOO LONG
\n
"
,
pb
->
plan
[
pb
->
c_entry
].
task_id
,
ov
er_time
);
}
pb
->
c_entry
++
;
...
...
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