[PATCH 6.11 167/695] selftests/ftrace: Fix test to handle both old and new kernels