Added a 'make system_info' target to print out system info
related to DPDK. This is intended as output that can be
attached to bug reports.
---
 mk/rte.sdkroot.mk | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk
index e8423b0..b477d09 100644
--- a/mk/rte.sdkroot.mk
+++ b/mk/rte.sdkroot.mk
@@ -123,3 +123,36 @@ examples examples_clean:
 %:
        $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk checkconfig
        $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkbuild.mk $@
+
+.PHONY: system_info
+system_info:
+       $(Q)echo
+       $(Q)echo "CC version"
+       $(Q)echo "=========="
+       $(Q)$(CC) --version
+       $(Q)echo
+
+       $(Q)echo "DPDK version"
+       $(Q)echo "============"
+       $(Q)$(MAKE) showversion
+       $(Q)echo
+
+       $(Q)echo "Git commit"
+       $(Q)echo "=========="
+       $(Q)git log --pretty=format:'%H' -1
+       $(Q)echo
+
+       $(Q)echo "Uname"
+       $(Q)echo "====="
+       $(Q)uname -srvmpio
+       $(Q)echo
+
+       $(Q)echo "Hugepages"
+       $(Q)echo "========="
+       $(Q)grep -i huge /proc/meminfo
+       $(Q)echo
+
+       $(Q)tools/cpu_layout.py
+
+       $(Q)tools/dpdk_nic_bind.py --status
+       $(Q)echo
-- 
1.8.1.4

Reply via email to