This patch series shows my proposed method for adding the capability to specify cpumasks on the command line for any ODP application... either new or existing. The code has been developed and tested against the current ODP master and api-next branches. These patches require and assume that both the BUG 2027 fix changes and the API-NEXT cpumask changes have been previously incorporated into the branch in question.
These modifications are posted for your consideration and commentary only at this time. They have been created as patches against the api-next branch - and are available for experimentation in my personal ODP isolation staging git repository at: http://git.linaro.org/people/gary.robertson/odp-isolation.git Both the 'master' and 'api-next' branches in this git repo have been modified to contain working instances of this code along with all the pre-requisites. Additionally, the 'isolation-v4' branch contains the current isolation support code so using 'sudo' or root login access it is possible to run the pktio-performance test with command line cpumask entry and isolation support. However be advised that the actual isolation support code is currently a work in progress and expected to change significantly in the next week or two... nonetheless it does provide an isolated environment when configured with --enable-isolation and run with an -iz or --isolate command line option. Specifically the steps are: checkout isolation-v4 ./bootstrap ./configure --enable-test-perf --enable-test-vald --enable-isolation make clean ; make check cd test/performance ./odp_pktio_perf -iz Running the test with no command line parameters defaults to non-isolated operation. ./odp_pktio_perf -h will produce a usage dialogue for both the cpumask options as well as the test application's own options. Gary S. Robertson (2): linux-generic: add command line cpumask helpers add isolation support to pktio performance test helper/Makefile.am | 2 + helper/cpumask_cli.c | 954 ++++++++++++++++++++++++++++ helper/include/odp/helper/linux.h | 2 + helper/include/odp/helper/linux_isolation.h | 191 ++++++ test/performance/odp_pktio_perf.c | 8 +- 5 files changed, 1155 insertions(+), 2 deletions(-) create mode 100644 helper/cpumask_cli.c create mode 100644 helper/include/odp/helper/linux_isolation.h -- 1.9.1 _______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
