aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--[-rwxr-xr-x]nfvbench/cfg.default.yaml6
-rw-r--r--nfvbench/nfvbench.py9
2 files changed, 15 insertions, 0 deletions
diff --git a/nfvbench/cfg.default.yaml b/nfvbench/cfg.default.yaml
index b33d02c..ac31d05 100755..100644
--- a/nfvbench/cfg.default.yaml
+++ b/nfvbench/cfg.default.yaml
@@ -871,3 +871,9 @@ no_latency_stats: false
# Can be overriden by --no-latency-stream
# Should be left to the default value (false)
no_latency_streams: false
+
+# General purpose register (debugging flags)
+# Can be overriden by --debug-mask
+# Designed for development needs
+# The hexadecimal notation (0x...) is accepted.
+debug_mask: 0x00000000
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