Get the latest tech news

Peering into the Linux Kernel with Trace


Recently, I was working on a patch for a popular open-source project, and discovered that the test suite was failing intermittently. A closer look revealed t...

A closer look revealed that the last access time for some files in the project folder were changing unexpectedly, and this was causing a test to fail. Piping that into ripgrep revealed (within minutes) that my text editor had a background thread which was scanning the project files for changes, as part of its git integration. There are a couple different APIs which user programs can use to create kprobes; one of them is by writing some specially formatted data to a “magic” file called/sys/kernel/debug/tracing/kprobe_events.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of linux kernel

linux kernel

Photo of trace

trace

Related news:

News photo

A Fresh Take On Virtual Swap Space Being Pursued For The Linux Kernel

News photo

OpenVPN DCO Driver For The Linux Kernel Revised A 25th Time To Boost VPN Performance

News photo

My Own Private Binary: An Idiosyncratic Introduction to Linux Kernel Modules