Tagged articles
16 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Dec 27, 2025 · Operations

Master Linux Kernel Stack Tracing: From GDB Basics to Advanced ftrace & eBPF

This practical guide walks you through Linux kernel stack backtracing, covering GDB installation, core dump analysis, handling corrupted stacks, and advanced tracing techniques using ftrace and eBPF, with step‑by‑step commands, code examples, and troubleshooting tips to pinpoint the root cause of crashes.

LinuxeBPFftrace
0 likes · 32 min read
Master Linux Kernel Stack Tracing: From GDB Basics to Advanced ftrace & eBPF
Linux Kernel Journey
Linux Kernel Journey
Nov 19, 2025 · Fundamentals

How Tracepoint and kprobe Enable Precise Linux Kernel Source Tracing

This article explains the technical principles behind Linux kernel tracing, covering static tracepoints and dynamic kprobes, demonstrating their use with ftrace and perf, and detailing the underlying macro implementations and low‑level mechanisms that make kernel source tracking possible.

KprobeLinux tracingftrace
0 likes · 20 min read
How Tracepoint and kprobe Enable Precise Linux Kernel Source Tracing
Liangxu Linux
Liangxu Linux
Jun 18, 2025 · Fundamentals

Why Page Faults Kill Performance and How to Measure Them on Linux

The article explains what page faults are, why they become performance killers, and provides practical Linux tools and tuning steps—perf, vmstat, ftrace, swappiness, mlock, and swapoff—to quantify and mitigate both major and minor page faults.

Memory Managementftracepage faults
0 likes · 7 min read
Why Page Faults Kill Performance and How to Measure Them on Linux
Deepin Linux
Deepin Linux
Mar 31, 2025 · Fundamentals

Understanding and Using Ftrace for Linux Kernel Tracing

This article provides a comprehensive guide to Linux's ftrace tool, explaining its purpose, various tracers, how to set up and use it via debugfs, detailed command examples, implementation details, practical use cases for performance tuning and debugging, and a comparison with other tracing utilities.

DebuggingSystem Tracingftrace
0 likes · 40 min read
Understanding and Using Ftrace for Linux Kernel Tracing
Linux Code Review Hub
Linux Code Review Hub
Mar 19, 2025 · Operations

Mastering Linux Performance with ftrace: Theory, Features, and Real‑World Use Cases

This article explains why Linux dominates server workloads, introduces the built‑in ftrace tracing framework, details its diverse tracers, lightweight static instrumentation and stable design, shows how to configure and use it via debugfs, and demonstrates performance tuning and fault diagnosis with real examples while comparing it to systemTap and LTTng.

Linux kerneldebugfsftrace
0 likes · 33 min read
Mastering Linux Performance with ftrace: Theory, Features, and Real‑World Use Cases
Linux Code Review Hub
Linux Code Review Hub
Jan 25, 2024 · Fundamentals

Exploring BPF LSM Support on aarch64 Using ftrace

The article investigates why BPF LSM programs fail to load on aarch64 kernels, uses ftrace‑based tools such as bpftrace and trace‑cmd to trace kernel execution, discovers missing arch_prepare_bpf_trampoline support in 5.15 and 6.1, and shows that a patch merged into the mainline kernel restores functionality for upcoming releases.

BPFKernelLSM
0 likes · 27 min read
Exploring BPF LSM Support on aarch64 Using ftrace
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Aug 5, 2022 · Operations

Understanding Linux ftrace Function Graph Tracer on ARM64

The article details how Linux’s function‑graph ftrace tracer works on ARM64, explaining required kernel configs, how -pg inserts _mcount calls, the runtime patching of ftrace_graph_caller, register usage for argument passing, and return handling, and why shadow‑call‑stack must be disabled to enable precise call‑graph and timing analysis.

ARM64Linuxftrace
0 likes · 10 min read
Understanding Linux ftrace Function Graph Tracer on ARM64
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Nov 20, 2020 · Mobile Development

How to Use ftrace Event Tracing to Debug Android Process Scheduling

This article explains the fundamentals of Linux ftrace, details the event‑tracing mechanism and tracepoint macros, shows how to enable and filter events on ARM64 Android devices, and demonstrates a practical workflow for capturing low‑probability scheduling bugs in camera‑related processes.

AndroidDebuggingKernel
0 likes · 11 min read
How to Use ftrace Event Tracing to Debug Android Process Scheduling