Verified with EXTRA_CFLAGS=-Wshadow.
Existing backtrace implementations skip native stack frames from runtimes like Python. The hook allows to augment the backtraces to attribute allocations to native functions in heap profiles.