
Find Hot Functions With perf record and perf report
Sample a program with perf record, rank functions with perf report, and read the Overhead, Command and Symbol columns to find the code that burns your CPU time.
Everything you need to level up your coding skills.

Sample a program with perf record, rank functions with perf report, and read the Overhead, Command and Symbol columns to find the code that burns your CPU time.

After bitbake core-image-minimal finishes, runqemu boots it in QEMU with no board. Here are the options for graphics, networking and getting out again.

Write, assemble and link a complete x86-64 program with NASM on Linux. It prints a line, exits with a status code, and uses no C library at all.

Build an RTEMS 6 toolchain with the RTEMS Source Builder, then compile the kernel and a BSP with Waf, using the SPARC erc32 simulator target as the example.

Use waitpid in C on Linux to wait for a child, poll with WNOHANG, and decode the exit status with WIFEXITED, WEXITSTATUS and WTERMSIG.

Blink the LD2 LED on a NUCLEO-F446RE by writing the GPIO registers yourself: MODER, OTYPER, OSPEEDR, PUPDR and ODR, with a SysTick delay and a register decoder.

Move sleeping work out of an interrupt handler with INIT_WORK, schedule_work and a worker function on Linux 6.12, including delayed work and safe teardown.

Create a VkInstance in C++ with the Khronos validation layer, check that the layer and extensions exist first, and read the result with a working error path.

Record simulation waveforms with $dumpfile and $dumpvars, choose which scopes to dump, switch dumping on and off, and read the VCD file Icarus Verilog writes.

See how KVM reuses the Linux scheduler, memory manager, MMU notifiers, eventfds and cgroups instead of building its own, and where to read each in the source.

A curated set of GCC and Clang warnings, from -Wformat=2 and -Wstringop-overflow to -Wvla and -Wconversion, that flag memory-safety bugs before they ship.

Learn what hexadecimal is, how each hex digit maps to four bits, and why base 16 is the standard shorthand for bytes, addresses and colours in C.
We send one email when a new post is published. No spam.