Linux Kernel Journey
Author

Linux Kernel Journey

Linux Kernel Journey

125
Articles
0
Likes
0
Views
0
Comments
Recent Articles

Latest from Linux Kernel Journey

100 recent articles max
Linux Kernel Journey
Linux Kernel Journey
Feb 25, 2025 · Operations

How to Dynamically Trace Kernel Functions with eBPF Using Last Branch Record

Last Branch Record (LBR) is a CPU‑level feature that records branch jumps; the Linux kernel’s bpf_get_branch_snapshot helper (since 5.16) enables eBPF programs to capture LBR data, and the bpflbr tool demonstrates how to trace kernel functions and bpf program execution, disassemble code, and output call stacks.

Last Branch RecordLinuxbpf_get_branch_snapshot
0 likes · 9 min read
How to Dynamically Trace Kernel Functions with eBPF Using Last Branch Record
Linux Kernel Journey
Linux Kernel Journey
Feb 23, 2025 · Fundamentals

Debugging C++ Deadlocks on Linux with Shell Commands and GDB

This article explains how to identify and resolve multithreaded deadlocks in Linux C++ programs by using shell utilities such as ps and top for initial diagnosis, then attaching GDB to inspect thread stacks and pinpoint the exact lock contention causing the freeze.

CLinuxdeadlock
0 likes · 20 min read
Debugging C++ Deadlocks on Linux with Shell Commands and GDB
Linux Kernel Journey
Linux Kernel Journey
Feb 17, 2025 · Fundamentals

Master Linux Interprocess Communication and End Process Isolation Issues

This article explains why Linux processes need to communicate, describes the kernel‑mediated IPC framework, compares shared‑memory and message‑passing approaches, and provides detailed code examples for pipes, FIFOs, signals, files, semaphores, sockets, plus real‑world use cases and case studies.

C programmingIPCInterprocess Communication
0 likes · 31 min read
Master Linux Interprocess Communication and End Process Isolation Issues
Linux Kernel Journey
Linux Kernel Journey
Feb 16, 2025 · Fundamentals

Understanding Multi‑Core Hardware Topology and Linux sched_domain

The article explains how Linux kernel scheduling uses a hierarchical topology—balancing load and preserving cache affinity—by mapping real‑world multi‑core hardware structures such as sockets, dies, clusters, and NUMA nodes to sched_domain and sched_group, and shows how to inspect and tune this layout with CONFIG_SCHED_DEBUG and QEMU simulation.

LinuxNUMAhardware topology
0 likes · 9 min read
Understanding Multi‑Core Hardware Topology and Linux sched_domain
Linux Kernel Journey
Linux Kernel Journey
Feb 12, 2025 · Cloud Native

Dynamic Filtering of Function Parameters with eBPF

The article explains how to add runtime‑configurable filtering of kernel function arguments in eBPF programs by parsing a C‑style expression, validating its AST, converting it to BPF instructions using BTF metadata, and injecting the generated code into the probe, with a complete example for skb filtering.

BPFBTFGo
0 likes · 15 min read
Dynamic Filtering of Function Parameters with eBPF
Linux Kernel Journey
Linux Kernel Journey
Feb 5, 2025 · Fundamentals

Boost Code Performance by Leveraging CPU Cache Principles

This article explains how CPU caches bridge the speed gap between the processor and main memory, describes cache hierarchy, locality principles, write policies, coherence protocols, and provides concrete C code examples and practical tips such as data alignment and loop restructuring to improve cache hit rates and overall program speed.

CPU cacheMESI ProtocolMemory Hierarchy
0 likes · 30 min read
Boost Code Performance by Leveraging CPU Cache Principles
Linux Kernel Journey
Linux Kernel Journey
Jan 26, 2025 · Cloud Computing

Understanding KVM/ARM: Split‑Mode Virtualization on ARM’s Virtualization Extensions

This article explains how KVM/ARM implements split‑mode virtualization by dividing the hypervisor into a lowvisor running in EL2 and a highvisor running in kernel mode, detailing CPU, memory, I/O, interrupt and timer virtualization, and describing the architectural improvements introduced by ARM's Virtualization Host Extensions (VHE).

ARM virtualization extensionsKVM/ARMVirtualization Host Extensions
0 likes · 19 min read
Understanding KVM/ARM: Split‑Mode Virtualization on ARM’s Virtualization Extensions