8.1 Customizing Targets 8.3 Checkpoints (on-disk)
Getting Started  /  8 Tutorials  / 

8.2 Logging and Tracing

8.2.1 Logging

Intel Simics hardware models generally output log messages for various kinds of events. The simulator's log system offers a very powerful system for configuring which log messages to see - from which objects, at which level. The result is often large volumes of output. That output can be configured and sent to files for later inspection, as well as used in scripts to stop the simulation, or take other actions when a log message appears.

Here we will show some logging examples when running the qsp-x86/firststeps target machine.

To send all log outputs to a file, use log-setup logfile=<filename>. To overwrite an existing file, the -overwrite flag must be given. To stop output, use the command log-setup -no-log-file.

8.2.2 Tracing

Tracing is a way to observe what is going on during the simulation. The Intel Simics simulator has a Breakpoint Manager that includes functionality for tracing various types of events. This means that messages (in fact, log messages) are printed when an event of the specified occurs. Such a sequence of messages is what is here is known as a trace.

Here we will show some tracing examples.

Several other types of events can also be traced, such as target console string output and hits at specific source code lines.

8.1 Customizing Targets 8.3 Checkpoints (on-disk)