[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMuHMdVuxfndapH2eyBVGrqqyoeA9gwrCq1zbbjdxab2DvA-MQ@mail.gmail.com>
Date: Mon, 20 Dec 2021 21:01:44 +0100
From: Geert Uytterhoeven <geert@...ux-m68k.org>
To: Wolfram Sang <wsa+renesas@...g-engineering.com>
Cc: "open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
Linux-Renesas <linux-renesas-soc@...r.kernel.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v6 1/1] gpio: add sloppy logic analyzer using polling
On Mon, Dec 20, 2021 at 3:12 PM Geert Uytterhoeven <geert@...ux-m68k.org> wrote:
On Mon, Dec 20, 2021 at 10:07 AM Wolfram Sang
> <wsa+renesas@...g-engineering.com> wrote:
> > + [ -d "$lacpusetdir" ] || mkdir "$lacpusetdir"
> > +
> > + cur_cpu="$(cat "$lacpusetdir"/cpus)"
>
> cat: /dev/cpuset/gpio-sloppy-logic-analyzer/cpus: No such file or directory
>
> I do have a "cpuset.cpus" file.
>
> > + [ "$cur_cpu" = "$isol_cpu" ] && return
> > + [ -z "$cur_cpu" ] || fail "CPU$isol_cpu requested but CPU$cur_cpu already isolated"
> > +
> > + echo "$isol_cpu" > "$lacpusetdir"/cpus || fail "Could not isolate CPU$isol_cpu. Does it exist?"
> > + echo 1 > "$lacpusetdir"/cpu_exclusive
> > + echo 0 > "$lacpusetdir"/mems
>
> No complaint, although the real files have a "cpuset."-prefix again.
>
> [...]
>
> > +workcpu=$(cat "$lacpusetdir"/effective_cpus)
>
> cat: /dev/cpuset/gpio-sloppy-logic-analyzer/effective_cpus: No such
> file or directory
>
> I do have a "cpuset.effective_cpus" file.
>
> > +[ -n "$workcpu" ] || fail "No isolated CPU found"
> > +cpumask=$(printf '%x' $((1 << workcpu)))
> > +instance=${lasysfsdir##*/}
> > +echo "Setting up '$instance': $numsamples samples at ${samplefreq}Hz with ${triggerdat:-no} trigger using CPU$workcpu"
> > +do_capture "$cpumask" &
>
> Anyone with a clue? Thanks!
Documentation/admin-guide/cgroup-v1/cpusets.rst also has the prefixes,
so I'm wondering if you have some "legacy compatibility" config option
enabled?
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@...ux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Powered by blists - more mailing lists