Tagged articles
4 articles
Page 1 of 1
Liangxu Linux
Liangxu Linux
Nov 13, 2025 · Fundamentals

How to Define a Custom read() in C Without Hiding the System Call

This article explains how to create a user‑defined read() function in C that coexists with the standard library read() by using the static keyword and separate translation units, providing code examples, compilation steps, and execution results.

CLinuxfunction-overriding
0 likes · 6 min read
How to Define a Custom read() in C Without Hiding the System Call
Deepin Linux
Deepin Linux
Dec 14, 2024 · Fundamentals

Understanding Linux ptrace: Implementation, Usage, and Debugging Techniques

This article provides a comprehensive overview of the Linux ptrace system call, explaining its role in process debugging, detailing request parameters, demonstrating practical C examples for tracing system calls, single‑stepping, setting breakpoints, and exploring how DWARF debugging information links source code to executable addresses.

AssemblyCDWARF
0 likes · 62 min read
Understanding Linux ptrace: Implementation, Usage, and Debugging Techniques
ITPUB
ITPUB
Mar 1, 2021 · Operations

How to Diagnose a Stuck Linux Process: From ps to /proc Stack Tracing

This step‑by‑step guide shows how to locate a Linux process frozen in uninterruptible sleep by using tools such as top, ps, WCHAN, /proc files, strace, pstack, and kernel stack traces to pinpoint the offending system call and its root cause.

Debuggingprocessprocfs
0 likes · 10 min read
How to Diagnose a Stuck Linux Process: From ps to /proc Stack Tracing