Skip to content

Commit e09c4db

Browse files
committed
tracemultiplexer sample, add README.md
also move test scripts and output out of test subdirectory up to main sample directory then deletes test subdirectory
1 parent ef42000 commit e09c4db

11 files changed

Lines changed: 42 additions & 64 deletions

samples/tracemultiplexer/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
tracemultiplexer
3+
================
4+
5+
This model simulates a multi-threaded program that has been
6+
instrumented to save traces of its API calls in a log.
7+
8+
When multiple threads are writing the trace log, there can be
9+
nondeterminism in the order in which API calls and returns are made, and
10+
the order they appear in the trace log. The purpose of this sample is
11+
to demonstrate that nondeterminism.
12+
13+
More details appear in the tracemultiplexer comment header.
14+
15+
- *tracemultiplexor*: simulates a multi-threaded program that has been
16+
instrumented to save traces of its API calls in a log.
17+
18+
- *tracenolock* - like *tracemultiplexer* but no synchronization on trace lock.
19+
We simply commented out the check for free trace lock in *start_enabled* and
20+
*finish_enabled*
21+
22+
- *test_graphics* - generate a graph that shows the behavior of *tracemultiplexer*
23+
24+
- *test_nolock_graphics* - generate a graph that shows the behavior of
25+
*tracenolock*
26+
27+
- *fsmpy*, *svg* - directories of output from the test scripts
28+
29+
View the generated graphics files in a browser. Hover the
30+
pointer over any state bubble to see a tooltip that shows the state
31+
variables in that state.
32+
33+
- *tracemultiplexerFSM* - graph that shows the behavior of *tracemultiplexer*
34+
35+
- *tracenolock* - graph that shows the behavior of *tracenolock*
36+
37+
There is no stepper in this sample.
38+
39+
40+
Revised Apr 2013

samples/tracemultiplexer/README.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

samples/tracemultiplexer/test/fsmpy/tracemultiplexerFSM.py renamed to samples/tracemultiplexer/fsmpy/tracemultiplexerFSM.py

File renamed without changes.
File renamed without changes.

samples/tracemultiplexer/test/svg/tracemultiplexerFSM.svg renamed to samples/tracemultiplexer/svg/tracemultiplexerFSM.svg

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)