diff mbox series

cpuset: Add recipe for cpuset tool 1.6.2

Message ID 20240825084947.1032325-1-michael@amarulasolutions.com
State New
Headers show
Series cpuset: Add recipe for cpuset tool 1.6.2 | expand

Commit Message

Michael Nazzareno Trimarchi Aug. 25, 2024, 8:49 a.m. UTC
Cpuset is a Python application that forms a wrapper around the
standard Linux filesystem calls to make using the cpusets facilities
in the Linux kernel easier. This can be used on linux realtime or
standard linux

Example

cset shield --cpu 2-3
echo c > /proc/irq/287/smp_affinity
irq=`ps | grep -m 1 "irq/287"  | awk '{ print $1 }'`
cset shield -s -p $irq --force
chrt -f -p 75 $irq

Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
---
 meta/conf/distro/include/maintainers.inc     |  1 +
 meta/recipes-devtools/cpuset/cpuset_1.6.2.bb | 13 +++++++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 meta/recipes-devtools/cpuset/cpuset_1.6.2.bb

Comments

Khem Raj Aug. 25, 2024, 2:55 p.m. UTC | #1
meta/ layer is part of oe-core, this patch if intended for
meta-openembedded should be part of meta-oe layer.

On Sun, Aug 25, 2024 at 1:49 AM Michael Nazzareno Trimarchi via
lists.openembedded.org
<michael=amarulasolutions.com@lists.openembedded.org> wrote:
>
> Cpuset is a Python application that forms a wrapper around the
> standard Linux filesystem calls to make using the cpusets facilities
> in the Linux kernel easier. This can be used on linux realtime or
> standard linux
>
> Example
>
> cset shield --cpu 2-3
> echo c > /proc/irq/287/smp_affinity
> irq=`ps | grep -m 1 "irq/287"  | awk '{ print $1 }'`
> cset shield -s -p $irq --force
> chrt -f -p 75 $irq
>
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> ---
>  meta/conf/distro/include/maintainers.inc     |  1 +
>  meta/recipes-devtools/cpuset/cpuset_1.6.2.bb | 13 +++++++++++++
>  2 files changed, 14 insertions(+)
>  create mode 100644 meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
>
> diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
> index 60f36a9449..fe3d9c83d8 100644
> --- a/meta/conf/distro/include/maintainers.inc
> +++ b/meta/conf/distro/include/maintainers.inc
> @@ -121,6 +121,7 @@ RECIPE_MAINTAINER:pn-core-image-x11 = "Richard Purdie <richard.purdie@linuxfound
>  RECIPE_MAINTAINER:pn-core-image-sato-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>"
>  RECIPE_MAINTAINER:pn-coreutils = "Chen Qi <Qi.Chen@windriver.com>"
>  RECIPE_MAINTAINER:pn-cpio = "Denys Dmytriyenko <denis@denix.org>"
> +RECIPE_MAINTAINER:pn-cpuset = "Michael Trimarchi <michael@amarulasolutions.com>"
>  RECIPE_MAINTAINER:pn-cracklib = "Unassigned <unassigned@yoctoproject.org>"
>  RECIPE_MAINTAINER:pn-createrepo-c = "Alexander Kanavin <alex.kanavin@gmail.com>"
>  RECIPE_MAINTAINER:pn-cronie = "Anuj Mittal <anuj.mittal@intel.com>"
> diff --git a/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> new file mode 100644
> index 0000000000..b404d4131e
> --- /dev/null
> +++ b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> @@ -0,0 +1,13 @@
> +SUMMARY = "Cpuset manipulation tool"
> +HOMEPAGE = "https://github.com/SUSE/cpuset"
> +LICENSE = "GPL-2.0-only"
> +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
> +
> +SRC_URI = "git://github.com/SUSE/cpuset.git;protocol=https;branch=master"
> +
> +SRCREV = "4f80263208935f0df4f616cf9d8cb7285599a670"
> +S = "${WORKDIR}/git"
> +
> +inherit setuptools3
> +
> +RDEPENDS:${PN} += "python3-core python3-logging python3-pydoc"
> --
> 2.43.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#111927): https://lists.openembedded.org/g/openembedded-devel/message/111927
> Mute This Topic: https://lists.openembedded.org/mt/108084672/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Michael Nazzareno Trimarchi Aug. 25, 2024, 3:17 p.m. UTC | #2
Hi

