Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
klee_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ruben Asplund
klee_tutorial
Commits
3138e1f1
Commit
3138e1f1
authored
4 years ago
by
Ruben Asplund
Browse files
Options
Downloads
Patches
Plain Diff
Moved TaskData struct to common.rs
parent
7d3e7f55
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
srp_analysis/src/analysis.rs
+0
-9
0 additions, 9 deletions
srp_analysis/src/analysis.rs
srp_analysis/src/common.rs
+8
-1
8 additions, 1 deletion
srp_analysis/src/common.rs
with
8 additions
and
10 deletions
srp_analysis/src/analysis.rs
+
0
−
9
View file @
3138e1f1
use
crate
::
common
::
*
;
use
crate
::
common
::
*
;
use
std
::
collections
::
HashSet
;
use
std
::
collections
::
HashSet
;
#[derive(Debug,
Clone)]
pub
struct
TaskData
{
pub
task
:
Task
,
pub
response_time
:
u32
,
pub
wcet
:
u32
,
pub
blocking_time
:
u32
,
pub
preemption_time
:
u32
}
// Prints out vector with [task id, response time, wcet time, blocking time, preemption time]
// Prints out vector with [task id, response time, wcet time, blocking time, preemption time]
pub
fn
analysis
(
tasks
:
&
Tasks
,
exact
:
bool
)
->
Vec
<
TaskData
>
{
pub
fn
analysis
(
tasks
:
&
Tasks
,
exact
:
bool
)
->
Vec
<
TaskData
>
{
let
mut
analysis
:
Vec
<
TaskData
>
=
vec!
();
let
mut
analysis
:
Vec
<
TaskData
>
=
vec!
();
...
...
This diff is collapsed.
Click to expand it.
srp_analysis/src/common.rs
+
8
−
1
View file @
3138e1f1
use
std
::
collections
::{
HashMap
,
HashSet
};
use
std
::
collections
::{
HashMap
,
HashSet
};
// common data structures
#[derive(Debug,
Clone)]
pub
struct
TaskData
{
pub
task
:
Task
,
pub
response_time
:
u32
,
pub
wcet
:
u32
,
pub
blocking_time
:
u32
,
pub
preemption_time
:
u32
}
#[derive(Debug,
Clone)]
#[derive(Debug,
Clone)]
pub
struct
Task
{
pub
struct
Task
{
...
...
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