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
48cdeae8
Commit
48cdeae8
authored
2 years ago
by
Ollrogge
Browse files
Options
Downloads
Patches
Plain Diff
Working pb_submit_plan
parent
47e8b0d0
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
kernel/sched/pb.c
+3
-1
3 additions, 1 deletion
kernel/sched/pb.c
pb_utils/mod_gen/tmpl/module.tt
+1
-0
1 addition, 0 deletions
pb_utils/mod_gen/tmpl/module.tt
pb_utils/mod_gen_new/test
+0
-0
0 additions, 0 deletions
pb_utils/mod_gen_new/test
pb_utils/run_qemu.sh
+1
-1
1 addition, 1 deletion
pb_utils/run_qemu.sh
with
5 additions
and
2 deletions
kernel/sched/pb.c
+
3
−
1
View file @
48cdeae8
...
...
@@ -40,6 +40,7 @@ int pb_submit_plan(struct rq *rq)
pb
->
is_initialized
=
1
;
// must be initialized last
pb
->
mode
=
PB_ADMIN_MODE
;
resched_curr
(
rq
);
// reschedule ASAP
return
0
;
...
...
@@ -51,7 +52,8 @@ EXPORT_SYMBOL(pb_submit_plan);
void
set_pb_plan_size
(
struct
pb_rq
*
pb_rq
,
unsigned
int
size
)
{
pb_rq
->
size
=
size
;
pb_rq
->
plan
=
kmalloc
(
sizeof
(
struct
plan_entry
)
*
size
,
GFP_KERNEL
);
pb_rq
->
plan
=
kmalloc
(
sizeof
(
struct
plan_entry
)
*
size
,
GFP_KERNEL
);
memset
(
pb_rq
->
plan
,
0x0
,
sizeof
(
struct
plan_entry
)
*
size
);
}
EXPORT_SYMBOL
(
set_pb_plan_size
);
...
...
This diff is collapsed.
Click to expand it.
pb_utils/mod_gen/tmpl/module.tt
+
1
−
0
View file @
48cdeae8
...
...
@@ -26,6 +26,7 @@ static void init_rq(struct rq *rq)
struct pb_rq *pb_rq = &rq->pb;
struct task_struct *proxy_task;
proxy_task = kthread_create(loop_thread_func, NULL, "PB proxy thread");
proxy_task->sched_class = &pb_sched_class;
set_pb_plan_size(pb_rq, [% plan_size %]);
[% FOREACH entry IN plan %]set_pb_plan_entry(pb_rq, [%entry.index%], [%entry.exec_t%], [%entry.idle_t%], proxy_task);
[% END %]
...
...
This diff is collapsed.
Click to expand it.
pb_utils/mod_gen_new/test
+
0
−
0
View file @
48cdeae8
No preview for this file type
This diff is collapsed.
Click to expand it.
pb_utils/run_qemu.sh
+
1
−
1
View file @
48cdeae8
...
...
@@ -12,7 +12,7 @@ COMMAND+=$IMAGE_OPTIONS
COMMAND+
=
" -append
\"
root=/dev/sda rootwait rw single console=ttyS0 nokaslr
\"
"
# disable kaslr for better gdb debugging
COMMAND+
=
" --enable-kvm"
COMMAND+
=
" --nographic"
COMMAND+
=
" --smp
2
"
COMMAND+
=
" --smp
1
"
COMMAND+
=
" -net nic -net user"
COMMAND+
=
" -monitor none"
...
...
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