Skip to content

Instantly share code, notes, and snippets.

View dfaggioli's full-sized avatar

Dario Faggioli dfaggioli

View GitHub Profile
@dfaggioli
dfaggioli / gist:c07d22b034417b2b58f70e3cdf59495f
Last active February 2, 2021 15:26
Tracing Examples with KVM and Xen

Tracing with KVM

For instance, with trace-cmd. For tracing scheduling and VMEntry/Exit events we need to enable the following ftrace events: sched:* and kvm:*. Let's trace for 3 seconds.

# trace-cmd record -e sched:* -e kvm:* sleep 3

trace.dat --the default output file for a trace-cmd session-- is binary. It can be analyzed directly with trace-cmd, or with graphical tools like kernelshark or TraceCompass.

Keybase proof

I hereby claim:

  • I am dfaggioli on github.
  • I am dariof (https://keybase.io/dariof) on keybase.
  • I have a public key whose fingerprint is 4B9B 2C3A 3DD5 86BD 163E 738B 1642 7889 A5B8 73EE

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am fdario on github.
  • I am dariof (https://keybase.io/dariof) on keybase.
  • I have a public key ASBORUYZRIedihzNE-068neaAs0E4IgMqzv-nlgddHOOPwo

To claim this, I am signing this object: