Visible to Intel only — GUID: jur1678629124692
Ixiasoft
Visible to Intel only — GUID: jur1678629124692
Ixiasoft
5.3.7. Capture of CLI Session to a File
Intel® Simics® simulator provides the ability to redirect the output of the CLI to a file in the host PC file system. This is helpful when you want to remember or track the commands that were entered in an Intel® Simics® simulation session for repeatability purposes. This is also helpful for debug purposes when you increase the log verbosity of the session (using the log-level command) and you want to send this to someone else for analysis.
# Intel Simics simulator CLI simics> pwd Current directory is /home/simicsUser/SimicsInstallDir/project-1 simics> ls .cproject .settings compiler.mk modules simics-gui .modcache GNUmakefile config.mk myImages targets .project artifactory doc simics .project-properties bin documentation simics-eclipse simics> cd targets simics> pwd Current directory is /home/simicsUser/SimicsInstallDir/project-1/targets simics> cd .. simics> pwd Current directory is /home/simicsUser/SimicsInstallDir/project-1
start-command-line-capture <filename> [-overwrite] [-append] [-timestamp] stop-command-line-capture <filename>
For the start command, the file is not overwritten unless you specify the -overwrite flag. The -append flag allows the output to be appended to the specified file. An optional time stamp showing wall-clock time can be added at the start of each line, enabled with the -timestamp flag.
# Intel Simics simulator CLI simics> start-command-line-capture simicsCLI.log Output captured to '/root/simicsUser/SimicsInstallDir/project-1/simicsCLI.log' simics> help-search "breakpoint" The text 'breakpoint' appears in the documentation for the following items: Command <bank_instrumentation_subscribe>.bp-break-bank Command <bank_instrumentation_subscribe>.bp-run-until-bank Command <bank_instrumentation_subscribe>.bp-trace-bank Command <bank_instrumentation_subscribe>.bp-wait-for-bank Command <bp-manager.bank>.break : Hap Core_Breakpoint_Memop Hap Core_Disable_Breakpoints simics> stop-command-line-capture simicsCLI.log simics> pwd Current directory is /root/simicsUser/SimicsInstallDir/project-1 simics> ls .cproject .settings compiler.mk modules simics-gui .modcache GNUmakefile config.mk myImages simicsCLI.log .project artifactory doc simics targets .project-properties bin documentation simics-eclipse
# Host Terminal $ cat simicsCLI.log Output captured to '/root/simicsUser/SimicsInstallDir/project-1/simicsCLI.log' simics> help-search "breakpoint" The text 'breakpoint' appears in the documentation for the following items: Command <bank_instrumentation_subscribe>.bp-break-bank Command <bank_instrumentation_subscribe>.bp-run-until-bank Command <bank_instrumentation_subscribe>.bp-trace-bank Command <bank_instrumentation_subscribe>.bp-wait-for-bank : Hap Core_Breakpoint_Memop Hap Core_Disable_Breakpoints simics> stop-command-line-capture simicsCLI.log