Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'snsh -p' argument to run a different program
Support using snsh as an entry point to any snabb program. This way you can use snsh for pre-execution configuration such as enabling profiling or JIT tracing. Here is an example of running 'snabbmark' after enabling profiling: $ sudo ./snabb snsh -jp=3F -p snabbmark basic1 1e6 Processed 1.1 million packets in 0.09 seconds (rate: 12.7 Mpps). 25% link.lua:full < link.lua:transmit < basic_apps.lua:method 13% freelist.lua:freelist_add < packet.lua:free_internal < packet.lua:free 13% freelist.lua:allocate < packet.lua:clone < basic_apps.lua:method 13% packet.lua:free < basic_apps.lua:method < app.lua:with_restart 13% link.lua:receive < basic_apps.lua:method < app.lua:with_restart 13% packet.lua:clone < basic_apps.lua:method < app.lua:with_restart 13% app.lua:breathe < app.lua:main < snabbmark.lua:basic1
- Loading branch information