You can put the description of all hooked functions together and use macros to make the code more compact:C #define HOOK(_name, _function, _original) \ { \ .name = (_name), \ .function = (_function), \ .original = (_original), \ } static struct ftrace_hook hooked_functions[] ...
Ftrace is both simple and flexible to use. You can implement it with just echo and cat commands. Basically, ftrace has always been designed to work with busybox or toybox, without any addon utilities. Alex Dzyoba wrote a useful introduction to ftrace a few years back, and more recently ...
An alternative is to use a vIOMMU with support for x2apic and interrupt remapping (e.g.-device intel-iommu,intremap=on,eim=on,caching-mode=on), which also requires a split irqchip to work. This option can be useful if we wish to use AVIC to accelerate guests running on kernels older...
The above configuration instructs WIF to generate verbose trace events and log them into WIFTrace.e2e file. For a complete list of values for the switchValue switch, refer to the Trace Level table found in the following topic: Configuring Tracing...
In order to understand what happens internally in the kernel when ssh is being frozen, we can use ftrace and trigger freezing of processes using a power management debug feature.(Note that we could also have used the Freezer cgroup to freeze only one process here) We first configure the powe...
BPF didn't exist on those versions, so I used basic Ftrace capabilities that were available on Linux 3.2. I described this approach as brittle and a sandcastle that would need maintenance as the kernel changed. It was later ported to BPF with kprobes, and has now been rewritten and ...
tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) thaw-filesystems(J) saK show-backtrace-all-active-cpus(L) show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount show-blocked-tasks(W) dump-ftrace-buffer(...
When you send comments to IBM, you grant IBM a nonexclusive authority to use or distribute the comments in any way appropriate without incurring any obligation to you. IBM or any other organizations use the personal information that you supply to contact you only about the issues that you ...
How to Use Dtrace Tracing Ruby Executing #pragma文章分类 最近看了点关于Dtrace的东西,它是个通用型的工具,但我主要集中于分析ruby程序的执行上面。关于操作系统的性能分析,比如cpu、内存、io、文件系统等,使用起来貌似挺复杂,木有细看。 这里简单的输出一条命令:...
[HOW TO USE HW BRP] 如何使用ARM hardware self debug tools monitor 内存寄存器被踩问题。 目录 1.介绍 ARM自带有HW debug功能,作用是在某个内存或者地址被读写时,可以触发异常,然后我们可以在异常中进行一些必要信息的打印,比如stack,这非常有利于debug内存,寄存器越界读写的问题。