instrument_memcpy_before(9)
π NAME π
okay so welcome to the instrument_memcpy_before(9) page, bestie β it's from the Kernel API Manual, and the whole vibe is: add instrumentation before a non-instrumented memcpy. slay. That's literally the name and the mission, no cap.
β¨ SYNOPSIS β¨
the signature is giving "tiny but important":
void instrument_memcpy_before (void *to , const void *from , unsigned long n );
π ARGUMENTS π
toβ destination address πfromβ source address π«Άnβ number of bytes to copy β¨
π DESCRIPTION π
okay so the actual job: instrument memory accesses that happen in custom memcpy implementations. lowkey crucial.
the instrumentation should be inserted before the memcpy call. periodt. that's the whole instruction, bestie β before, not after, not "somewhere in the vicinity". π
π¦ SEE ALSO π¦
Kernel file: ./include/linux/instrumented.h is the home base, and here's the whole squad:
instrument_read(9)instrument_write(9)instrument_read_write(9)instrument_atomic_read(9)instrument_atomic_write(9)instrument_atomic_read_write(9)instrument_copy_to_user(9)instrument_copy_from_user_before(9)instrument_copy_from_user_after(9)instrument_memcpy_after(9)instrument_get_user(9)instrument_put_user(9)
mwah π this page is from ./include/linux, dated October 2026, and it's the instrument_memcpy_before(9) manual page. bye bestie, go instrument that memcpy before the call π§π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms