
Find Hot Instructions With perf annotate
Use perf annotate to see which assembly instructions and source lines inside a hot function receive the most samples, and how to read skid correctly.
Everything you need to level up your coding skills.

Use perf annotate to see which assembly instructions and source lines inside a hot function receive the most samples, and how to read skid correctly.

MACHINE picks the hardware, DISTRO picks the policy and the image recipe picks the contents. Here is how to choose and change each one.

Learn the x86-64 memory operand form [base + index*scale + displacement], what each part may be, which combinations are illegal, and how arrays map onto it.

Pass messages, signal events and wait on several conditions in ThreadX with tx_queue, tx_semaphore and tx_event_flags calls, with an example.

Stop zombie children in C on Linux with a SIGCHLD handler that loops on waitpid, or with SA_NOCLDWAIT, and learn what each choice costs you.

Wire a button to a Raspberry Pi Pico, enable the pull-up with gpio_pull_up and read it with gpio_get in C using Pico SDK 2.0, with CMake and expected output.

The Linux VFS gives every filesystem four shared objects, superblock, inode, dentry and file, plus operation tables that make ext4, tmpfs and FUSE look alike.

Create a VkDevice in C++ with queue create infos, Vulkan 1.3 features and the swapchain extension, then fetch graphics and present queues.

Write cocotb 1.9 tests in Python for a Verilog counter: drive a Clock, await RisingEdge and ReadOnly, assert outputs and run on Icarus Verilog from a Makefile.

Build a small KVM hypervisor in C that loads a flat 16-bit guest binary, serves a serial port and a result port, counts exits and halts cleanly.

Write a shell script that uses readelf and nm to fail a build when an ELF binary lacks PIE, full RELRO, a non-executable stack, a stack canary or CET notes.

Convert numbers between binary, decimal and hexadecimal on paper with place values, repeated division and nibble grouping, then check the result in C.
We send one email when a new post is published. No spam.