Tagged articles
20 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.

eBPFftracegdb
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
Ops Community
Ops Community
Jul 5, 2025 · Operations

Unlock 300% Linux Performance: Proven Kernel Tuning Secrets from 10 Years of Ops

Discover how deep understanding of Linux kernel architecture, process, memory, filesystem, and network subsystems combined with practical Bash scripts can boost system performance by up to 300%, offering step‑by‑step tuning, monitoring, and debugging techniques essential for senior operations engineers.

Bash ScriptingLinux kernelMemory Management
0 likes · 18 min read
Unlock 300% Linux Performance: Proven Kernel Tuning Secrets from 10 Years of Ops
Deepin Linux
Deepin Linux
Jun 6, 2025 · Fundamentals

How eBPF Can Tackle Linux Memory Fragmentation and Boost Android Performance

This article explains the problem of internal and external memory fragmentation in Linux systems, introduces eBPF as a powerful tracing tool, and provides step‑by‑step guidance for building, loading, and running eBPF programs to analyze and mitigate fragmentation on both Linux and Android platforms.

AndroidBPFLinux kernel
0 likes · 22 min read
How eBPF Can Tackle Linux Memory Fragmentation and Boost Android Performance
Linux Kernel Journey
Linux Kernel Journey
Nov 12, 2024 · Operations

eBPF Talk: Fixing a 7‑Year‑Old Bug in bpftool

The article details how a long‑standing bug that displayed incorrect call‑address information in bpftool’s JIT disassembly was reproduced, analyzed, and fixed by correcting the PC parameter to use the function’s kernel symbol address, with patches applied to both LLVM and libbfd back‑ends.

LLVMbpftooldisassembly
0 likes · 9 min read
eBPF Talk: Fixing a 7‑Year‑Old Bug in bpftool
Linux Kernel Journey
Linux Kernel Journey
Oct 25, 2024 · Operations

Tracing Linux Process Capability Changes with eBPF

The article explains how to use eBPF tracepoints to monitor and record changes in Linux process capabilities, detailing the kernel data structures, BPF program logic, and user‑space handling needed to debug real‑world capability issues such as tcpdump failures and systemd service launches.

BPF mapsLinux capabilitieseBPF
0 likes · 14 min read
Tracing Linux Process Capability Changes with eBPF
Linux Kernel Journey
Linux Kernel Journey
Oct 7, 2024 · Operations

retsnoop: Kernel Error Debugging Tool that Traces All Functions and Shows Stack on Failure

retsnoop is an eBPF‑based tracing utility that uses wildcard patterns to hook kernel functions, automatically captures full stack traces whenever a function returns an error, and offers three complementary modes—stack trace, function‑call trace, and LBR—to quickly pinpoint the source of kernel failures, with practical examples and source‑code insights.

eBPFkernel debugginglinux
0 likes · 9 min read
retsnoop: Kernel Error Debugging Tool that Traces All Functions and Shows Stack on Failure
Liangxu Linux
Liangxu Linux
Sep 29, 2024 · Operations

How to Diagnose Linux Kernel Crashes with kdump and Crash Tool

Learn step‑by‑step how to capture a Linux core dump with kdump, install the crash utility and debuginfo packages, and use commands like sys, bt, ps, files, and sym to trace the root cause of kernel panics, illustrated with a real‑world case study.

KDUMPcore dumpcrash tool
0 likes · 14 min read
How to Diagnose Linux Kernel Crashes with kdump and Crash Tool
Deepin Linux
Deepin Linux
Apr 25, 2024 · Fundamentals

Understanding Linux System Calls: Mechanism, Debugging, and Implementation

This article explains how Linux system calls serve as the primary interface between user‑space programs and the kernel, describes the transition from user mode to kernel mode, and provides step‑by‑step debugging examples and source‑code snippets for x86_64 architectures.

Assemblykernel debugginglinux
0 likes · 31 min read
Understanding Linux System Calls: Mechanism, Debugging, and Implementation
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Dec 15, 2023 · Mobile Development

Using the crash Tool to Analyze Android Kernel Kdump Dumps

The article explains how to use the Linux crash utility for efficient, on‑demand analysis of Android Kdump dumps on MTK and Qualcomm devices, covering dump loading parameters, baseline data collection, stack back‑tracing, local variable recovery, thread searching, and why crash outperforms memory‑heavy tools like trace32.

