aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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