aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/nfvbench.py
diff options
context:
space:
mode:
authorPierrick Louin <pierrick.louin@orange.com>2020-10-13 16:37:46 +0200
committerfmenguy <francoisregis.menguy@orange.com>2020-10-16 15:55:59 +0200
commit77ad6af4cc10aece9fac24eef1a01c50979cb3d2 (patch)
treee53f969a8684b95f621f4867d5e64760c398c18e /nfvbench/nfvbench.py
parentf2d211ad71a54286b1179434744abb7bbc2598b4 (diff)
NFVBENCH-178: Add a 'debug_mask' configuration parameter for development needs
Change-Id: I3752085cdd97105f24dfdde65a0c3beee46badb1 Signed-off-by: Pierrick Louin <pierrick.louin@orange.com>
Diffstat (limited to 'nfvbench/nfvbench.py')
-rw-r--r--nfvbench/nfvbench.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/nfvbench/nfvbench.py b/nfvbench/nfvbench.py
index 9b8b3d1..ee4f6a5 100644
--- a/nfvbench/nfvbench.py
+++ b/nfvbench/nfvbench.py
@@ -551,6 +551,15 @@ def _parse_opts_from_cli():
default=False,
help='Disable latency measurements (no streams)')
+ parser.add_argument('--debug-mask', dest='debug_mask',
+ type=int_arg,
+ metavar='<mask>',
+ action='store',
+ default='0x00000000',
+ help='General purpose register (debugging flags), '
+ + 'the hexadecimal notation (0x...) is accepted.'
+ + 'Designed for development needs.')
+
opts, unknown_opts = parser.parse_known_args()
return opts, unknown_opts