[PATCH 6.12 131/160] tracing: Add missing helper functions in event pointer dereference check