selftests/ftrace: Use loopback address instead of localhost

Use raw loopback address instead of localhost, because
"localhost" can depend on nsswitch and in some case
we can not resolve the localhost.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
This commit is contained in:
Masami Hiramatsu
2018-08-30 23:17:10 +09:00
committed by Shuah Khan (Samsung OSG)
parent 72ce3daf92
commit cec3adf5f5
11 changed files with 14 additions and 25 deletions

View File

@@ -103,3 +103,9 @@ initialize_ftrace() { # Reset ftrace to initial-state
clear_trace
enable_tracing
}
LOCALHOST=127.0.0.1
yield() {
ping $LOCALHOST -c 1 || sleep .001 || usleep 1 || sleep 1
}