Tips and tricks: How do I set up SystemTap on domainU?
by The editorial team
Release Found: Red Hat Enterprise Linux 5
When deploying Red Hat Virtualization, the host operating system is domain0 or dom0, and the virtual machines that run on top of domain0 are domainU or domU.
Installing SystemTap on domainU is no different from installing SystemTap on non-virtualized machine or domain0.
The following are the steps to install SystemTap on domainU:
1. yum install kernel-xen-devel systemtap systemtap-runtime
2. yum --enablerepo rhel-debuginfo install kernel-xen-debuginfo kernel-debuginfo-commmon
To install the kernel-debuginfo rpms manually, download it from people.redhat.com/duffy/debuginfo/
3. Voila!
Test if the installation went well by writing a simple script:
stap -vve 'probe syscall.open { printf("%s(%d) %s\n", execname(), pid(), argstr) }'
The output should be similar to the following:
sendmail(1556) "/proc/loadavg", O_RDONLYgpm(1576) "/dev/tty0", O_RDONLYgdmgreeter(2040) "/var/gdm/.icons/default/cursors/00000000000000000000000000000000", O_RDONLYgdmgreeter(2040) "/var/gdm/.icons/default/index.theme", O_RDONLYgdmgreeter(2040) "/usr/share/icons/default/cursors/00000000000000000000000000000000", O_RDONLYgdmgreeter(2040) "/usr/share/icons/default/index.theme", O_RDONLYgdmgreeter(2040) "/usr/share/pixmaps/default/cursors/00000000000000000000000000000000", O_RDONLYgdmgreeter(2040) "/usr/share/icons/default/cursors/00000000000000000000000000000000", O_RDONLYgdmgreeter(2040) "/var/gdm/.icons/Bluecurve/cursors/00000000000000000000000000000000", O_RDONLYgdmgreeter(2040) "/var/gdm/.icons/Bluecurve/index.theme", O_RDONLYgdmgreeter(2040) "/usr/share/icons/Bluecurve/cursors/0000000000000! 0000000000000000000", O_RDONLYgdmgreeter(2040) "/usr/share/icons/Bluecurve/index.theme", O_RDONLYgdmgreeter(2040) "/usr/share/pixmaps/Bluecurve/cursors/00000000000000000000000000000000", O_RDONLYgdmgreeter(2040) "/usr/share/icons/Bluecurve/cursors/00000000000000000000000000000000", O_RDONLYgdmgreeter(2040) "/var/gdm/.icons/gnome/cursors/00000000000000000000000000000000", O_RDONLYgdmgreeter(2040) "/var/gdm/.icons/gnome/index.theme", O_RDONLY[...]






