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