-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vbp: Introduce a backend probe state & document fsm
The state is not used yet other than for assertions.
- Loading branch information
Showing
2 changed files
with
70 additions
and
2 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
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,35 @@ | ||
# cache_backend_probe struct vbp_state | ||
|
||
digraph cache_backend_probe { | ||
ALLOC | ||
scheduled | ||
running | ||
cold | ||
deleted | ||
FREE | ||
|
||
edge [fontname=Courier] | ||
|
||
edge [label="vbp_task()"] | ||
deleted -> FREE | ||
running -> scheduled | ||
|
||
edge [label="vbp_thread()"] | ||
scheduled -> running | ||
|
||
edge [label="vbp_thread() error"] | ||
scheduled -> scheduled | ||
|
||
edge [label="VBP_Control()"] | ||
cold -> scheduled | ||
scheduled -> cold | ||
running -> cold | ||
|
||
edge [label="VBP_Insert()"] | ||
ALLOC -> cold | ||
|
||
edge [label="VBP_Remove()"] | ||
running -> deleted # should not happen. we should go through some cool first | ||
scheduled -> FREE # This should not happen. VBP_Control should have set cold | ||
cold -> FREE | ||
} |