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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixkhals
Kernel Program Behaviour Models
Commits
ea023b94
Commit
ea023b94
authored
Mar 17, 2019
by
meto
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some signatures and declarations. Kernel compiles!
parent
b481f271
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
kernel/sched/perf_error_detection.c
+7
-6
7 additions, 6 deletions
kernel/sched/perf_error_detection.c
with
7 additions
and
6 deletions
kernel/sched/perf_error_detection.c
+
7
−
6
View file @
ea023b94
...
...
@@ -29,7 +29,7 @@ int init_perf_event(struct plan_entry plan_entry){
return
-
1
;
}
return
fd
;
return
0
;
}
//terminate perf event - return performance counter value
...
...
@@ -47,17 +47,18 @@ long long terminate_perf_event(int fd, u64 task_id){
//handle the perf overflow event -> task needed more instructions than planed
void
overflow_handler
(
struct
perf_event
*
,
struct
perf_sample_data
*
,
struct
perf_event
*
event
,
struct
perf_sample_data
*
data
,
struct
pt_regs
*
regs
)
{
struct
pb_rq
*
pb_rq
;
int
cpu
;
int
fd
;
//
int fd;
cpu
=
smp_processor_id
();
pb_rq
=
cpu_rq
(
cpu
)
->
pb
;
fd
=
pb_rq
->
fd
;
// pb_rq = cpu_rq(cpu)->pb;
pb_rq
=
&
cpu_rq
(
cpu
)
->
pb
;
/* der compiler meckert: error: incompatible types when assigning to type ‘struct pb_rq *’ from type ‘struct pb_rq’ */
// fd =pb_rq->fd;
printk
(
KERN_WARNING
"task %llu ran too long
\n
"
,
pb_rq
->
plan
[
pb_rq
->
c_entry
].
task_id
);
...
...
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