Magic_trace_lib.BreakpointSourceUses perf_event_open to set a hardware breakpoint at a given address in a process. When that breakpoint is hit the resulting file descriptor will poll as readable.
If single_hit is set the breakpoint will disable itself after being hit once.