From 77ad6af4cc10aece9fac24eef1a01c50979cb3d2 Mon Sep 17 00:00:00 2001 From: Pierrick Louin Date: Tue, 13 Oct 2020 16:37:46 +0200 Subject: NFVBENCH-178: Add a 'debug_mask' configuration parameter for development needs Change-Id: I3752085cdd97105f24dfdde65a0c3beee46badb1 Signed-off-by: Pierrick Louin --- nfvbench/cfg.default.yaml | 6 ++++++ nfvbench/nfvbench.py | 9 +++++++++ 2 files changed, 15 insertions(+) mode change 100755 => 100644 nfvbench/cfg.default.yaml diff --git a/nfvbench/cfg.default.yaml b/nfvbench/cfg.default.yaml old mode 100755 new mode 100644 index b33d02c..ac31d05 --- 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='', + 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 -- cgit 1.2.3-korg