Rate this page del.icio.us  Digg slashdot StumbleUpon

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[...]

Red Hat’s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to Red Hat Knowledgebase is free. Every month, Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.

Leave a reply