NFVBENCH-178: Add a 'debug_mask' configuration parameter for development needs 59/71259/2
authorPierrick Louin <pierrick.louin@orange.com>
Tue, 13 Oct 2020 14:37:46 +0000 (16:37 +0200)
committerfmenguy <francoisregis.menguy@orange.com>
Fri, 16 Oct 2020 13:55:59 +0000 (15:55 +0200)
Change-Id: I3752085cdd97105f24dfdde65a0c3beee46badb1
Signed-off-by: Pierrick Louin <pierrick.louin@orange.com>
nfvbench/cfg.default.yaml [changed mode: 0755->0644]
nfvbench/nfvbench.py

old mode 100755 (executable)
new mode 100644 (file)
index b33d02c..ac31d05
@@ -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
index 9b8b3d1..ee4f6a5 100644 (file)
@@ -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