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
3e9404aa
Commit
3e9404aa
authored
6 years ago
by
Tobias Bouschen
Browse files
Options
Downloads
Patches
Plain Diff
Remove commented out import and fix comments
parent
4c9ae050
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
kernel/sched/pb.c
+1
-2
1 addition, 2 deletions
kernel/sched/pb.c
kernel/sched/perf_error_detection.c
+2
-3
2 additions, 3 deletions
kernel/sched/perf_error_detection.c
with
3 additions
and
5 deletions
kernel/sched/pb.c
+
1
−
2
View file @
3e9404aa
...
@@ -65,8 +65,7 @@ void init_pb_rq(struct pb_rq *pb_rq)
...
@@ -65,8 +65,7 @@ void init_pb_rq(struct pb_rq *pb_rq)
EXPORT_SYMBOL
(
init_pb_rq
);
EXPORT_SYMBOL
(
init_pb_rq
);
// task enters the runnable state
// task enters the runnable state
static
void
static
void
enqueue_task_pb
(
struct
rq
*
rq
,
struct
task_struct
*
p
,
int
flags
)
enqueue_task_pb
(
struct
rq
*
rq
,
struct
task_struct
*
p
,
int
flags
)
{
{
// NOP
// NOP
}
}
...
...
This diff is collapsed.
Click to expand it.
kernel/sched/perf_error_detection.c
+
2
−
3
View file @
3e9404aa
#include
"perf_error_detection.h"
#include
"perf_error_detection.h"
//#include "sched.h"
/*
/*
* Our understanding of perf so far. Please correct as needed.
* Our understanding of perf so far. Please correct as needed.
...
@@ -31,7 +30,7 @@ int init_perf_event(struct plan_entry *plan_entry, struct perf_event **pevent){
...
@@ -31,7 +30,7 @@ int init_perf_event(struct plan_entry *plan_entry, struct perf_event **pevent){
/* Not needed on 3.2? */
/* Not needed on 3.2? */
pe
.
wakeup_events
=
1
;
pe
.
wakeup_events
=
1
;
// cpu = -1 -> cpu indepen
ted
(assumed to be regulated by plan)
// cpu = -1 -> cpu indepen
dent
(assumed to be regulated by plan)
*
pevent
=
perf_event_create
(
&
pe
,
smp_processor_id
());
*
pevent
=
perf_event_create
(
&
pe
,
smp_processor_id
());
if
(
IS_ERR
(
pevent
))
{
if
(
IS_ERR
(
pevent
))
{
...
@@ -82,5 +81,5 @@ struct perf_event* perf_event_create(struct perf_event_attr *hw_event_uptr, int
...
@@ -82,5 +81,5 @@ struct perf_event* perf_event_create(struct perf_event_attr *hw_event_uptr, int
cpu
,
cpu
,
NULL
,
/* per CPU */
NULL
,
/* per CPU */
&
overflow_handler
,
&
overflow_handler
,
NULL
/* What's meant by context? oprofile uses NULL */
);
NULL
/* What's meant by context?
'
oprofile
'
uses 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