Commit cec3adf5 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Shuah Khan (Samsung OSG)
Browse files

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: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarShuah Khan (Samsung OSG) <shuah@kernel.org>
parent 72ce3daf
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -13,10 +13,6 @@ fail() { #msg
    exit_fail
}

yield() {
    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
}

if [ ! -f set_event -o ! -d events/sched ]; then
    echo "event tracing is not supported"
    exit_unsupported
+0 −4
Original line number Diff line number Diff line
@@ -16,10 +16,6 @@ fail() { #msg
    exit_fail
}

yield() {
    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
}

if [ ! -f set_event -o ! -d events/sched ]; then
    echo "event tracing is not supported"
    exit_unsupported
+0 −4
Original line number Diff line number Diff line
@@ -13,10 +13,6 @@ fail() { #msg
    exit_fail
}

yield() {
    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
}

if [ ! -f set_event -o ! -d events/sched ]; then
    echo "event tracing is not supported"
    exit_unsupported
+0 −4
Original line number Diff line number Diff line
@@ -12,10 +12,6 @@ fail() { #msg
    exit_fail
}

yield() {
    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
}

if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
    echo "event tracing is not supported"
    exit_unsupported
+0 −4
Original line number Diff line number Diff line
@@ -48,10 +48,6 @@ fail() { # msg
    exit_fail
}

yield() {
    ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
}

do_test() {
    disable_tracing

Loading