From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id C40F16AB1 for ; Fri, 28 Feb 2014 18:24:48 +0100 (CET) Received: by mail-wg0-f49.google.com with SMTP id x12so804362wgg.8 for ; Fri, 28 Feb 2014 09:26:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QR9EwVhe1oO9LTG8IIJ9ZO00J4pVywijHf7R9j3a05U=; b=doJJOu31EnlnfFK8uUy5PXbm0ek0oQff2Bcu3qtPJJdW3OKutUfda6LLw3LI9ivbF1 jVZcxekgIE5c+l7Uz04VTF3yp2iB9DEzjImTLki+pUY9P/JembwcntEsbFcwqYXhlj5R ZdbUhWOCqPQ/izJFuV57Gr/X7auoZqDRl9iZaBSqyxiMHY1iLr43Mh6IhDfNE0zgE7sL uH1j5hWYIxSasjV5KNcDl7x3QnQIrspj9ipjbjON9v6F3q+yGK2ekHIcItSmpKtQymAJ /ChVlebo5fuNQVocg6EXO2rQBmIapJEN6iXsMyV1w+Ve5+vhC0Csq+fTikudF0GfYOJJ 3ibw== X-Gm-Message-State: ALoCoQkIVRzUL8ZA5UHl5oc9lNx7Z6cB5ukY7YooTYB3ptKH0f9D9dyasVpQ3WhMw0jvdAprf4Xn X-Received: by 10.180.11.233 with SMTP id t9mr9317530wib.1.1393608375738; Fri, 28 Feb 2014 09:26:15 -0800 (PST) Received: from glumotte.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by mx.google.com with ESMTPSA id hy8sm5908439wjb.2.2014.02.28.09.26.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Feb 2014 09:26:15 -0800 (PST) From: Olivier Matz To: dev@dpdk.org Date: Fri, 28 Feb 2014 18:25:43 +0100 Message-Id: <1393608350-4431-5-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1393608350-4431-1-git-send-email-olivier.matz@6wind.com> References: <1393608350-4431-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 04/11] devices-args: add a dump_devargs command in basic test application X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2014 17:24:49 -0000 This is useful for debug purposes. Example: echo 100 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages echo 100 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages ./app/test -c 0x15 -n 3 -m 64 \ --use-dev="eth_ring0" --use-device="eth_ring1" --use-device="02:00.0" RTE>>dump_devargs User device white list: VIRTUAL eth_ring0 VIRTUAL eth_ring1 PCI whitelist 0000:02:00.0 Signed-off-by: Olivier Matz --- app/test/commands.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/test/commands.c b/app/test/commands.c index 7595b4c..b145036 100644 --- a/app/test/commands.c +++ b/app/test/commands.c @@ -65,6 +65,7 @@ #include #include #include +#include #include #include @@ -285,12 +286,15 @@ static void cmd_dump_parsed(void *parsed_result, rte_ring_list_dump(); else if (!strcmp(res->dump, "dump_mempool")) rte_mempool_list_dump(); + else if (!strcmp(res->dump, "dump_devargs")) + rte_eal_devargs_dump(); } cmdline_parse_token_string_t cmd_dump_dump = TOKEN_STRING_INITIALIZER(struct cmd_dump_result, dump, "dump_physmem#dump_memzone#dump_log_history#" - "dump_struct_sizes#dump_ring#dump_mempool"); + "dump_struct_sizes#dump_ring#dump_mempool#" + "dump_devargs"); cmdline_parse_inst_t cmd_dump = { .f = cmd_dump_parsed, /* function to call */ -- 1.8.5.3