Add CONFIG_NETATOP to control enablement

Signed-off-by: He Zhe <zhe...@windriver.com>
---
 drivers/staging/Kconfig          |  2 ++
 drivers/staging/Makefile         |  1 +
 drivers/staging/netatop/Kconfig  | 13 +++++++++++++
 drivers/staging/netatop/Makefile |  1 +
 4 files changed, 17 insertions(+)
 create mode 100644 drivers/staging/netatop/Kconfig
 create mode 100644 drivers/staging/netatop/Makefile

diff --git a/drivers/staging/Kconfig b/drivers/staging/Kconfig
index 554683912cff..646f6d101cd6 100644
--- a/drivers/staging/Kconfig
+++ b/drivers/staging/Kconfig
@@ -118,4 +118,6 @@ source "drivers/staging/vboxvideo/Kconfig"
 
 source "drivers/staging/pi433/Kconfig"
 
+source "drivers/staging/netatop/Kconfig"
+
 endif # STAGING
diff --git a/drivers/staging/Makefile b/drivers/staging/Makefile
index 6e536020029a..065332760077 100644
--- a/drivers/staging/Makefile
+++ b/drivers/staging/Makefile
@@ -50,3 +50,4 @@ obj-$(CONFIG_BCM2835_VCHIQ)   += vc04_services/
 obj-$(CONFIG_CRYPTO_DEV_CCREE) += ccree/
 obj-$(CONFIG_DRM_VBOXVIDEO)    += vboxvideo/
 obj-$(CONFIG_PI433)            += pi433/
+obj-$(CONFIG_NETATOP)          += netatop/
diff --git a/drivers/staging/netatop/Kconfig b/drivers/staging/netatop/Kconfig
new file mode 100644
index 000000000000..fa0fe16e8030
--- /dev/null
+++ b/drivers/staging/netatop/Kconfig
@@ -0,0 +1,13 @@
+config NETATOP
+       tristate "Net statistics collector for atop"
+       default n
+       ---help---
+         netatop is used to gather statistics about the TCP and UDP packets
+         that have been transmitted/received per process and per thread. As
+         soon as atop discovers that this module is active, it shows the
+         columns SNET and RNET in the generic screen for the number of
+         transmitted and received packets per process. When the 'n' key is
+         pressed, it shows detailed counters about the number packets
+         transmitted/received via TCP and UDP, the average sizes of these
+         packets, and the total bandwidth consumed for input and output per
+         process/thread.
diff --git a/drivers/staging/netatop/Makefile b/drivers/staging/netatop/Makefile
new file mode 100644
index 000000000000..8038ced3c999
--- /dev/null
+++ b/drivers/staging/netatop/Makefile
@@ -0,0 +1 @@
+obj-$(CONFIG_NETATOP)  += netatop.o
-- 
2.11.0

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to