From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 695052B9A for ; Sun, 7 May 2017 00:35:59 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id m123so31755030wma.0 for ; Sat, 06 May 2017 15:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=j1Wx9BlrMGIK0lgr5X4QGO/1JwbNycwaXmr+K1EJKmY=; b=J3gX/2/9/MR9y2lMoJjTA4hjXpWR1koKTIBtvZyBDH/+1XwmOs8oSfkfSnacVytWlt mKa/tyOwtr8j9ao9ffZd53uH4H8sRxA6TKPA1CueMwB/gN0O9FXBe5x2JBU9z8FoO2eV X8YWeWudVKkW79gh8XE47ZNj2P4OvXHxAKQ3uYLcc1VQWotupb3YcAmmQ42XOqls0hni Uxjc8fmPq7yt5V759CA9PFbMD9usY4StmNadfFA5gZr+VuWgKIqcqgaYjopIBMfCXEpZ ntkVu9aB8RBfFFAXSzRnw8qZ2UGU4peRQLeSquNbQX8bCsNVEKGdSSveN81uPl84hLkC 6bAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=j1Wx9BlrMGIK0lgr5X4QGO/1JwbNycwaXmr+K1EJKmY=; b=BWGJXzloXpAHksnKwOCqETZrJci4Mfb/t7cmbhbXTiLOjKnD1zAhO8BVFj3zcDddII OmRrjQLVWc5BPpaQ0fd1STHtpyQewzpaM08/n8WNHEs14nibvoEK/7RwRvUWKaE0QJdP ox4KUsmkwzEMddL3YzuftlHs6BFJtDJWerUjykU2O3FvaDsIwRzh+ExAbh709/ksraxh aeMReafsz7J2wE3LaSGOHbXwqvQQwOGq65SniP5AQvGU1zZueAZS52n6zdDq7U/3OM7p a89W9NNs43I8Imgv3Wa4m6eKCgaCVnYn1dnunMG1dQcaq6bUDO4FaCJ4LpGildLn3IHD ot/g== X-Gm-Message-State: AN3rC/7RqYzkaOyo4wCj1pnkAOhJsNEJ0CJ/esTpdmSmqRm26KqtNFt+ mC6CVwloqnlFP4vA X-Received: by 10.28.0.13 with SMTP id 13mr8493119wma.19.1494110158981; Sat, 06 May 2017 15:35:58 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id c184sm5589522wmd.2.2017.05.06.15.35.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 May 2017 15:35:57 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Jingjing Wu Date: Sun, 7 May 2017 00:35:46 +0200 Message-Id: <9d8c4544dd83df36993f161415ac4d6eb96c2411.1494110057.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH] app/testpmd: print all or no events X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 May 2017 22:35:59 -0000 Adds the "all" option to the print-event and mask-event parameters. This option will enable or disable all event notifications from being displayed. Signed-off-by: Gaetan Rivet Cc: Jingjing Wu --- app/test-pmd/parameters.c | 10 ++++++---- doc/guides/testpmd_app_ug/run_app.rst | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index 23f2fa3..24ed046 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -206,10 +206,10 @@ usage(char* progname) printf(" --no-rmv-interrupt: disable device removal interrupt.\n"); printf(" --bitrate-stats=N: set the logical core N to perform " "bit-rate calculation.\n"); - printf(" --print-event : " - "enable print of designated event"); - printf(" --mask-event : " - "disable print of designated event"); + printf(" --print-event : " + "enable print of designated event or all of them."); + printf(" --mask-event : " + "disable print of designated event or all of them."); } #ifdef RTE_LIBRTE_CMDLINE @@ -526,6 +526,8 @@ parse_event_printing_config(const char *optarg, int enable) mask = UINT32_C(1) << RTE_ETH_EVENT_MACSEC; else if (!strcmp(optarg, "intr_rmv")) mask = UINT32_C(1) << RTE_ETH_EVENT_INTR_RMV; + else if (!strcmp(optarg, "all")) + mask = ~UINT32_C(0); else { fprintf(stderr, "Invalid event: %s\n", optarg); return -1; diff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst index 98f6d1f..2a43214 100644 --- a/doc/guides/testpmd_app_ug/run_app.rst +++ b/doc/guides/testpmd_app_ug/run_app.rst @@ -478,10 +478,12 @@ The commandline options are: Set the logical core N to perform bitrate calculation. -* ``--print-event `` +* ``--print-event `` - Enable printing the occurrence of the designated event. + Enable printing the occurrence of the designated event. Using all will + enable all of them. -* ``--mask-event `` +* ``--mask-event `` - Disable printing the occurrence of the designated event. + Disable printing the occurrence of the designated event. Using all will + disable all of them. -- 2.1.4