Message ID | 1452007772-11744-3-git-send-email-mike.holmes@linaro.org |
---|---|
State | New |
Headers | show |
When I try to run this I get: bill@Ubuntu15:~/linaro/mikepatch1/platform/linux-generic/test/performance$ ./odp_scheduling_proc_run odp_scheduling_proc_run starts with 1 worker threads =============================================== ./odp_scheduling_proc_run: 19: ./odp_scheduling_proc_run: ./odp_scheduling: not found odp_scheduling_proc_run starts with 8 worker threads =============================================== ./odp_scheduling_proc_run: 19: ./odp_scheduling_proc_run: ./odp_scheduling: not found bill@Ubuntu15:~/linaro/mikepatch1/platform/linux-generic/test/performance$ I assume this is some pathing issue? On Tue, Jan 5, 2016 at 9:29 AM, Mike Holmes <mike.holmes@linaro.org> wrote: > Add infrastructure for platform dependent performance testing. > Added scheduler performance test using process mode. > > Signed-off-by: Mike Holmes <mike.holmes@linaro.org> > --- > platform/linux-generic/m4/configure.m4 | 1 + > platform/linux-generic/test/Makefile.am | 4 ++++ > .../linux-generic/test/performance/Makefile.am | 13 +++++++++++ > .../test/performance/odp_scheduling_proc_run | 25 > ++++++++++++++++++++++ > .../test/performance/tests-performance.env | 3 +++ > 5 files changed, 46 insertions(+) > create mode 100644 platform/linux-generic/test/performance/Makefile.am > create mode 100755 > platform/linux-generic/test/performance/odp_scheduling_proc_run > create mode 100644 > platform/linux-generic/test/performance/tests-performance.env > > diff --git a/platform/linux-generic/m4/configure.m4 > b/platform/linux-generic/m4/configure.m4 > index 97c15fa..82b7c5e 100644 > --- a/platform/linux-generic/m4/configure.m4 > +++ b/platform/linux-generic/m4/configure.m4 > @@ -23,5 +23,6 @@ m4_include([platform/linux-generic/m4/odp_pcap.m4]) > > AC_CONFIG_FILES([platform/linux-generic/Makefile > platform/linux-generic/test/Makefile > + platform/linux-generic/test/performance/Makefile > platform/linux-generic/test/validation/Makefile > platform/linux-generic/test/validation/pktio/Makefile]) > diff --git a/platform/linux-generic/test/Makefile.am > b/platform/linux-generic/test/Makefile.am > index 3cf638d..7fe79c9 100644 > --- a/platform/linux-generic/test/Makefile.am > +++ b/platform/linux-generic/test/Makefile.am > @@ -4,6 +4,10 @@ if test_vald > SUBDIRS += validation > endif > > +if test_perf > +SUBDIRS += performance > +endif > + > if test_installdir > installcheck-local: > $(DESTDIR)/$(testdir)/run-test > diff --git a/platform/linux-generic/test/performance/Makefile.am > b/platform/linux-generic/test/performance/Makefile.am > new file mode 100644 > index 0000000..22d46d5 > --- /dev/null > +++ b/platform/linux-generic/test/performance/Makefile.am > @@ -0,0 +1,13 @@ > +include $(top_srcdir)/test/Makefile.inc > +TESTS_ENVIRONMENT += TEST_DIR=${top_builddir}/test/performance > + > +TESTS = odp_scheduling_proc_run > + > +dist_check_SCRIPTS = odp_scheduling_proc_run tests-performance.env > + > +test_SCRIPTS = $(dist_check_SCRIPTS) > + > +tests-performance.env: > + echo "TESTS=\"$(TESTS)\"" > $@ > + echo "$(TESTS_ENVIRONMENT)" >> $@ > + echo "$(LOG_COMPILER)" >> $@ > diff --git > a/platform/linux-generic/test/performance/odp_scheduling_proc_run > b/platform/linux-generic/test/performance/odp_scheduling_proc_run > new file mode 100755 > index 0000000..0fbb5ca > --- /dev/null > +++ b/platform/linux-generic/test/performance/odp_scheduling_proc_run > @@ -0,0 +1,25 @@ > +#!/bin/sh > +# > +# Copyright (c) 2015, Linaro Limited > +# All rights reserved. > +# > +# SPDX-License-Identifier: BSD-3-Clause > +# > +# Script that passes command line arguments to odp_scheduling test when > +# launched by 'make check' > + > +TEST_DIR="${TEST_DIR:-$(dirname $0)}" > +ret=0 > + > +run() > +{ > + echo odp_scheduling_proc_run starts with $1 worker threads > + echo =============================================== > + > + $TEST_DIR/odp_scheduling${EXEEXT} -c $1 --proc || ret=1 > +} > + > +run 1 > +run 8 > + > +exit $ret > diff --git a/platform/linux-generic/test/performance/tests-performance.env > b/platform/linux-generic/test/performance/tests-performance.env > new file mode 100644 > index 0000000..dd18b80 > --- /dev/null > +++ b/platform/linux-generic/test/performance/tests-performance.env > @@ -0,0 +1,3 @@ > +TESTS="" > +ODP_PLATFORM=linux-generic EXEEXT= TEST_DIR=../../../../test/performance > + > -- > 2.5.0 > > _______________________________________________ > lng-odp mailing list > lng-odp@lists.linaro.org > https://lists.linaro.org/mailman/listinfo/lng-odp >
see V2, you may have pulled V1 by mistake ? On 7 January 2016 at 16:32, Bill Fischofer <bill.fischofer@linaro.org> wrote: > When I try to run this I get: > > bill@Ubuntu15:~/linaro/mikepatch1/platform/linux-generic/test/performance$ > ./odp_scheduling_proc_run > odp_scheduling_proc_run starts with 1 worker threads > =============================================== > ./odp_scheduling_proc_run: 19: ./odp_scheduling_proc_run: > ./odp_scheduling: not found > odp_scheduling_proc_run starts with 8 worker threads > =============================================== > ./odp_scheduling_proc_run: 19: ./odp_scheduling_proc_run: > ./odp_scheduling: not found > bill@Ubuntu15 > :~/linaro/mikepatch1/platform/linux-generic/test/performance$ > > I assume this is some pathing issue? > > On Tue, Jan 5, 2016 at 9:29 AM, Mike Holmes <mike.holmes@linaro.org> > wrote: > >> Add infrastructure for platform dependent performance testing. >> Added scheduler performance test using process mode. >> >> Signed-off-by: Mike Holmes <mike.holmes@linaro.org> >> --- >> platform/linux-generic/m4/configure.m4 | 1 + >> platform/linux-generic/test/Makefile.am | 4 ++++ >> .../linux-generic/test/performance/Makefile.am | 13 +++++++++++ >> .../test/performance/odp_scheduling_proc_run | 25 >> ++++++++++++++++++++++ >> .../test/performance/tests-performance.env | 3 +++ >> 5 files changed, 46 insertions(+) >> create mode 100644 platform/linux-generic/test/performance/Makefile.am >> create mode 100755 >> platform/linux-generic/test/performance/odp_scheduling_proc_run >> create mode 100644 >> platform/linux-generic/test/performance/tests-performance.env >> >> diff --git a/platform/linux-generic/m4/configure.m4 >> b/platform/linux-generic/m4/configure.m4 >> index 97c15fa..82b7c5e 100644 >> --- a/platform/linux-generic/m4/configure.m4 >> +++ b/platform/linux-generic/m4/configure.m4 >> @@ -23,5 +23,6 @@ m4_include([platform/linux-generic/m4/odp_pcap.m4]) >> >> AC_CONFIG_FILES([platform/linux-generic/Makefile >> platform/linux-generic/test/Makefile >> + platform/linux-generic/test/performance/Makefile >> platform/linux-generic/test/validation/Makefile >> platform/linux-generic/test/validation/pktio/Makefile]) >> diff --git a/platform/linux-generic/test/Makefile.am >> b/platform/linux-generic/test/Makefile.am >> index 3cf638d..7fe79c9 100644 >> --- a/platform/linux-generic/test/Makefile.am >> +++ b/platform/linux-generic/test/Makefile.am >> @@ -4,6 +4,10 @@ if test_vald >> SUBDIRS += validation >> endif >> >> +if test_perf >> +SUBDIRS += performance >> +endif >> + >> if test_installdir >> installcheck-local: >> $(DESTDIR)/$(testdir)/run-test >> diff --git a/platform/linux-generic/test/performance/Makefile.am >> b/platform/linux-generic/test/performance/Makefile.am >> new file mode 100644 >> index 0000000..22d46d5 >> --- /dev/null >> +++ b/platform/linux-generic/test/performance/Makefile.am >> @@ -0,0 +1,13 @@ >> +include $(top_srcdir)/test/Makefile.inc >> +TESTS_ENVIRONMENT += TEST_DIR=${top_builddir}/test/performance >> + >> +TESTS = odp_scheduling_proc_run >> + >> +dist_check_SCRIPTS = odp_scheduling_proc_run tests-performance.env >> + >> +test_SCRIPTS = $(dist_check_SCRIPTS) >> + >> +tests-performance.env: >> + echo "TESTS=\"$(TESTS)\"" > $@ >> + echo "$(TESTS_ENVIRONMENT)" >> $@ >> + echo "$(LOG_COMPILER)" >> $@ >> diff --git >> a/platform/linux-generic/test/performance/odp_scheduling_proc_run >> b/platform/linux-generic/test/performance/odp_scheduling_proc_run >> new file mode 100755 >> index 0000000..0fbb5ca >> --- /dev/null >> +++ b/platform/linux-generic/test/performance/odp_scheduling_proc_run >> @@ -0,0 +1,25 @@ >> +#!/bin/sh >> +# >> +# Copyright (c) 2015, Linaro Limited >> +# All rights reserved. >> +# >> +# SPDX-License-Identifier: BSD-3-Clause >> +# >> +# Script that passes command line arguments to odp_scheduling test when >> +# launched by 'make check' >> + >> +TEST_DIR="${TEST_DIR:-$(dirname $0)}" >> +ret=0 >> + >> +run() >> +{ >> + echo odp_scheduling_proc_run starts with $1 worker threads >> + echo =============================================== >> + >> + $TEST_DIR/odp_scheduling${EXEEXT} -c $1 --proc || ret=1 >> +} >> + >> +run 1 >> +run 8 >> + >> +exit $ret >> diff --git >> a/platform/linux-generic/test/performance/tests-performance.env >> b/platform/linux-generic/test/performance/tests-performance.env >> new file mode 100644 >> index 0000000..dd18b80 >> --- /dev/null >> +++ b/platform/linux-generic/test/performance/tests-performance.env >> @@ -0,0 +1,3 @@ >> +TESTS="" >> +ODP_PLATFORM=linux-generic EXEEXT= TEST_DIR=../../../../test/performance >> + >> -- >> 2.5.0 >> >> _______________________________________________ >> lng-odp mailing list >> lng-odp@lists.linaro.org >> https://lists.linaro.org/mailman/listinfo/lng-odp >> > > -- Mike Holmes Technical Manager - Linaro Networking Group Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs
Sorry, I think I just replied to the wrong e-mail. To be sure I pulled the v2 patch explicitly and retested and get the same result with that. On Thu, Jan 7, 2016 at 3:35 PM, Mike Holmes <mike.holmes@linaro.org> wrote: > see V2, you may have pulled V1 by mistake ? > > On 7 January 2016 at 16:32, Bill Fischofer <bill.fischofer@linaro.org> > wrote: > >> When I try to run this I get: >> >> bill@Ubuntu15:~/linaro/mikepatch1/platform/linux-generic/test/performance$ >> ./odp_scheduling_proc_run >> odp_scheduling_proc_run starts with 1 worker threads >> =============================================== >> ./odp_scheduling_proc_run: 19: ./odp_scheduling_proc_run: >> ./odp_scheduling: not found >> odp_scheduling_proc_run starts with 8 worker threads >> =============================================== >> ./odp_scheduling_proc_run: 19: ./odp_scheduling_proc_run: >> ./odp_scheduling: not found >> bill@Ubuntu15 >> :~/linaro/mikepatch1/platform/linux-generic/test/performance$ >> >> I assume this is some pathing issue? >> >> On Tue, Jan 5, 2016 at 9:29 AM, Mike Holmes <mike.holmes@linaro.org> >> wrote: >> >>> Add infrastructure for platform dependent performance testing. >>> Added scheduler performance test using process mode. >>> >>> Signed-off-by: Mike Holmes <mike.holmes@linaro.org> >>> --- >>> platform/linux-generic/m4/configure.m4 | 1 + >>> platform/linux-generic/test/Makefile.am | 4 ++++ >>> .../linux-generic/test/performance/Makefile.am | 13 +++++++++++ >>> .../test/performance/odp_scheduling_proc_run | 25 >>> ++++++++++++++++++++++ >>> .../test/performance/tests-performance.env | 3 +++ >>> 5 files changed, 46 insertions(+) >>> create mode 100644 platform/linux-generic/test/performance/Makefile.am >>> create mode 100755 >>> platform/linux-generic/test/performance/odp_scheduling_proc_run >>> create mode 100644 >>> platform/linux-generic/test/performance/tests-performance.env >>> >>> diff --git a/platform/linux-generic/m4/configure.m4 >>> b/platform/linux-generic/m4/configure.m4 >>> index 97c15fa..82b7c5e 100644 >>> --- a/platform/linux-generic/m4/configure.m4 >>> +++ b/platform/linux-generic/m4/configure.m4 >>> @@ -23,5 +23,6 @@ m4_include([platform/linux-generic/m4/odp_pcap.m4]) >>> >>> AC_CONFIG_FILES([platform/linux-generic/Makefile >>> platform/linux-generic/test/Makefile >>> + platform/linux-generic/test/performance/Makefile >>> platform/linux-generic/test/validation/Makefile >>> platform/linux-generic/test/validation/pktio/Makefile]) >>> diff --git a/platform/linux-generic/test/Makefile.am >>> b/platform/linux-generic/test/Makefile.am >>> index 3cf638d..7fe79c9 100644 >>> --- a/platform/linux-generic/test/Makefile.am >>> +++ b/platform/linux-generic/test/Makefile.am >>> @@ -4,6 +4,10 @@ if test_vald >>> SUBDIRS += validation >>> endif >>> >>> +if test_perf >>> +SUBDIRS += performance >>> +endif >>> + >>> if test_installdir >>> installcheck-local: >>> $(DESTDIR)/$(testdir)/run-test >>> diff --git a/platform/linux-generic/test/performance/Makefile.am >>> b/platform/linux-generic/test/performance/Makefile.am >>> new file mode 100644 >>> index 0000000..22d46d5 >>> --- /dev/null >>> +++ b/platform/linux-generic/test/performance/Makefile.am >>> @@ -0,0 +1,13 @@ >>> +include $(top_srcdir)/test/Makefile.inc >>> +TESTS_ENVIRONMENT += TEST_DIR=${top_builddir}/test/performance >>> + >>> +TESTS = odp_scheduling_proc_run >>> + >>> +dist_check_SCRIPTS = odp_scheduling_proc_run tests-performance.env >>> + >>> +test_SCRIPTS = $(dist_check_SCRIPTS) >>> + >>> +tests-performance.env: >>> + echo "TESTS=\"$(TESTS)\"" > $@ >>> + echo "$(TESTS_ENVIRONMENT)" >> $@ >>> + echo "$(LOG_COMPILER)" >> $@ >>> diff --git >>> a/platform/linux-generic/test/performance/odp_scheduling_proc_run >>> b/platform/linux-generic/test/performance/odp_scheduling_proc_run >>> new file mode 100755 >>> index 0000000..0fbb5ca >>> --- /dev/null >>> +++ b/platform/linux-generic/test/performance/odp_scheduling_proc_run >>> @@ -0,0 +1,25 @@ >>> +#!/bin/sh >>> +# >>> +# Copyright (c) 2015, Linaro Limited >>> +# All rights reserved. >>> +# >>> +# SPDX-License-Identifier: BSD-3-Clause >>> +# >>> +# Script that passes command line arguments to odp_scheduling test when >>> +# launched by 'make check' >>> + >>> +TEST_DIR="${TEST_DIR:-$(dirname $0)}" >>> +ret=0 >>> + >>> +run() >>> +{ >>> + echo odp_scheduling_proc_run starts with $1 worker threads >>> + echo =============================================== >>> + >>> + $TEST_DIR/odp_scheduling${EXEEXT} -c $1 --proc || ret=1 >>> +} >>> + >>> +run 1 >>> +run 8 >>> + >>> +exit $ret >>> diff --git >>> a/platform/linux-generic/test/performance/tests-performance.env >>> b/platform/linux-generic/test/performance/tests-performance.env >>> new file mode 100644 >>> index 0000000..dd18b80 >>> --- /dev/null >>> +++ b/platform/linux-generic/test/performance/tests-performance.env >>> @@ -0,0 +1,3 @@ >>> +TESTS="" >>> +ODP_PLATFORM=linux-generic EXEEXT= TEST_DIR=../../../../test/performance >>> + >>> -- >>> 2.5.0 >>> >>> _______________________________________________ >>> lng-odp mailing list >>> lng-odp@lists.linaro.org >>> https://lists.linaro.org/mailman/listinfo/lng-odp >>> >> >> > > > -- > Mike Holmes > Technical Manager - Linaro Networking Group > Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs > > >
Ok, thanks, will take a look On 7 January 2016 at 16:40, Bill Fischofer <bill.fischofer@linaro.org> wrote: > Sorry, I think I just replied to the wrong e-mail. To be sure I pulled > the v2 patch explicitly and retested and get the same result with that. > > On Thu, Jan 7, 2016 at 3:35 PM, Mike Holmes <mike.holmes@linaro.org> > wrote: > >> see V2, you may have pulled V1 by mistake ? >> >> On 7 January 2016 at 16:32, Bill Fischofer <bill.fischofer@linaro.org> >> wrote: >> >>> When I try to run this I get: >>> >>> bill@Ubuntu15:~/linaro/mikepatch1/platform/linux-generic/test/performance$ >>> ./odp_scheduling_proc_run >>> odp_scheduling_proc_run starts with 1 worker threads >>> =============================================== >>> ./odp_scheduling_proc_run: 19: ./odp_scheduling_proc_run: >>> ./odp_scheduling: not found >>> odp_scheduling_proc_run starts with 8 worker threads >>> =============================================== >>> ./odp_scheduling_proc_run: 19: ./odp_scheduling_proc_run: >>> ./odp_scheduling: not found >>> bill@Ubuntu15 >>> :~/linaro/mikepatch1/platform/linux-generic/test/performance$ >>> >>> I assume this is some pathing issue? >>> >>> On Tue, Jan 5, 2016 at 9:29 AM, Mike Holmes <mike.holmes@linaro.org> >>> wrote: >>> >>>> Add infrastructure for platform dependent performance testing. >>>> Added scheduler performance test using process mode. >>>> >>>> Signed-off-by: Mike Holmes <mike.holmes@linaro.org> >>>> --- >>>> platform/linux-generic/m4/configure.m4 | 1 + >>>> platform/linux-generic/test/Makefile.am | 4 ++++ >>>> .../linux-generic/test/performance/Makefile.am | 13 +++++++++++ >>>> .../test/performance/odp_scheduling_proc_run | 25 >>>> ++++++++++++++++++++++ >>>> .../test/performance/tests-performance.env | 3 +++ >>>> 5 files changed, 46 insertions(+) >>>> create mode 100644 platform/linux-generic/test/performance/Makefile.am >>>> create mode 100755 >>>> platform/linux-generic/test/performance/odp_scheduling_proc_run >>>> create mode 100644 >>>> platform/linux-generic/test/performance/tests-performance.env >>>> >>>> diff --git a/platform/linux-generic/m4/configure.m4 >>>> b/platform/linux-generic/m4/configure.m4 >>>> index 97c15fa..82b7c5e 100644 >>>> --- a/platform/linux-generic/m4/configure.m4 >>>> +++ b/platform/linux-generic/m4/configure.m4 >>>> @@ -23,5 +23,6 @@ m4_include([platform/linux-generic/m4/odp_pcap.m4]) >>>> >>>> AC_CONFIG_FILES([platform/linux-generic/Makefile >>>> platform/linux-generic/test/Makefile >>>> + platform/linux-generic/test/performance/Makefile >>>> platform/linux-generic/test/validation/Makefile >>>> platform/linux-generic/test/validation/pktio/Makefile]) >>>> diff --git a/platform/linux-generic/test/Makefile.am >>>> b/platform/linux-generic/test/Makefile.am >>>> index 3cf638d..7fe79c9 100644 >>>> --- a/platform/linux-generic/test/Makefile.am >>>> +++ b/platform/linux-generic/test/Makefile.am >>>> @@ -4,6 +4,10 @@ if test_vald >>>> SUBDIRS += validation >>>> endif >>>> >>>> +if test_perf >>>> +SUBDIRS += performance >>>> +endif >>>> + >>>> if test_installdir >>>> installcheck-local: >>>> $(DESTDIR)/$(testdir)/run-test >>>> diff --git a/platform/linux-generic/test/performance/Makefile.am >>>> b/platform/linux-generic/test/performance/Makefile.am >>>> new file mode 100644 >>>> index 0000000..22d46d5 >>>> --- /dev/null >>>> +++ b/platform/linux-generic/test/performance/Makefile.am >>>> @@ -0,0 +1,13 @@ >>>> +include $(top_srcdir)/test/Makefile.inc >>>> +TESTS_ENVIRONMENT += TEST_DIR=${top_builddir}/test/performance >>>> + >>>> +TESTS = odp_scheduling_proc_run >>>> + >>>> +dist_check_SCRIPTS = odp_scheduling_proc_run tests-performance.env >>>> + >>>> +test_SCRIPTS = $(dist_check_SCRIPTS) >>>> + >>>> +tests-performance.env: >>>> + echo "TESTS=\"$(TESTS)\"" > $@ >>>> + echo "$(TESTS_ENVIRONMENT)" >> $@ >>>> + echo "$(LOG_COMPILER)" >> $@ >>>> diff --git >>>> a/platform/linux-generic/test/performance/odp_scheduling_proc_run >>>> b/platform/linux-generic/test/performance/odp_scheduling_proc_run >>>> new file mode 100755 >>>> index 0000000..0fbb5ca >>>> --- /dev/null >>>> +++ b/platform/linux-generic/test/performance/odp_scheduling_proc_run >>>> @@ -0,0 +1,25 @@ >>>> +#!/bin/sh >>>> +# >>>> +# Copyright (c) 2015, Linaro Limited >>>> +# All rights reserved. >>>> +# >>>> +# SPDX-License-Identifier: BSD-3-Clause >>>> +# >>>> +# Script that passes command line arguments to odp_scheduling test when >>>> +# launched by 'make check' >>>> + >>>> +TEST_DIR="${TEST_DIR:-$(dirname $0)}" >>>> +ret=0 >>>> + >>>> +run() >>>> +{ >>>> + echo odp_scheduling_proc_run starts with $1 worker threads >>>> + echo =============================================== >>>> + >>>> + $TEST_DIR/odp_scheduling${EXEEXT} -c $1 --proc || ret=1 >>>> +} >>>> + >>>> +run 1 >>>> +run 8 >>>> + >>>> +exit $ret >>>> diff --git >>>> a/platform/linux-generic/test/performance/tests-performance.env >>>> b/platform/linux-generic/test/performance/tests-performance.env >>>> new file mode 100644 >>>> index 0000000..dd18b80 >>>> --- /dev/null >>>> +++ b/platform/linux-generic/test/performance/tests-performance.env >>>> @@ -0,0 +1,3 @@ >>>> +TESTS="" >>>> +ODP_PLATFORM=linux-generic EXEEXT= >>>> TEST_DIR=../../../../test/performance >>>> + >>>> -- >>>> 2.5.0 >>>> >>>> _______________________________________________ >>>> lng-odp mailing list >>>> lng-odp@lists.linaro.org >>>> https://lists.linaro.org/mailman/listinfo/lng-odp >>>> >>> >>> >> >> >> -- >> Mike Holmes >> Technical Manager - Linaro Networking Group >> Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs >> >> >> > -- Mike Holmes Technical Manager - Linaro Networking Group Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs
diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 97c15fa..82b7c5e 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -23,5 +23,6 @@ m4_include([platform/linux-generic/m4/odp_pcap.m4]) AC_CONFIG_FILES([platform/linux-generic/Makefile platform/linux-generic/test/Makefile + platform/linux-generic/test/performance/Makefile platform/linux-generic/test/validation/Makefile platform/linux-generic/test/validation/pktio/Makefile]) diff --git a/platform/linux-generic/test/Makefile.am b/platform/linux-generic/test/Makefile.am index 3cf638d..7fe79c9 100644 --- a/platform/linux-generic/test/Makefile.am +++ b/platform/linux-generic/test/Makefile.am @@ -4,6 +4,10 @@ if test_vald SUBDIRS += validation endif +if test_perf +SUBDIRS += performance +endif + if test_installdir installcheck-local: $(DESTDIR)/$(testdir)/run-test diff --git a/platform/linux-generic/test/performance/Makefile.am b/platform/linux-generic/test/performance/Makefile.am new file mode 100644 index 0000000..22d46d5 --- /dev/null +++ b/platform/linux-generic/test/performance/Makefile.am @@ -0,0 +1,13 @@ +include $(top_srcdir)/test/Makefile.inc +TESTS_ENVIRONMENT += TEST_DIR=${top_builddir}/test/performance + +TESTS = odp_scheduling_proc_run + +dist_check_SCRIPTS = odp_scheduling_proc_run tests-performance.env + +test_SCRIPTS = $(dist_check_SCRIPTS) + +tests-performance.env: + echo "TESTS=\"$(TESTS)\"" > $@ + echo "$(TESTS_ENVIRONMENT)" >> $@ + echo "$(LOG_COMPILER)" >> $@ diff --git a/platform/linux-generic/test/performance/odp_scheduling_proc_run b/platform/linux-generic/test/performance/odp_scheduling_proc_run new file mode 100755 index 0000000..0fbb5ca --- /dev/null +++ b/platform/linux-generic/test/performance/odp_scheduling_proc_run @@ -0,0 +1,25 @@ +#!/bin/sh +# +# Copyright (c) 2015, Linaro Limited +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# +# Script that passes command line arguments to odp_scheduling test when +# launched by 'make check' + +TEST_DIR="${TEST_DIR:-$(dirname $0)}" +ret=0 + +run() +{ + echo odp_scheduling_proc_run starts with $1 worker threads + echo =============================================== + + $TEST_DIR/odp_scheduling${EXEEXT} -c $1 --proc || ret=1 +} + +run 1 +run 8 + +exit $ret diff --git a/platform/linux-generic/test/performance/tests-performance.env b/platform/linux-generic/test/performance/tests-performance.env new file mode 100644 index 0000000..dd18b80 --- /dev/null +++ b/platform/linux-generic/test/performance/tests-performance.env @@ -0,0 +1,3 @@ +TESTS="" +ODP_PLATFORM=linux-generic EXEEXT= TEST_DIR=../../../../test/performance +
Add infrastructure for platform dependent performance testing. Added scheduler performance test using process mode. Signed-off-by: Mike Holmes <mike.holmes@linaro.org> --- platform/linux-generic/m4/configure.m4 | 1 + platform/linux-generic/test/Makefile.am | 4 ++++ .../linux-generic/test/performance/Makefile.am | 13 +++++++++++ .../test/performance/odp_scheduling_proc_run | 25 ++++++++++++++++++++++ .../test/performance/tests-performance.env | 3 +++ 5 files changed, 46 insertions(+) create mode 100644 platform/linux-generic/test/performance/Makefile.am create mode 100755 platform/linux-generic/test/performance/odp_scheduling_proc_run create mode 100644 platform/linux-generic/test/performance/tests-performance.env