On Sun, Aug 25, 2024 at 4:56 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> meta/ layer is part of oe-core, this patch if intended for
> meta-openembedded should be part of meta-oe layer.
>

I have created the patch on top of
https://git.openembedded.org/openembedded-core
Is the right one?

Michael


> On Sun, Aug 25, 2024 at 1:49 AM Michael Nazzareno Trimarchi via
> lists.openembedded.org
> <michael=amarulasolutions.com@lists.openembedded.org> wrote:
> >
> > Cpuset is a Python application that forms a wrapper around the
> > standard Linux filesystem calls to make using the cpusets facilities
> > in the Linux kernel easier. This can be used on linux realtime or
> > standard linux
> >
> > Example
> >
> > cset shield --cpu 2-3
> > echo c > /proc/irq/287/smp_affinity
> > irq=`ps | grep -m 1 "irq/287"  | awk '{ print $1 }'`
> > cset shield -s -p $irq --force
> > chrt -f -p 75 $irq
> >
> > Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> > ---
> >  meta/conf/distro/include/maintainers.inc     |  1 +
> >  meta/recipes-devtools/cpuset/cpuset_1.6.2.bb | 13 +++++++++++++
> >  2 files changed, 14 insertions(+)
> >  create mode 100644 meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> >
> > diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
> > index 60f36a9449..fe3d9c83d8 100644
> > --- a/meta/conf/distro/include/maintainers.inc
> > +++ b/meta/conf/distro/include/maintainers.inc
> > @@ -121,6 +121,7 @@ RECIPE_MAINTAINER:pn-core-image-x11 = "Richard Purdie <richard.purdie@linuxfound
> >  RECIPE_MAINTAINER:pn-core-image-sato-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> >  RECIPE_MAINTAINER:pn-coreutils = "Chen Qi <Qi.Chen@windriver.com>"
> >  RECIPE_MAINTAINER:pn-cpio = "Denys Dmytriyenko <denis@denix.org>"
> > +RECIPE_MAINTAINER:pn-cpuset = "Michael Trimarchi <michael@amarulasolutions.com>"
> >  RECIPE_MAINTAINER:pn-cracklib = "Unassigned <unassigned@yoctoproject.org>"
> >  RECIPE_MAINTAINER:pn-createrepo-c = "Alexander Kanavin <alex.kanavin@gmail.com>"
> >  RECIPE_MAINTAINER:pn-cronie = "Anuj Mittal <anuj.mittal@intel.com>"
> > diff --git a/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> > new file mode 100644
> > index 0000000000..b404d4131e
> > --- /dev/null
> > +++ b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> > @@ -0,0 +1,13 @@
> > +SUMMARY = "Cpuset manipulation tool"
> > +HOMEPAGE = "https://github.com/SUSE/cpuset"
> > +LICENSE = "GPL-2.0-only"
> > +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
> > +
> > +SRC_URI = "git://github.com/SUSE/cpuset.git;protocol=https;branch=master"
> > +
> > +SRCREV = "4f80263208935f0df4f616cf9d8cb7285599a670"
> > +S = "${WORKDIR}/git"
> > +
> > +inherit setuptools3
> > +
> > +RDEPENDS:${PN} += "python3-core python3-logging python3-pydoc"
> > --
> > 2.43.0
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#111927): https://lists.openembedded.org/g/openembedded-devel/message/111927
> > Mute This Topic: https://lists.openembedded.org/mt/108084672/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
Khem Raj Aug. 25, 2024, 3:20 p.m. UTC | #3
On Sun, Aug 25, 2024 at 8:17 AM Michael Nazzareno Trimarchi
<michael@amarulasolutions.com> wrote:
>
> Hi
>
> On Sun, Aug 25, 2024 at 4:56 PM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > meta/ layer is part of oe-core, this patch if intended for
> > meta-openembedded should be part of meta-oe layer.
> >
>
> I have created the patch on top of
> https://git.openembedded.org/openembedded-core
> Is the right one?

