Using Systemtap with self-built kernels

Source: Internet
Author: User
Tags systemtap

If you are running a kernel so you built and installed ' by hand ', rather than by installing a package from a distributio N, you can follow these steps to use SYSTEMTAP. The following blurb may also is found at the bottom of the README file in the sources. See also cross compiling tips.

Build the kernel using your normal procedures. Enable Config_debug_info, Config_kprobes, Config_relay, Config_debug_fs, Config_modules, Config_module_unload, CONFIG _uprobes and the minimal number of auxiliary modules you need (since config_debug_info can multiply disk space usage).

% make Modules_install Install

Boot into the kernel.

If you want to build instrumentation for so installed kernel without rebooting, you can use the following (replacing REL EASE with version number of the installed kernel):

% Stap-r RELEASE [...]

If You don't install the kernel, simply run

% Stap-r/path/to/kernel/build/tree [...]

Https://sourceware.org/systemtap/wiki/SystemTapWithSelfBuiltKernel

Using Systemtap with self-built kernels

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.