* [PATCH] Add user space utility:dropwatch
@ 2024-02-09 11:24 chenheyun
2024-02-09 12:38 ` [OE-core] " Ross Burton
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: chenheyun @ 2024-02-09 11:24 UTC (permalink / raw)
To: openembedded-core; +Cc: chenheyun
Signed-off-by: chenheyun <chen_heyun@163.com>
---
.../dropwatch/dropwatch_git.bb | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100755 meta/recipes-extended/dropwatch/dropwatch_git.bb
diff --git a/meta/recipes-extended/dropwatch/dropwatch_git.bb b/meta/recipes-extended/dropwatch/dropwatch_git.bb
new file mode 100755
index 0000000000..62a1eab777
--- /dev/null
+++ b/meta/recipes-extended/dropwatch/dropwatch_git.bb
@@ -0,0 +1,22 @@
+# Copyright (C) 2024 chenheyun <chen_heyun@163.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "User space utility to diagnose to NetWorking packets are getting dropped"
+DESCRIPTION = "Dropwatch is an utility to interface to the kernel to monitor for dropped \
+ network packets"
+
+HOMEPAGE = "https://github.com/nhorman/dropwatch/"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
+DEPENDS = "libnl readline libpcap binutils"
+
+PV = "1.0.0"
+
+SRC_URI = "git://github.com/nhorman/dropwatch/;branch=master;protocol=https"
+SRCREV = "853457b77dbc3d6665a379f3fe31ec53f11b6f61"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig gettext
+
+BBCLASSEXTEND = "native nativesdk"
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [OE-core] [PATCH] Add user space utility:dropwatch
2024-02-09 11:24 [PATCH] Add user space utility:dropwatch chenheyun
@ 2024-02-09 12:38 ` Ross Burton
2024-02-09 14:06 ` Jörg Sommer
2024-02-09 15:01 ` Yoann Congal
2 siblings, 0 replies; 9+ messages in thread
From: Ross Burton @ 2024-02-09 12:38 UTC (permalink / raw)
To: chen_heyun@163.com; +Cc: openembedded-core@lists.openembedded.org
On 9 Feb 2024, at 11:24, chenheyun via lists.openembedded.org <chen_heyun=163.com@lists.openembedded.org> wrote:
> +SUMMARY = "User space utility to diagnose to NetWorking packets are getting dropped"
> +DESCRIPTION = "Dropwatch is an utility to interface to the kernel to monitor for dropped \
> + network packets"
A useful tool, for sure, but I don’t see why this should be in oe-core. I suggest adding it to meta-oe instead.
> +SRCREV = "853457b77dbc3d6665a379f3fe31ec53f11b6f61"
> +PV = "1.0.0"
These are contradictory. 853457b7 is the current HEAD, but the latest release is 1.5.4.
If you need to package a post-release snapshot, then set PV to "1.5.4+git”.
Ross
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH] Add user space utility:dropwatch
2024-02-09 11:24 [PATCH] Add user space utility:dropwatch chenheyun
2024-02-09 12:38 ` [OE-core] " Ross Burton
@ 2024-02-09 14:06 ` Jörg Sommer
2024-02-09 15:01 ` Yoann Congal
2 siblings, 0 replies; 9+ messages in thread
From: Jörg Sommer @ 2024-02-09 14:06 UTC (permalink / raw)
To: chen_heyun, openembedded-core
Hi,
can you change the summary of the commit to something like `dropwatch: New userspace to diagnose network package drops`? It's common to name the module/component first and then what happened.
On 09.02.24 12:24, chenheyun via lists.openembedded.org wrote:
> Signed-off-by: chenheyun <chen_heyun@163.com>
Is your name "Chen Heyun"?
> ---
> .../dropwatch/dropwatch_git.bb | 22 +++++++++++++++++++
> 1 file changed, 22 insertions(+)
> create mode 100755 meta/recipes-extended/dropwatch/dropwatch_git.bb
>
> diff --git a/meta/recipes-extended/dropwatch/dropwatch_git.bb b/meta/recipes-extended/dropwatch/dropwatch_git.bb
Maybe the meta-openembedded/meta-networking would better fit and recipes-support directory.
> new file mode 100755
> index 0000000000..62a1eab777
> --- /dev/null
> +++ b/meta/recipes-extended/dropwatch/dropwatch_git.bb
> @@ -0,0 +1,22 @@
> +# Copyright (C) 2024 chenheyun <chen_heyun@163.com>
> +# Released under the MIT license (see COPYING.MIT for the terms)
> +
> +SUMMARY = "User space utility to diagnose to NetWorking packets are getting dropped"
> +DESCRIPTION = "Dropwatch is an utility to interface to the kernel to monitor for dropped \
> + network packets"
> +
> +HOMEPAGE = "https://github.com/nhorman/dropwatch/"
> +LICENSE = "GPLv2+"
Use the SPDX identifier `GPL-2.0-or-later`
> +LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
> +DEPENDS = "libnl readline libpcap binutils"
> +
> +PV = "1.0.0"
The common way is to put the version in the filename in place of `git`, i.e. `dropwatch_1.0.0.bb` and don't use the PV.
A useful tool to check the recipes is https://github.com/priv-kweihmann/oelint-adv/. You can use
docker run -ti --rm -v "$(pwd):/code" -w /code -v oelint-adv-venv:/.venv \
python:3.12-bookworm /bin/bash -c '
python3 -m venv --upgrade-deps /.venv
. /.venv/bin/activate
python3 -m pip install oelint-adv
oelint-adv layer/recipes/dropwatch/dropwatch_1.0.0.bb'
Kind regards
Jörg Sommer
--
Navimatix GmbH
Tatzendpromenade 2
D-07745 Jena
Geschäftsführer: Steffen Späthe, Jan Rommeley
Registergericht: Amtsgericht Jena, HRB 501480
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [OE-core] [PATCH] Add user space utility:dropwatch
2024-02-09 11:24 [PATCH] Add user space utility:dropwatch chenheyun
2024-02-09 12:38 ` [OE-core] " Ross Burton
2024-02-09 14:06 ` Jörg Sommer
@ 2024-02-09 15:01 ` Yoann Congal
2024-02-10 5:33 ` chenheyun
2 siblings, 1 reply; 9+ messages in thread
From: Yoann Congal @ 2024-02-09 15:01 UTC (permalink / raw)
To: openembedded-core
Le 09/02/2024 à 12:24, chenheyun a écrit :
> Signed-off-by: chenheyun <chen_heyun@163.com>
> ---
> .../dropwatch/dropwatch_git.bb | 22 +++++++++++++++++++
> 1 file changed, 22 insertions(+)
> create mode 100755 meta/recipes-extended/dropwatch/dropwatch_git.bb
>
> diff --git a/meta/recipes-extended/dropwatch/dropwatch_git.bb b/meta/recipes-extended/dropwatch/dropwatch_git.bb
> new file mode 100755
> index 0000000000..62a1eab777
> --- /dev/null
> +++ b/meta/recipes-extended/dropwatch/dropwatch_git.bb
> @@ -0,0 +1,22 @@
> +# Copyright (C) 2024 chenheyun <chen_heyun@163.com>
> +# Released under the MIT license (see COPYING.MIT for the terms)
> +
> +SUMMARY = "User space utility to diagnose to NetWorking packets are getting dropped"
> +DESCRIPTION = "Dropwatch is an utility to interface to the kernel to monitor for dropped \
> + network packets"
> +
> +HOMEPAGE = "https://github.com/nhorman/dropwatch/"
> +LICENSE = "GPLv2+"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
> +DEPENDS = "libnl readline libpcap binutils"
> +
> +PV = "1.0.0"
> +
> +SRC_URI = "git://github.com/nhorman/dropwatch/;branch=master;protocol=https"
> +SRCREV = "853457b77dbc3d6665a379f3fe31ec53f11b6f61"
> +
> +S = "${WORKDIR}/git"
> +
> +inherit autotools pkgconfig gettext
> +
> +BBCLASSEXTEND = "native nativesdk"
Happy to see this tool packaged, but, as Ross said, maybe not in OE-Core but in meta-openembedded instead.
That said, neither nativesdk-dropwatch nor dropwatch-native build:
ERROR: Nothing PROVIDES 'nativesdk-libpcap' (but virtual:nativesdk:/home/yocon/Documents/projets/yocto/poky/meta/recipes-extended/dropwatch/dropwatch_git.bb DEPENDS on or otherwise requires it). Close matches:
[...]
ERROR: Required build target 'nativesdk-dropwatch' has no buildable providers.
Missing or unbuildable dependency chain was: ['nativesdk-dropwatch', 'nativesdk-libpcap']
for dropwatch-native, logs are here: https://pastebin.com/Z6qEATiE
=> You need to drop the "native nativesdk" in BBCLASSEXTEND (or fix the build problem but I don't see the point of having this tool on the build/native host)
Regards,
--
Yoann Congal
Smile ECS - Tech Expert
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH] Add user space utility:dropwatch
@ 2024-02-09 14:28 chenheyun
0 siblings, 0 replies; 9+ messages in thread
From: chenheyun @ 2024-02-09 14:28 UTC (permalink / raw)
To: openembedded-core; +Cc: chenheyun
we can enbale linux module(drop_monitor.ko),and use dropwatch
of user space utility to diagnose NetWorking packets are getting dropped.
Signed-off-by: chenheyun <chen_heyun@163.com>
---
.../dropwatch/dropwatch_git.bb | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100755 meta/recipes-extended/dropwatch/dropwatch_git.bb
diff --git a/meta/recipes-extended/dropwatch/dropwatch_git.bb b/meta/recipes-extended/dropwatch/dropwatch_git.bb
new file mode 100755
index 0000000000..62a1eab777
--- /dev/null
+++ b/meta/recipes-extended/dropwatch/dropwatch_git.bb
@@ -0,0 +1,22 @@
+# Copyright (C) 2024 chenheyun <chen_heyun@163.com>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+SUMMARY = "User space utility to diagnose to NetWorking packets are getting dropped"
+DESCRIPTION = "Dropwatch is an utility to interface to the kernel to monitor for dropped \
+ network packets"
+
+HOMEPAGE = "https://github.com/nhorman/dropwatch/"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a"
+DEPENDS = "libnl readline libpcap binutils"
+
+PV = "1.0.0"
+
+SRC_URI = "git://github.com/nhorman/dropwatch/;branch=master;protocol=https"
+SRCREV = "853457b77dbc3d6665a379f3fe31ec53f11b6f61"
+
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig gettext
+
+BBCLASSEXTEND = "native nativesdk"
--
2.25.1
^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-02-10 10:31 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-09 11:24 [PATCH] Add user space utility:dropwatch chenheyun
2024-02-09 12:38 ` [OE-core] " Ross Burton
2024-02-09 14:06 ` Jörg Sommer
2024-02-09 15:01 ` Yoann Congal
2024-02-10 5:33 ` chenheyun
2024-02-10 7:40 ` [OE-core] " Richard Purdie
2024-02-10 10:02 ` chenheyun
2024-02-10 10:30 ` [OE-core] " Alexander Kanavin
-- strict thread matches above, loose matches on Subject: below --
2024-02-09 14:28 chenheyun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox