Re: [PATCH 3/3] selftests/ftrace: Use /bin/echo instead of built-in echo
From: Steven Rostedt
Date: Thu May 07 2020 - 09:12:11 EST
On Sat, 2 May 2020 12:08:42 +0900
Masami Hiramatsu <mhiramat@xxxxxxxxxx> wrote:
> > > diff --git a/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-hist.tc b/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-hist.tc
> > > index ab6bedb25736..b3f70f53ee69 100644
> > > --- a/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-hist.tc
> > > +++ b/tools/testing/selftests/ftrace/test.d/trigger/trigger-trace-marker-hist.tc
> > > @@ -30,7 +30,7 @@ fi
> > >
> > > echo "Test histogram trace_marker tigger"
> > >
> > > -echo 'hist:keys=common_pid' > events/ftrace/print/trigger
> > > +echo 'hist:keys=ip' > events/ftrace/print/trigger
> >
> > This is doing more than just changing the echo being used. It's changing
> > the test being done.
>
> Yes, I need Tom's review for this change. As far as I can test, this
> fixes the test failure. If this isn't acceptable, we can use "alias echo=echo"
> for this test case.
>
I still don't see how changing "keys=common_pid" to "keys=ip" has anything
to do with the echo patch. If that is a problem, it should be a different
patch with explanation to why "keys=common_pid" is broken.
-- Steve