ubuntu Linux Trace Toolkit

本文详细介绍了如何通过PPA安装并使用LTTng2.x工具链进行内核与用户空间跟踪。包括设置统一的trace-control客户端lttng,安装必要的组件,以及如何开始跟踪应用程序。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

LTTng Stable PPA

PPA description

LTTng (Linux Trace Toolkit Next Generation) project repository.
For more information: http://lttng.org

Most of the LTTng utilities are now packaged in Debian/Ubuntu, but this PPA offers the latest stable versions. Only Ubuntu 12.04 and up are supported.

Problems, questions, comments?
Please let us know: http://lttng.org/contact

You can also report bugs at: https://bugs.lttng.org/projects

==== SETTING UP LTTng 2.x ====

LTTng 2.x features a unified trace-control client "lttng" to control both kernel tracing (through lttng-modules) and userspace tracing (through UST). The client itself is shipped in the "lttng-tools" package.

To install the toolchain:
$ sudo apt-add-repository ppa:lttng/ppa
$ sudo apt-get update
$ sudo apt-get install lttng-tools lttng-modules-dkms babeltrace
Once the modules are installed correctly, you can start tracing right away. No need to reboot!

Note: lttng-tools will pull liblttng-ust0 as a dependency, so you can trace already-instrumented applications right away. If you want to compile an instrumented application, you also need to install the liblttng-ust-dev package, which contains the required include headers.

You can now refer to http://lttng.org/quickstart to use the kernel or userspace tracers.

==== Daily build packages ====

If you prefer living on the edge, you can use the latest development versions in the daily PPA: https://launchpad.net/~lttng/+archive/daily

Adding this PPA to your system

You can update your system with unsupported packages from this untrusted PPA by addingppa:lttng/ppa to your system's Software Sources. (Read about installing)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值