From: mhiramat at kernel.org (Masami Hiramatsu)
Subject: [PATCH v2 11/32] selftests/ftrace: Use loopback address instead of localhost
Date: Sat, 25 Aug 2018 10:47:09 +0900 [thread overview]
Message-ID: <20180825104709.42bc08748ab7a276af8a78f7@kernel.org> (raw)
In-Reply-To: <20180824175211.60bbebe1@gandalf.local.home>
On Fri, 24 Aug 2018 17:52:11 -0400
Steven Rostedt <rostedt at goodmis.org> wrote:
> On Fri, 17 Aug 2018 01:34:23 +0900
> Masami Hiramatsu <mhiramat at kernel.org> wrote:
>
> > 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 at kernel.org>
> > ---
> > .../selftests/ftrace/test.d/event/event-enable.tc | 2 +-
> > .../selftests/ftrace/test.d/event/event-pid.tc | 2 +-
> > .../ftrace/test.d/event/subsystem-enable.tc | 2 +-
> > .../ftrace/test.d/event/toplevel-enable.tc | 2 +-
> > .../ftrace/test.d/ftrace/func-filter-pid.tc | 2 +-
> > .../inter-event/trigger-field-variable-support.tc | 2 +-
> > .../trigger-inter-event-combined-hist.tc | 2 +-
> > .../inter-event/trigger-onmatch-action-hist.tc | 2 +-
> > .../trigger-onmatch-onmax-action-hist.tc | 2 +-
> > .../inter-event/trigger-onmax-action-hist.tc | 2 +-
> > 10 files changed, 10 insertions(+), 10 deletions(-)
> >
> > diff --git a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
> > index 386dbddbdc11..a028628cdd0e 100644
> > --- a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
> > @@ -14,7 +14,7 @@ fail() { #msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
> >
> > if [ ! -f set_event -o ! -d events/sched ]; then
> > diff --git a/tools/testing/selftests/ftrace/test.d/event/event-pid.tc b/tools/testing/selftests/ftrace/test.d/event/event-pid.tc
> > index 6dbf67544fde..6d2897f6a106 100644
> > --- a/tools/testing/selftests/ftrace/test.d/event/event-pid.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/event/event-pid.tc
> > @@ -17,7 +17,7 @@ fail() { #msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
> >
> > if [ ! -f set_event -o ! -d events/sched ]; then
> > diff --git a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
> > index 10eb17f161b7..9f0221b39d4d 100644
> > --- a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
> > @@ -14,7 +14,7 @@ fail() { #msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
> >
> > if [ ! -f set_event -o ! -d events/sched ]; then
> > diff --git a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
> > index 8d55a233c1a4..5f3611047d3a 100644
> > --- a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
> > @@ -13,7 +13,7 @@ fail() { #msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
> >
> > if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
> > diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc
> > index 970903cb7834..cd52cf6a1fc4 100644
> > --- a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc
> > @@ -49,7 +49,7 @@ fail() { # msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
>
> Perhaps we should make this a helper function since it's used so much.
Yeah, agree. OK, I'll add a patch to move it in common place.
>
> >
> > do_test() {
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-field-variable-support.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-field-variable-support.tc
> > index 575af23df04e..59b58c77e9ce 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-field-variable-support.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-field-variable-support.tc
> > @@ -23,7 +23,7 @@ echo 'hist:keys=comm:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/
> > echo 'hist:keys=next_comm:wakeup_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_waking).wakeup_latency($wakeup_lat,next_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' > events/sched/sched_switch/trigger
> > echo 'hist:keys=pid,prio,comm:vals=lat:sort=pid,prio' > events/synthetic/wakeup_latency/trigger
> >
> > -ping localhost -c 3
> > +ping 127.0.0.1 -c 3
> > if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
> > fail "Failed to create inter-event histogram"
> > fi
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc
> > index 92aef26e2631..0a7709fdfd8e 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc
> > @@ -37,7 +37,7 @@ echo 'waking+wakeup_latency u64 lat; pid_t pid' >> synthetic_events
> > echo 'hist:keys=pid,lat:sort=pid,lat:ww_lat=$waking_lat+$wakeup_lat:onmatch(synthetic.wakeup_latency).waking+wakeup_latency($ww_lat,pid)' >> events/synthetic/wakeup_latency/trigger
> > echo 'hist:keys=pid,lat:sort=pid,lat' >> events/synthetic/waking+wakeup_latency/trigger
> >
> > -ping localhost -c 3
> > +ping 127.0.0.1 -c 3
> > if ! grep -q "pid:" events/synthetic/waking+wakeup_latency/hist; then
> > fail "Failed to create combined histogram"
> > fi
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-action-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-action-hist.tc
> > index 1ef5dd4521f0..c5bdf8338aeb 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-action-hist.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-action-hist.tc
> > @@ -29,7 +29,7 @@ echo "Test histogram variables,simple expression support and onmatch action"
> > echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger
> > echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_wakeup).wakeup_latency($wakeup_lat,next_pid,next_comm) if next_comm=="ping"' > events/sched/sched_switch/trigger
> > echo 'hist:keys=comm,pid,lat:wakeup_lat=lat:sort=lat' > events/synthetic/wakeup_latency/trigger
> > -ping localhost -c 5
> > +ping 127.0.0.1 -c 5
> > if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
> > fail "Failed to create onmatch action inter-event histogram"
> > fi
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-onmax-action-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-onmax-action-hist.tc
> > index 7234683ee5e5..47cb76bfd9c0 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-onmax-action-hist.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-onmax-action-hist.tc
> > @@ -29,7 +29,7 @@ echo "Test histogram variables,simple expression support and onmatch-onmax actio
> > echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger
> > echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_wakeup).wakeup_latency($wakeup_lat,next_pid,next_comm):onmax($wakeup_lat).save(next_comm,prev_pid,prev_prio,prev_comm) if next_comm=="ping"' >> events/sched/sched_switch/trigger
> > echo 'hist:keys=comm,pid,lat:wakeup_lat=lat:sort=lat' > events/synthetic/wakeup_latency/trigger
> > -ping localhost -c 5
> > +ping 127.0.0.1 -c 5
> > if [ ! grep -q "ping" events/synthetic/wakeup_latency/hist -o ! grep -q "max:" events/sched/sched_switch/hist]; then
> > fail "Failed to create onmatch-onmax action inter-event histogram"
> > fi
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmax-action-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmax-action-hist.tc
> > index 55b9630a1d70..6fa0c449035c 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmax-action-hist.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmax-action-hist.tc
> > @@ -27,7 +27,7 @@ echo "Test onmax action"
> >
> > echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' >> events/sched/sched_waking/trigger
> > echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0:onmax($wakeup_lat).save(next_comm,prev_pid,prev_prio,prev_comm) if next_comm=="ping"' >> events/sched/sched_switch/trigger
> > -ping localhost -c 3
> > +ping 127.0.0.1 -c 3
>
> Perhaps we should also add a variable LOCALHOST="127.0.0.1" and use
> that. I rather not have the raw address all over the place, in case we
> want to change its meaning, it's best to do it in one place.
Agreed. That should be moved in the common place too.
Thank you,
>
> -- Steve
>
> > if ! grep -q "max:" events/sched/sched_switch/hist; then
> > fail "Failed to create onmax action inter-event histogram"
> > fi
>
--
Masami Hiramatsu <mhiramat at kernel.org>
WARNING: multiple messages have this Message-ID (diff)
From: mhiramat@kernel.org (Masami Hiramatsu)
Subject: [PATCH v2 11/32] selftests/ftrace: Use loopback address instead of localhost
Date: Sat, 25 Aug 2018 10:47:09 +0900 [thread overview]
Message-ID: <20180825104709.42bc08748ab7a276af8a78f7@kernel.org> (raw)
Message-ID: <20180825014709.nWkfMwAWtkMg2qclqgIs9YiZ_lsL3Kx7X3U3pHzy_EY@z> (raw)
In-Reply-To: <20180824175211.60bbebe1@gandalf.local.home>
On Fri, 24 Aug 2018 17:52:11 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:
> On Fri, 17 Aug 2018 01:34:23 +0900
> Masami Hiramatsu <mhiramat@kernel.org> wrote:
>
> > 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 at kernel.org>
> > ---
> > .../selftests/ftrace/test.d/event/event-enable.tc | 2 +-
> > .../selftests/ftrace/test.d/event/event-pid.tc | 2 +-
> > .../ftrace/test.d/event/subsystem-enable.tc | 2 +-
> > .../ftrace/test.d/event/toplevel-enable.tc | 2 +-
> > .../ftrace/test.d/ftrace/func-filter-pid.tc | 2 +-
> > .../inter-event/trigger-field-variable-support.tc | 2 +-
> > .../trigger-inter-event-combined-hist.tc | 2 +-
> > .../inter-event/trigger-onmatch-action-hist.tc | 2 +-
> > .../trigger-onmatch-onmax-action-hist.tc | 2 +-
> > .../inter-event/trigger-onmax-action-hist.tc | 2 +-
> > 10 files changed, 10 insertions(+), 10 deletions(-)
> >
> > diff --git a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
> > index 386dbddbdc11..a028628cdd0e 100644
> > --- a/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/event/event-enable.tc
> > @@ -14,7 +14,7 @@ fail() { #msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
> >
> > if [ ! -f set_event -o ! -d events/sched ]; then
> > diff --git a/tools/testing/selftests/ftrace/test.d/event/event-pid.tc b/tools/testing/selftests/ftrace/test.d/event/event-pid.tc
> > index 6dbf67544fde..6d2897f6a106 100644
> > --- a/tools/testing/selftests/ftrace/test.d/event/event-pid.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/event/event-pid.tc
> > @@ -17,7 +17,7 @@ fail() { #msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
> >
> > if [ ! -f set_event -o ! -d events/sched ]; then
> > diff --git a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
> > index 10eb17f161b7..9f0221b39d4d 100644
> > --- a/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/event/subsystem-enable.tc
> > @@ -14,7 +14,7 @@ fail() { #msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
> >
> > if [ ! -f set_event -o ! -d events/sched ]; then
> > diff --git a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
> > index 8d55a233c1a4..5f3611047d3a 100644
> > --- a/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc
> > @@ -13,7 +13,7 @@ fail() { #msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
> >
> > if [ ! -f available_events -o ! -f set_event -o ! -d events ]; then
> > diff --git a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc
> > index 970903cb7834..cd52cf6a1fc4 100644
> > --- a/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/ftrace/func-filter-pid.tc
> > @@ -49,7 +49,7 @@ fail() { # msg
> > }
> >
> > yield() {
> > - ping localhost -c 1 || sleep .001 || usleep 1 || sleep 1
> > + ping 127.0.0.1 -c 1 || sleep .001 || usleep 1 || sleep 1
> > }
>
> Perhaps we should make this a helper function since it's used so much.
Yeah, agree. OK, I'll add a patch to move it in common place.
>
> >
> > do_test() {
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-field-variable-support.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-field-variable-support.tc
> > index 575af23df04e..59b58c77e9ce 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-field-variable-support.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-field-variable-support.tc
> > @@ -23,7 +23,7 @@ echo 'hist:keys=comm:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/
> > echo 'hist:keys=next_comm:wakeup_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_waking).wakeup_latency($wakeup_lat,next_pid,sched.sched_waking.prio,next_comm) if next_comm=="ping"' > events/sched/sched_switch/trigger
> > echo 'hist:keys=pid,prio,comm:vals=lat:sort=pid,prio' > events/synthetic/wakeup_latency/trigger
> >
> > -ping localhost -c 3
> > +ping 127.0.0.1 -c 3
> > if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
> > fail "Failed to create inter-event histogram"
> > fi
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc
> > index 92aef26e2631..0a7709fdfd8e 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-inter-event-combined-hist.tc
> > @@ -37,7 +37,7 @@ echo 'waking+wakeup_latency u64 lat; pid_t pid' >> synthetic_events
> > echo 'hist:keys=pid,lat:sort=pid,lat:ww_lat=$waking_lat+$wakeup_lat:onmatch(synthetic.wakeup_latency).waking+wakeup_latency($ww_lat,pid)' >> events/synthetic/wakeup_latency/trigger
> > echo 'hist:keys=pid,lat:sort=pid,lat' >> events/synthetic/waking+wakeup_latency/trigger
> >
> > -ping localhost -c 3
> > +ping 127.0.0.1 -c 3
> > if ! grep -q "pid:" events/synthetic/waking+wakeup_latency/hist; then
> > fail "Failed to create combined histogram"
> > fi
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-action-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-action-hist.tc
> > index 1ef5dd4521f0..c5bdf8338aeb 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-action-hist.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-action-hist.tc
> > @@ -29,7 +29,7 @@ echo "Test histogram variables,simple expression support and onmatch action"
> > echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger
> > echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_wakeup).wakeup_latency($wakeup_lat,next_pid,next_comm) if next_comm=="ping"' > events/sched/sched_switch/trigger
> > echo 'hist:keys=comm,pid,lat:wakeup_lat=lat:sort=lat' > events/synthetic/wakeup_latency/trigger
> > -ping localhost -c 5
> > +ping 127.0.0.1 -c 5
> > if ! grep -q "ping" events/synthetic/wakeup_latency/hist; then
> > fail "Failed to create onmatch action inter-event histogram"
> > fi
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-onmax-action-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-onmax-action-hist.tc
> > index 7234683ee5e5..47cb76bfd9c0 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-onmax-action-hist.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmatch-onmax-action-hist.tc
> > @@ -29,7 +29,7 @@ echo "Test histogram variables,simple expression support and onmatch-onmax actio
> > echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' > events/sched/sched_wakeup/trigger
> > echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0:onmatch(sched.sched_wakeup).wakeup_latency($wakeup_lat,next_pid,next_comm):onmax($wakeup_lat).save(next_comm,prev_pid,prev_prio,prev_comm) if next_comm=="ping"' >> events/sched/sched_switch/trigger
> > echo 'hist:keys=comm,pid,lat:wakeup_lat=lat:sort=lat' > events/synthetic/wakeup_latency/trigger
> > -ping localhost -c 5
> > +ping 127.0.0.1 -c 5
> > if [ ! grep -q "ping" events/synthetic/wakeup_latency/hist -o ! grep -q "max:" events/sched/sched_switch/hist]; then
> > fail "Failed to create onmatch-onmax action inter-event histogram"
> > fi
> > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmax-action-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmax-action-hist.tc
> > index 55b9630a1d70..6fa0c449035c 100644
> > --- a/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmax-action-hist.tc
> > +++ b/tools/testing/selftests/ftrace/test.d/trigger/inter-event/trigger-onmax-action-hist.tc
> > @@ -27,7 +27,7 @@ echo "Test onmax action"
> >
> > echo 'hist:keys=pid:ts0=common_timestamp.usecs if comm=="ping"' >> events/sched/sched_waking/trigger
> > echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0:onmax($wakeup_lat).save(next_comm,prev_pid,prev_prio,prev_comm) if next_comm=="ping"' >> events/sched/sched_switch/trigger
> > -ping localhost -c 3
> > +ping 127.0.0.1 -c 3
>
> Perhaps we should also add a variable LOCALHOST="127.0.0.1" and use
> that. I rather not have the raw address all over the place, in case we
> want to change its meaning, it's best to do it in one place.
Agreed. That should be moved in the common place too.
Thank you,
>
> -- Steve
>
> > if ! grep -q "max:" events/sched/sched_switch/hist; then
> > fail "Failed to create onmax action inter-event histogram"
> > fi
>
--
Masami Hiramatsu <mhiramat at kernel.org>
next prev parent reply other threads:[~2018-08-25 1:47 UTC|newest]
Thread overview: 152+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-16 16:29 [PATCH v2 00/32] selftests/ftrace: Improve ftracetest with coverage check mhiramat
2018-08-16 16:29 ` Masami Hiramatsu
2018-08-16 16:29 ` [PATCH v2 01/32] tracing: Allow gcov profiling on only ftrace subsystem mhiramat
2018-08-16 16:29 ` Masami Hiramatsu
2018-08-20 15:32 ` rostedt
2018-08-20 15:32 ` Steven Rostedt
2018-08-20 15:33 ` rostedt
2018-08-20 15:33 ` Steven Rostedt
2018-08-21 6:53 ` mhiramat
2018-08-21 6:53 ` Masami Hiramatsu
2018-08-16 16:30 ` [PATCH v2 02/32] selftests/ftrace: Add --stop-fail hidden option for debug mhiramat
2018-08-16 16:30 ` Masami Hiramatsu
2018-08-24 20:38 ` rostedt
2018-08-24 20:38 ` Steven Rostedt
2018-08-16 16:30 ` [PATCH v2 03/32] selftests/ftrace: Add --console hidden option mhiramat
2018-08-16 16:30 ` Masami Hiramatsu
2018-08-24 20:37 ` rostedt
2018-08-24 20:37 ` Steven Rostedt
2018-08-25 1:35 ` mhiramat
2018-08-25 1:35 ` Masami Hiramatsu
2018-08-25 1:42 ` rostedt
2018-08-25 1:42 ` Steven Rostedt
2018-08-26 7:28 ` mhiramat
2018-08-26 7:28 ` Masami Hiramatsu
2018-08-16 16:31 ` [PATCH v2 04/32] selftests/ftrace: Add case number prefix to logfile mhiramat
2018-08-16 16:31 ` Masami Hiramatsu
2018-08-24 21:47 ` rostedt
2018-08-24 21:47 ` Steven Rostedt
2018-08-16 16:31 ` [PATCH v2 05/32] selftests/ftrace: More initialize features in initialize_ftrace mhiramat
2018-08-16 16:31 ` Masami Hiramatsu
2018-08-24 21:24 ` rostedt
2018-08-24 21:24 ` Steven Rostedt
2018-08-24 21:46 ` rostedt
2018-08-24 21:46 ` Steven Rostedt
2018-08-24 21:46 ` rostedt
2018-08-24 21:46 ` Steven Rostedt
2018-08-16 16:32 ` [PATCH v2 06/32] selftests/ftrace: Add SPDX License Identifier to template mhiramat
2018-08-16 16:32 ` Masami Hiramatsu
2018-08-16 16:32 ` [PATCH v2 07/32] selftests/ftrace: Cleanup ftrace after running test mhiramat
2018-08-16 16:32 ` Masami Hiramatsu
2018-08-16 16:32 ` [PATCH v2 08/32] selftests/ftrace: Remove unneeded per-test init/cleanup ftrace mhiramat
2018-08-16 16:32 ` Masami Hiramatsu
2018-08-16 16:33 ` [PATCH v2 09/32] selftests/ftrace: Fix to test kprobe $comm arg only if available mhiramat
2018-08-16 16:33 ` Masami Hiramatsu
2018-08-16 16:33 ` [PATCH v2 10/32] selftests/ftrace: Fix checkbashisms errors mhiramat
2018-08-16 16:33 ` Masami Hiramatsu
2018-08-24 21:50 ` rostedt
2018-08-24 21:50 ` Steven Rostedt
2018-08-16 16:34 ` [PATCH v2 11/32] selftests/ftrace: Use loopback address instead of localhost mhiramat
2018-08-16 16:34 ` Masami Hiramatsu
2018-08-24 21:52 ` rostedt
2018-08-24 21:52 ` Steven Rostedt
2018-08-25 1:47 ` mhiramat [this message]
2018-08-25 1:47 ` Masami Hiramatsu
2018-08-16 16:34 ` [PATCH v2 12/32] selftests/ftrace: Improve kprobe on module testcase to load/unload module mhiramat
2018-08-16 16:34 ` Masami Hiramatsu
2018-08-24 23:07 ` rostedt
2018-08-24 23:07 ` Steven Rostedt
2018-08-16 16:35 ` [PATCH v2 13/32] selftests/ftrace: Improve kprobe testcase to check log data mhiramat
2018-08-16 16:35 ` Masami Hiramatsu
2018-08-16 16:35 ` [PATCH v2 14/32] selftests/ftrace: Improve kretprobe " mhiramat
2018-08-16 16:35 ` Masami Hiramatsu
2018-08-16 16:36 ` [PATCH v2 15/32] selftests/ftrace: Test kprobe-event argument with various bitsize mhiramat
2018-08-16 16:36 ` Masami Hiramatsu
2018-08-16 16:36 ` [PATCH v2 16/32] selftests/ftrace: Check set_event_pid result mhiramat
2018-08-16 16:36 ` Masami Hiramatsu
2018-08-16 16:37 ` [PATCH v2 17/32] selftests/ftrace: Add kprobe event with $comm argument testcase mhiramat
2018-08-16 16:37 ` Masami Hiramatsu
2018-08-16 16:37 ` [PATCH v2 18/32] selftests/ftrace: Add kprobe profile testcase mhiramat
2018-08-16 16:37 ` Masami Hiramatsu
2018-08-16 16:38 ` [PATCH v2 19/32] selftests/ftrace: Add a testcase for nop tracer mhiramat
2018-08-16 16:38 ` Masami Hiramatsu
2018-08-24 22:53 ` rostedt
2018-08-24 22:53 ` Steven Rostedt
2018-08-26 7:30 ` mhiramat
2018-08-26 7:30 ` Masami Hiramatsu
2018-08-16 16:38 ` [PATCH v2 20/32] selftests/ftrace: Add kprobe-event with symbol argument test mhiramat
2018-08-16 16:38 ` Masami Hiramatsu
2018-08-16 16:39 ` [PATCH v2 21/32] selftests/ftrace: Add trace_printk sample module test mhiramat
2018-08-16 16:39 ` Masami Hiramatsu
2018-08-24 23:06 ` rostedt
2018-08-24 23:06 ` Steven Rostedt
2018-08-26 8:43 ` mhiramat
2018-08-26 8:43 ` Masami Hiramatsu
2018-08-16 16:39 ` [PATCH v2 22/32] selftests/ftrace: Add ringbuffer size changing testcase mhiramat
2018-08-16 16:39 ` Masami Hiramatsu
2018-08-24 23:18 ` rostedt
2018-08-24 23:18 ` Steven Rostedt
2018-08-30 7:12 ` mhiramat
2018-08-30 7:12 ` Masami Hiramatsu
2018-08-30 15:50 ` rostedt
2018-08-30 15:50 ` Steven Rostedt
2018-08-30 23:35 ` mhiramat
2018-08-30 23:35 ` Masami Hiramatsu
2018-08-30 23:40 ` rostedt
2018-08-30 23:40 ` Steven Rostedt
2018-08-16 16:40 ` [PATCH v2 23/32] selftests/ftrace: Add function profiling stat testcase mhiramat
2018-08-16 16:40 ` Masami Hiramatsu
2018-08-24 23:20 ` rostedt
2018-08-24 23:20 ` Steven Rostedt
2018-08-26 11:20 ` mhiramat
2018-08-26 11:20 ` Masami Hiramatsu
2018-08-16 16:40 ` [PATCH v2 24/32] selftests/ftrace: Add max stack tracer testcase mhiramat
2018-08-16 16:40 ` Masami Hiramatsu
2018-08-24 23:23 ` rostedt
2018-08-24 23:23 ` Steven Rostedt
2018-08-25 1:45 ` mhiramat
2018-08-25 1:45 ` Masami Hiramatsu
2018-08-25 2:41 ` rostedt
2018-08-25 2:41 ` Steven Rostedt
2018-08-26 8:42 ` mhiramat
2018-08-26 8:42 ` Masami Hiramatsu
2018-08-16 16:40 ` [PATCH v2 25/32] selftests/ftrace: Add function filter on module testcase mhiramat
2018-08-16 16:40 ` Masami Hiramatsu
2018-08-24 23:25 ` rostedt
2018-08-24 23:25 ` Steven Rostedt
2018-08-16 16:41 ` [PATCH v2 26/32] selftests/ftrace: Add trace_pipe testcase mhiramat
2018-08-16 16:41 ` Masami Hiramatsu
2018-08-24 23:26 ` rostedt
2018-08-24 23:26 ` Steven Rostedt
2018-08-26 11:20 ` mhiramat
2018-08-26 11:20 ` Masami Hiramatsu
2018-08-16 16:41 ` [PATCH v2 27/32] selftests/ftrace: Add stacktrace ftrace filter command testcase mhiramat
2018-08-16 16:41 ` Masami Hiramatsu
2018-08-24 23:28 ` rostedt
2018-08-24 23:28 ` Steven Rostedt
2018-08-16 16:42 ` [PATCH v2 28/32] selftests/ftrace: Add wakeup tracer testcase mhiramat
2018-08-16 16:42 ` Masami Hiramatsu
2018-08-16 16:42 ` [PATCH v2 29/32] selftests/ftrace: Add wakeup_rt " mhiramat
2018-08-16 16:42 ` Masami Hiramatsu
2018-08-25 2:09 ` rostedt
2018-08-25 2:09 ` Steven Rostedt
2018-08-26 11:22 ` mhiramat
2018-08-26 11:22 ` Masami Hiramatsu
2018-08-16 16:43 ` [PATCH v2 30/32] selftests/ftrace: Add ftrace cpumask testcase mhiramat
2018-08-16 16:43 ` Masami Hiramatsu
2018-08-25 2:18 ` rostedt
2018-08-25 2:18 ` Steven Rostedt
2018-08-27 12:16 ` mhiramat
2018-08-27 12:16 ` Masami Hiramatsu
2018-08-16 16:43 ` [PATCH v2 31/32] selftests/ftrace: Add output format testcase mhiramat
2018-08-16 16:43 ` Masami Hiramatsu
2018-08-25 2:19 ` rostedt
2018-08-25 2:19 ` Steven Rostedt
2018-08-30 7:48 ` mhiramat
2018-08-30 7:48 ` Masami Hiramatsu
2018-08-16 16:44 ` [PATCH v2 32/32] selftests/ftrace: Add blktrace testcase mhiramat
2018-08-16 16:44 ` Masami Hiramatsu
2018-08-25 2:22 ` rostedt
2018-08-25 2:22 ` Steven Rostedt
2018-08-30 7:53 ` mhiramat
2018-08-30 7:53 ` Masami Hiramatsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180825104709.42bc08748ab7a276af8a78f7@kernel.org \
--to=linux-kselftest@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox