8.10 Code Coverage of Target Software 8.12 Using a cache model
Getting Started  /  8 Tutorials  / 

8.11 Instrumentation

The instrumentation framework in the Intel Simics simulator has powerful ways to inspect the simulation. It is built on four core concepts:

At the CLI, it is the tools and filters that are manipulated. To see a list of available tools:

simics> list-instrumentation-tools substr = bank
┌──────────────────────┬──────────────────┬──────────────────────────────┐
│ Tool create command  │    Tool class    │         Description          │
├──────────────────────┼──────────────────┼──────────────────────────────┤
│new-bank-coverage-tool│bank_coverage_tool│register bank coverage tool   │
│new-bank-patch-tool   │bank_patch_tool   │device access miss repair tool│
└──────────────────────┴──────────────────┴──────────────────────────────┘

Here is an example of using instrumentation to compare user and supervisor mode instruction occurrences.

Here is another example of using instrumentation to show exception occurrences.

Source code for instrumentation tools are in

    src/extensions/instruction-histogram
    src/extensions/exception-histogram
    src/extensions/cpu-mode-filter

in the base package.

8.10 Code Coverage of Target Software 8.12 Using a cache model