that means this is meant for core layer, there is a separate layer for
sending patches to core
and there has to be strong reason to include something in core layer,
I would suggest that you
propose this patch for meta-oe layer under meta-openembedded repo that
is perhaps a better
location for this now. The mailing list to send patch for
meta-openembedded is this one.

>
> Michael
>
>
> > On Sun, Aug 25, 2024 at 1:49 AM Michael Nazzareno Trimarchi via
> > lists.openembedded.org
> > <michael=amarulasolutions.com@lists.openembedded.org> wrote:
> > >
> > > Cpuset is a Python application that forms a wrapper around the
> > > standard Linux filesystem calls to make using the cpusets facilities
> > > in the Linux kernel easier. This can be used on linux realtime or
> > > standard linux
> > >
> > > Example
> > >
> > > cset shield --cpu 2-3
> > > echo c > /proc/irq/287/smp_affinity
> > > irq=`ps | grep -m 1 "irq/287"  | awk '{ print $1 }'`
> > > cset shield -s -p $irq --force
> > > chrt -f -p 75 $irq
> > >
> > > Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> > > ---
> > >  meta/conf/distro/include/maintainers.inc     |  1 +
> > >  meta/recipes-devtools/cpuset/cpuset_1.6.2.bb | 13 +++++++++++++
> > >  2 files changed, 14 insertions(+)
> > >  create mode 100644 meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> > >
> > > diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
> > > index 60f36a9449..fe3d9c83d8 100644
> > > --- a/meta/conf/distro/include/maintainers.inc
> > > +++ b/meta/conf/distro/include/maintainers.inc
> > > @@ -121,6 +121,7 @@ RECIPE_MAINTAINER:pn-core-image-x11 = "Richard Purdie <richard.purdie@linuxfound
> > >  RECIPE_MAINTAINER:pn-core-image-sato-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> > >  RECIPE_MAINTAINER:pn-coreutils = "Chen Qi <Qi.Chen@windriver.com>"
> > >  RECIPE_MAINTAINER:pn-cpio = "Denys Dmytriyenko <denis@denix.org>"
> > > +RECIPE_MAINTAINER:pn-cpuset = "Michael Trimarchi <michael@amarulasolutions.com>"
> > >  RECIPE_MAINTAINER:pn-cracklib = "Unassigned <unassigned@yoctoproject.org>"
> > >  RECIPE_MAINTAINER:pn-createrepo-c = "Alexander Kanavin <alex.kanavin@gmail.com>"
> > >  RECIPE_MAINTAINER:pn-cronie = "Anuj Mittal <anuj.mittal@intel.com>"
> > > diff --git a/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> > > new file mode 100644
> > > index 0000000000..b404d4131e
> > > --- /dev/null
> > > +++ b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> > > @@ -0,0 +1,13 @@
> > > +SUMMARY = "Cpuset manipulation tool"
> > > +HOMEPAGE = "https://github.com/SUSE/cpuset"
> > > +LICENSE = "GPL-2.0-only"
> > > +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
> > > +
> > > +SRC_URI = "git://github.com/SUSE/cpuset.git;protocol=https;branch=master"
> > > +
> > > +SRCREV = "4f80263208935f0df4f616cf9d8cb7285599a670"
> > > +S = "${WORKDIR}/git"
> > > +
> > > +inherit setuptools3
> > > +
> > > +RDEPENDS:${PN} += "python3-core python3-logging python3-pydoc"
> > > --
> > > 2.43.0
> > >
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > > View/Reply Online (#111927): https://lists.openembedded.org/g/openembedded-devel/message/111927
> > > Mute This Topic: https://lists.openembedded.org/mt/108084672/1997914
> > > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >
>
>
>
> --
> Michael Nazzareno Trimarchi
> Co-Founder & Chief Executive Officer
> M. +39 347 913 2170
> michael@amarulasolutions.com
> __________________________________
>
> Amarula Solutions BV
> Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
> T. +31 (0)85 111 9172
> info@amarulasolutions.com
> www.amarulasolutions.com
Michael Nazzareno Trimarchi Aug. 25, 2024, 3:23 p.m. UTC | #4
HI

On Sun, Aug 25, 2024 at 5:20 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Sun, Aug 25, 2024 at 8:17 AM Michael Nazzareno Trimarchi
> <michael@amarulasolutions.com> wrote:
> >
> > Hi
> >
> > On Sun, Aug 25, 2024 at 4:56 PM Khem Raj <raj.khem@gmail.com> wrote:
> > >
> > > meta/ layer is part of oe-core, this patch if intended for
> > > meta-openembedded should be part of meta-oe layer.
> > >
> >
> > I have created the patch on top of
> > https://git.openembedded.org/openembedded-core
> > Is the right one?
>
> that means this is meant for core layer, there is a separate layer for
> sending patches to core
> and there has to be strong reason to include something in core layer,
> I would suggest that you
> propose this patch for meta-oe layer under meta-openembedded repo that
> is perhaps a better
> location for this now. The mailing list to send patch for
> meta-openembedded is this one.
>

Agree I will resend on this mailing list connected to the right repository

michael

> >
> > Michael
> >
> >
> > > On Sun, Aug 25, 2024 at 1:49 AM Michael Nazzareno Trimarchi via
> > > lists.openembedded.org
> > > <michael=amarulasolutions.com@lists.openembedded.org> wrote:
> > > >
> > > > Cpuset is a Python application that forms a wrapper around the
> > > > standard Linux filesystem calls to make using the cpusets facilities
> > > > in the Linux kernel easier. This can be used on linux realtime or
> > > > standard linux
> > > >
> > > > Example
> > > >
> > > > cset shield --cpu 2-3
> > > > echo c > /proc/irq/287/smp_affinity
> > > > irq=`ps | grep -m 1 "irq/287"  | awk '{ print $1 }'`
> > > > cset shield -s -p $irq --force
> > > > chrt -f -p 75 $irq
> > > >
> > > > Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> > > > ---
> > > >  meta/conf/distro/include/maintainers.inc     |  1 +
> > > >  meta/recipes-devtools/cpuset/cpuset_1.6.2.bb | 13 +++++++++++++
> > > >  2 files changed, 14 insertions(+)
> > > >  create mode 100644 meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> > > >
> > > > diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
> > > > index 60f36a9449..fe3d9c83d8 100644
> > > > --- a/meta/conf/distro/include/maintainers.inc
> > > > +++ b/meta/conf/distro/include/maintainers.inc
> > > > @@ -121,6 +121,7 @@ RECIPE_MAINTAINER:pn-core-image-x11 = "Richard Purdie <richard.purdie@linuxfound
> > > >  RECIPE_MAINTAINER:pn-core-image-sato-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>"
> > > >  RECIPE_MAINTAINER:pn-coreutils = "Chen Qi <Qi.Chen@windriver.com>"
> > > >  RECIPE_MAINTAINER:pn-cpio = "Denys Dmytriyenko <denis@denix.org>"
> > > > +RECIPE_MAINTAINER:pn-cpuset = "Michael Trimarchi <michael@amarulasolutions.com>"
> > > >  RECIPE_MAINTAINER:pn-cracklib = "Unassigned <unassigned@yoctoproject.org>"
> > > >  RECIPE_MAINTAINER:pn-createrepo-c = "Alexander Kanavin <alex.kanavin@gmail.com>"
> > > >  RECIPE_MAINTAINER:pn-cronie = "Anuj Mittal <anuj.mittal@intel.com>"
> > > > diff --git a/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> > > > new file mode 100644
> > > > index 0000000000..b404d4131e
> > > > --- /dev/null
> > > > +++ b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
> > > > @@ -0,0 +1,13 @@
> > > > +SUMMARY = "Cpuset manipulation tool"
> > > > +HOMEPAGE = "https://github.com/SUSE/cpuset"
> > > > +LICENSE = "GPL-2.0-only"
> > > > +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
> > > > +
> > > > +SRC_URI = "git://github.com/SUSE/cpuset.git;protocol=https;branch=master"
> > > > +
> > > > +SRCREV = "4f80263208935f0df4f616cf9d8cb7285599a670"
> > > > +S = "${WORKDIR}/git"
> > > > +
> > > > +inherit setuptools3
> > > > +
> > > > +RDEPENDS:${PN} += "python3-core python3-logging python3-pydoc"
> > > > --
> > > > 2.43.0
> > > >
> > > >
> > > > -=-=-=-=-=-=-=-=-=-=-=-
> > > > Links: You receive all messages sent to this group.
> > > > View/Reply Online (#111927): https://lists.openembedded.org/g/openembedded-devel/message/111927
> > > > Mute This Topic: https://lists.openembedded.org/mt/108084672/1997914
> > > > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > > > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > > > -=-=-=-=-=-=-=-=-=-=-=-
> > > >
> >
> >
> >
> > --
> > Michael Nazzareno Trimarchi
> > Co-Founder & Chief Executive Officer
> > M. +39 347 913 2170
> > michael@amarulasolutions.com
> > __________________________________
> >
> > Amarula Solutions BV
> > Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
> > T. +31 (0)85 111 9172
> > info@amarulasolutions.com
> > www.amarulasolutions.com
diff mbox series

Patch

diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc
index 60f36a9449..fe3d9c83d8 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -121,6 +121,7 @@  RECIPE_MAINTAINER:pn-core-image-x11 = "Richard Purdie <richard.purdie@linuxfound
 RECIPE_MAINTAINER:pn-core-image-sato-dev = "Richard Purdie <richard.purdie@linuxfoundation.org>"
 RECIPE_MAINTAINER:pn-coreutils = "Chen Qi <Qi.Chen@windriver.com>"
 RECIPE_MAINTAINER:pn-cpio = "Denys Dmytriyenko <denis@denix.org>"
+RECIPE_MAINTAINER:pn-cpuset = "Michael Trimarchi <michael@amarulasolutions.com>"
 RECIPE_MAINTAINER:pn-cracklib = "Unassigned <unassigned@yoctoproject.org>"
 RECIPE_MAINTAINER:pn-createrepo-c = "Alexander Kanavin <alex.kanavin@gmail.com>"
 RECIPE_MAINTAINER:pn-cronie = "Anuj Mittal <anuj.mittal@intel.com>"
diff --git a/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
new file mode 100644
index 0000000000..b404d4131e
--- /dev/null
+++ b/meta/recipes-devtools/cpuset/cpuset_1.6.2.bb
@@ -0,0 +1,13 @@ 
+SUMMARY = "Cpuset manipulation tool"
+HOMEPAGE = "https://github.com/SUSE/cpuset"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
+
+SRC_URI = "git://github.com/SUSE/cpuset.git;protocol=https;branch=master"
+
+SRCREV = "4f80263208935f0df4f616cf9d8cb7285599a670"
+S = "${WORKDIR}/git"
+
+inherit setuptools3
+
+RDEPENDS:${PN} += "python3-core python3-logging python3-pydoc"