-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add information in the tutorial and an example about how bref event can be used to measure end-to-end latency of pipelines of tasks. Signed-off-by: Juri Lelli <[email protected]>
- Loading branch information
Juri Lelli
committed
Jul 20, 2017
1 parent
2c6f1a2
commit 9978cc8
Showing
2 changed files
with
75 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
/* | ||
* Latency associated with a pipeline of tasks. | ||
* Task tick start the pipeline every 24ms. | ||
* Task task1 gets a time reference (bref) and wakes task2 up (after | ||
* executing for a while). task2 wakes task3 up. | ||
* Eitherr task1 or task3 (extremes of the pipeline), depending on | ||
* who arrives last, will use bref to compute end-to-end latency | ||
* (pipe_latency) in the log. | ||
*/ | ||
"tasks" : { | ||
"tick" : { | ||
"loop" : -1, | ||
"cpus" : [0], | ||
"phases" : { | ||
"p1" : { | ||
"loop" : 1, | ||
"resume" : "task1", | ||
"timer" : { "ref" : "tick", "period": 6000 } | ||
}, | ||
"p2" : { | ||
"loop" : 3, | ||
"timer" : { "ref" : "tick", "period": 6000 } | ||
} | ||
} | ||
}, | ||
"task1" : { | ||
"loop" : -1, | ||
"bref" : "pipeline", | ||
"run1" : 300, | ||
"resume" : "task2", | ||
"run2" : 4000, | ||
"barrier" : "pipeline", | ||
"suspend" : "task1" | ||
}, | ||
"task2" : { | ||
"loop" : -1, | ||
"suspend" : "task2", | ||
"run" : 1000, | ||
"resume" : "task3" | ||
}, | ||
"task3" : { | ||
"loop" : -1, | ||
"suspend" : "task3", | ||
"run" : 1000, | ||
"barrier" : "pipeline" | ||
} | ||
}, | ||
"global" : { | ||
"default_policy" : "SCHED_OTHER", | ||
"duration" : 6, | ||
"ftrace" : true, | ||
"gnuplot" : false, | ||
"lock_pages" : false, | ||
"logdir" : "./", | ||
"log_basename" : "example9", | ||
"calibration" : "CPU0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters