[Systemtap] questions about systemtap

Source: Internet
Author: User
Tags systemtap

For the latest installation steps, see

Http://blog.csdn.net/zklth/article/details/7281958

In the official tutorial of systemtap, we always recommend that you install the corresponding version of debuginfo package for the kernel during installation. However, for the systemtap installed by centos by default, I can still use some probes normally.

In addition, after I upgrade the kernel on a machine with the debuginfo package installed, systemtap can still be used normally (the debuginfo package is not installed in the upgraded kernel.

 

Updated on February 21,. The above statement is incorrect.

The correct sequence for installing systemtap is to first upgrade the kernel, and then install the debuginfo-common, debuginfo, and kernel-devel packages of the same version number, for example:

Rpm-IVH kernel-2.6.18-194.8.1.el5.x86_64.rpm
Rpm-IVH kernel-debuginfo-common-2.6.18-194.8.1.el5.x86_64.rpm
Rpm-IVH kernel-debuginfo-2.6.18-194.8.1.el5.x86_64.rpm
Rpm-IVH kernel-devel-2.6.18-194.8.1.el5.x86_64.rpmOnly after the package is installed/Usr/src/kernels/2.6.18-194.8.1.el5-x86_64
Rpm-IVH kernel-headers-2.6.18-194.8.1.el5.x86_64.rpm

Otherwise, the error "missing x86_64 kernel/module debuginfo under '/lib/modules/'uname-R'/build'" will occur during script execution.'/Lib/modules/'uname-R'/build '"Is a link pointing to the kernel source code directory/Usr/src/kernels/'uname
-R'
,.


when I upgrade the kernel to Linux 2.6.34.7, The systemtap script can be correctly executed without installing the kernel-devel of the corresponding version, this is because the source code directory contains the relevant modules required for systemtap execution.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.