AndroidKDUMPcrash tool
0 likes · 29 min read
Using the crash Tool to Analyze Android Kernel Kdump Dumps
Open Source Linux
Open Source Linux
Sep 27, 2023 · Fundamentals

Master Linux Kernel Debugging: Tools, Filesystems, and Tracing Techniques

This article provides a comprehensive overview of Linux kernel debugging, covering core tools such as printk, ftrace, trace‑cmd, kprobe, systemtap, kgdb, kgtp, perf, as well as pseudo filesystems like procfs, sysfs, debugfs and relayfs, and introduces additional tracers including LTTng, eBPF, Ktap, dtrace4linux, OL DTrace and sysdig.

KGDBKprobeSystemTap
0 likes · 28 min read
Master Linux Kernel Debugging: Tools, Filesystems, and Tracing Techniques
Liangxu Linux
Liangxu Linux
Oct 19, 2022 · Fundamentals

Mastering Linux Kernel Debugging: Tools, Configurations, and Practical Tips

This guide explains why kernel debugging is challenging and walks through preparation steps, essential kernel configuration options, useful macros like BUG() and WARN(), logging with printk(), memory‑debugging utilities such as MEMWATCH, YAMD, Electric Fence and strace, handling OOPS messages, dynamic debugging, and setting up kdump/kexec for crash dumps.

BUG macroKDUMPMemory Debugging
0 likes · 28 min read
Mastering Linux Kernel Debugging: Tools, Configurations, and Practical Tips
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Oct 14, 2022 · Operations

Understanding and Implementing Hungtask Detection in the Linux Kernel

The article explains Linux hung‑task detection, detailing both a system‑wide polling method that compares unchanged D‑state task context‑switch counts and a watchdog approach for critical processes, describes kernel implementations, analysis of real‑world hang cases, and emphasizes log analysis and parameter tuning to prevent system hangs.

Androidhungtaskkernel debugging
0 likes · 14 min read
Understanding and Implementing Hungtask Detection in the Linux Kernel
ITPUB
ITPUB
May 11, 2022 · Fundamentals

Debugging Linux 0.11 on Windows with VSCode Remote and QEMU

This guide shows how to set up an Ubuntu 16.04 virtual machine on Windows, install QEMU, fetch a modernized Linux 0.11 source tree, and use VSCode Remote‑SSH together with GDB to debug the historic kernel without rebuilding outdated toolchains.

Operating SystemsQEMUVSCode
0 likes · 7 min read
Debugging Linux 0.11 on Windows with VSCode Remote and QEMU
Liangxu Linux
Liangxu Linux
Aug 3, 2021 · Fundamentals

Six Practical Ways to Debug Device Tree and Device Registration in Linux Drivers

This guide outlines six effective debugging techniques—including dtdiff, kernel device‑tree inspection, U‑Boot fdt commands, dtc decompilation, kernel fdt inspection, and of_property APIs—to help developers quickly locate and resolve device‑tree‑related issues during driver development.

DTCDevice TreeEmbedded Linux
0 likes · 5 min read
Six Practical Ways to Debug Device Tree and Device Registration in Linux Drivers
Liangxu Linux
Liangxu Linux
Feb 28, 2021 · Fundamentals

Step-by-Step Guide: Compile Linux Kernel and Debug with QEMU + GDB

Learn how to compile the Linux 4.19.172 kernel on CentOS, create a rootfs with BusyBox, and set up QEMU‑based debugging using GDB, including required kernel boot parameters, troubleshooting static linking errors, and optional Eclipse visual debugging.

BusyBoxCompilationLinux kernel
0 likes · 12 min read
Step-by-Step Guide: Compile Linux Kernel and Debug with QEMU + GDB
Architects' Tech Alliance
Architects' Tech Alliance
May 12, 2017 · Fundamentals

Using KGDB for Linux Kernel and Module Debugging: Environment Setup and Step‑by‑Step Guide

This article provides a comprehensive tutorial on configuring KGDB on Linux, covering target and host machine preparation, kernel recompilation with debugging options, module installation, boot‑loader adjustments, and detailed remote‑gdb debugging procedures for both the kernel image and loadable modules.

KGDBSystem Programminggdb
0 likes · 10 min read
Using KGDB for Linux Kernel and Module Debugging: Environment Setup and Step‑by‑Step Guide