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:

committed by
Shuah Khan (Samsung OSG)

parent
72ce3daf92
commit
cec3adf5f5
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user