Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROSA - Formally Proven Schedulability Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lasse Blaauwbroek
PROSA - Formally Proven Schedulability Analysis
Commits
14475cb3
Commit
14475cb3
authored
9 years ago
by
Felipe Cerqueira
Browse files
Options
Downloads
Patches
Plain Diff
Sketch response-time function
parent
ff7a37f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BertognaResponseTimeDefs.v
+46
-4
46 additions, 4 deletions
BertognaResponseTimeDefs.v
with
46 additions
and
4 deletions
BertognaResponseTimeDefs.v
+
46
−
4
View file @
14475cb3
Require
Import
Vbase
TaskDefs
JobDefs
TaskArrivalDefs
ScheduleDefs
PlatformDefs
WorkloadDefs
SchedulabilityDefs
PriorityDefs
ResponseTimeDefs
divround
helper
ssreflect
ssrbool
eqtype
ssrnat
seq
fintype
bigop
div
.
ssreflect
ssrbool
eqtype
ssrnat
seq
fintype
bigop
div
path
.
Module
ResponseTimeAnalysis
.
...
...
@@ -600,8 +600,10 @@ Module ResponseTimeAnalysis.
by
rewrite
leq_mul2r
;
apply
/
orP
;
right
;
apply
INTERF
.
}
assert
(
EX
:
has
(
fun
tsk_k
=>
minn
(
x
tsk_k
)
(
R
-
task_cost
tsk
+
1
)
>
minn
(
workload_bound
tsk_k
)
(
R
-
task_cost
tsk
+
1
))
ts
)
.
assert
(
EX
:
has
(
fun
tsk_k
=>
minn
(
x
tsk_k
)
(
R
-
task_cost
tsk
+
1
)
>
minn
(
workload_bound
tsk_k
)
(
R
-
task_cost
tsk
+
1
))
ts
)
.
{
(* This part is crappy. I'll remove the ifs from the functions
and try to keep it in the sum. *)
...
...
@@ -661,5 +663,45 @@ Module ResponseTimeAnalysis.
End
UnderJLFPScheduling
.
End
ResponseTimeBound
.
Section
ResponseTimeTaskset
.
Context
{
Job
:
eqType
}
.
Variable
job_cost
:
Job
->
nat
.
Variable
job_deadline
:
Job
->
nat
.
Variable
job_task
:
Job
->
sporadic_task
.
Context
{
arr_seq
:
arrival_sequence
Job
}
.
Hypothesis
sporadic_tasks
:
sporadic_task_model
arr_seq
job_task
.
Variable
num_cpus
:
nat
.
Variable
rate
:
Job
->
processor
num_cpus
->
nat
.
Variable
sched
:
schedule
num_cpus
arr_seq
.
(* Assume an FP policy. *)
Variable
higher_eq_priority
:
fp_policy
.
Variable
ts
:
sporadic_taskset
.
Definition
sorted_ts
:=
sorted
higher_eq_priority
ts
.
Definition
max_steps
(
tsk
:
sporadic_task
)
:=
task_deadline
tsk
+
1
.
Fixpoint
rec
(
step
:
nat
)
(
tsk
:
sporadic_task
)
:
nat
:=
match
step
with
|
S
step
=>
task_cost
tsk
+
div_floor
(
total_interference_bound_fp
ts
tsk
(
fun
tsk_high
=>
task_deadline
tsk_high
)
(
rec
step
tsk
)
higher_eq_priority
)
num_cpus
|
0
=>
task_cost
tsk
end
.
Definition
response_time_bound
(
tsk
:
sporadic_task
)
:=
if
rec
(
max_steps
tsk
)
tsk
<=
task_deadline
tsk
then
Some
(
rec
(
max_steps
tsk
)
tsk
)
else
None
.
End
ResponseTimeTaskset
.
End
ResponseTimeAnalysis
.
\ No newline at end of file
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