Consult the machine’s pneumatic/hydraulic schematic. KMGD test points are usually labeled on the P&ID (Piping and Instrumentation Diagram) with a symbol like a circle with a dot (test point) and the text "KMGD."
Linux kprobe example:
# Add test point at do_nanosleep entry
echo "p:my_probe do_nanosleep +0(%di):u32" > /sys/kernel/debug/tracing/kprobe_events
echo 1 > /sys/kernel/debug/tracing/events/kprobes/my_probe/enable
Windows Dynamic – Use DbgEng extensions or write a driver that sets KdBreakpoint with conditions. kmgd test point
A standard KMGD Test Point consists of three integrated layers: Consult the machine’s pneumatic/hydraulic schematic
Pull the probe straight out. The test point should instantly reseal. Listen for any hiss; a leaking test point requires replacement (usually by unthreading the old unit and installing a new one with thread sealant). Windows Dynamic – Use DbgEng extensions or write
// Windows example
KMGD_TEST_POINT(NtReadFile, Entry, (FileHandle, Length))
DbgPrint("[KMGD] NtReadFile: Handle=%p Len=%zu\n", FileHandle, Length);
Macro may store file/line, timestamp, or IRQL.
If reflow is not an option: