User Guide

  • 2020
  • 06/18/2020
  • Public Content
Contents

analyze-kvm-guest

Analyze a KVM guest OS running on your system.

Syntax

-analyze-kvm-guest | -no-analyze-kvm-guest
Default
-no-analyze-kvm-guest
Actions Modified
Description
Analyze a KVM guest OS running on your system. For successful analysis, make sure to do the following:
  1. Copy these files from the guest OS to your local file system:
    • /proc/kallsyms
    • /proc/modules
    • any guest OS’s modules of interest (
      vmlinux
      , any
      *.ko
      files, and so on)
  2. Specify a Linux target system for analysis using the option.
  3. Configure your
    VTune
    Profiler
    analysis target by using the , , and options to specify paths to the files copied in step 1 for accurate module resolution.
  4. Configure your collect-with by using the
    knob ftrace-config=<events>
    option to specify Linux FTrace* events tracking IRQ injection process.
Enable a custom hardware event-based sampling collection for the KVM guest OS and collect
irq
,
softirq
,
workq
, and
kvm
FTrace events:
vtune
--target-system=ssh: user1@172.16.254.1 -collect-with runsa -knob event-config=CPU_CLK_UNHALTED.REF_TSC:sa=3500000,CPU_CLK_UNHALTED.THREAD:sa=3500000,INST_RETIRED.ANY:sa=3500000 –knob enable-stack-collection=true -knob ftrace-config=irq,softirq,workq,kvm -analyze-kvm-guest -kvm-guest-kallsyms=/home/vtune/[guest]/kvm.kallsyms -kvm-guest-modules=/home/vtune/[guest]/kvm.modules --search-dir sym:p=/home/vtune/ --target-pid 9791

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804