[LTTng学习之旅]------LTTng的Feature

25 篇文章 6 订阅
LTTng是一款强大的系统级追踪工具,提供全系统洞察,支持多种组件如Linux内核、C/C++、Java及Python应用。设计时考虑了低开销,适合在生产环境中使用,尤其在资源有限的嵌入式系统中。其灵活性适应各种规模的系统,支持多种架构,并允许用户配置多个追踪会话。LTTng易于安装和使用,可以通过命令行接口控制,并有多种工具进行事件查看和分析。
摘要由CSDN通过智能技术生成


参见:https://lttng.org/features/

观测范围

System-wide insight
LTTng allows to understand the interactions between multiple components of a given system, i.e.:
The Linux kernel, using either already available or user-defined instrumentation points
C/C++ applications
Java applications
Python applications
Any other user space application using the LTTng logger

Tracing all those components with LTTng produces a unified log of events, providing great insight into the system’s behavior.

高性能

LTTng 的设计初衷就是在生产系统上提供低开销跟踪。跟踪器通过组合基本技术(例如每 CPU 缓冲、RCU 数据结构、紧凑且高效的二进制跟踪格式等)来实现这一出色性能。 LTTng 尽可能少地干扰被跟踪的系统,以使跟踪微妙的竞争条件和罕见的中断级联成为可能。在资源有限的平台上,例如一些 Linux 嵌入式系统,您可以使用开箱即用的 LTTng 来帮助开发人员查明难以调试问题的根源。

这么牛?那为什么还是没合并到Linux主线。。。hh

灵活

无论您的目标是小型嵌入式系统还是大型云,LTTng 都能提供灵活的配置选项,以适应系统的工作负载。
LTTng支持IA-32(x86),x86-64,PowerPC,ARM和MIPS等架构。
LTTng 的跟踪会话机制使得使用不同的配置选项同时记录多个跟踪成为可能。每个 Unix 用户可以根据需要创建和配置任意数量的跟踪会话。
例如,根据您的具体方案,您可能希望:
本地跟踪:记录到目标的本地文件系统的跟踪,然后使用众多兼容查看器之一来调查发生的情况。
远程跟踪:通过网络发送跟踪数据。 这个构建上位机很有必要啊,可以远程监控。
查看直播:实时监控事件发生时。
拍摄快照:如果需要,请仅保留固定大小的最新事件日志。
将环形缓冲区的共享内存保存在持久内存文件系统上。
Flexible
Whether your target is a small embedded system or a large cloud, LTTng provides flexible configuration options that can accommodate the system’s workload. LTTng supports architectures such as IA-32 (x86), x86-64, PowerPC, ARM, and MIPS, amongst others.
LTTng’s tracing session mechanism makes it possible to record multiple traces concurrently with different configuration options. Each Unix user may create and configure as many tracing sessions as needed.
Depending on your specific scenario, you may wish, for example, to:
Trace locally: Record a trace to the target’s local filesystem, then use one of the many compatible viewers to investigate what happened.
Trace remotely: Send trace data over the network.
View a live stream: Monitor events as they occur, in real-time.
Take a snapshot: When desired, keep only a fixed-sized log of the latest events.
Keep ring buffers’ shared memory on a persistent memory file system.

易用性

昨天我已经试过了。从源码安装是下载几个依赖包。然后3个LTTng的包。一路 configure make 就可以了。
从Ubuntu的apt 安装更简单。
Tracecomapss也是开箱即用了。非常nice .,
这里说 统一的入口是使用lttng的接口啊 hh。
Easy
As LTTng is packaged for many major Linux distributions, you can often use your package manager to install it.
As a user, you control the tracers with a single tool, the lttng command-line interface.
Multiple tools are available to view and analyze the traces that LTTng produces: GUI, CLI tools, and custom scripts.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小羊苏C

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值