Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / sam-t2 / sam / analyzers / rstracer / README.txt
CommitLineData
920dae64
AT
1This file: README.txt
2Location: $(RSTRACERv5_WS)/README.txt
3Date: 2005.10.10
4
51. rstracer-v5
6
7Rstracer-v5 is an RST trace generated for SAM v5. It uses the vtracer
8(VCPU tracer) interface implemented in SAM v5.
9
10Rstracer is a loadable module that is loaded using the "mod load"
11command. When a module is loaded, SAM activates the vtracer
12interface. However, rstracer does not generate rst records unless
13instructed to do so using the "rstrace" command.
14
15The tracer always generates value records and can be run in
16multithreaded mode. It generates split trace files (one per simulated
17CPU).
18
19The tracer uses the latest rst trace format and rstzip3 compressed
20trace format (at the time of writing). The traces produced by
21rstracer are readable only by analyzers built against the latest
22rstf and rstzip releases.
23
242. Usage
25
26At the SAM v5 prompt, stop the blaze system (if not already stopped)
27
28 run: stop
29 stop:
30
31Once stopped, load the tracer:
32
33 stop: mod load rstrace <path>/rstracer.so
34
35This command may fail if the shared library is not found, or is of the
36wrong ELF class (ELF32 vs ELF64), or is not from the same SAM package.
37
38Once loaded, SAM execution can be continued using the "run" command,
39or a tracing command can be issued immediately.
40
41The typical tracing command looks like this:
42
43 stop: rstrace -o <basename> -d <delay-cycles> -n <trace-cycles>
44
45Where "cycles" refers to instructions-per-cpu (assuming no variable CPI, timing models etc.)
46
47When done tracing, issue the "mod unload" command to unload the tracer module
48
49 stop: mod unload rstrace