[DTrace-devel] [PATCH v4 1/2] Implement the sched provider (first part)

Kris Van Hees kris.van.hees at oracle.com
Wed May 24 22:16:06 UTC 2023


On Wed, May 24, 2023 at 10:30:42PM +0100, Nick Alcock wrote:
> On 24 May 2023, Kris Van Hees via DTrace-devel told this:
> 
> > diff --git a/test/unittest/sched/tst.lv-dequeue.r.p b/test/unittest/sched/tst.lv-dequeue.r.p
> > new file mode 100755
> > index 00000000..20978428
> > --- /dev/null
> > +++ b/test/unittest/sched/tst.lv-dequeue.r.p
> > @@ -0,0 +1,6 @@
> > +#!/usr/bin/awk -f
> > +NR == 1 { next; }
> > +NR == 2 && NF == 5 { $1 = "PROBE"; $4 = ""; gsub(/  +/, " "); print; next; }
> > +NR == 2 && NF == 4 { $1 = "PROBE"; gsub(/  +/, " "); print; next; }
> > +/^ *[0-9]+/ { exit; }
> > +{ print; }
> > diff --git a/test/unittest/sched/tst.lv-enqueue.r.p b/test/unittest/sched/tst.lv-enqueue.r.p
> > diff --git a/test/unittest/sched/tst.lv-off-cpu.r b/test/unittest/sched/tst.lv-off-cpu.r
> > diff --git a/test/unittest/sched/tst.lv-off-cpu.r.p b/test/unittest/sched/tst.lv-off-cpu.r.p
> > diff --git a/test/unittest/sched/tst.lv-on-cpu.r.p b/test/unittest/sched/tst.lv-on-cpu.r.p
> > diff --git a/test/unittest/sched/tst.lv-surrender.r.p b/test/unittest/sched/tst.lv-surrender.r.p
> > diff --git a/test/unittest/sched/tst.lv-tick.r.p b/test/unittest/sched/tst.lv-tick.r.p
> > diff --git a/test/unittest/sched/tst.lv-wakeup.r.p b/test/unittest/sched/tst.lv-wakeup.r.p
> 
> It's totally picky of me, but, given that these are quite complicated
> and seem to be identical, maybe they should either be mostly symlinks or
> all source a file in test/unittest/sched that implements the above? (We
> already have tests that do both.)

They are all supposed to be symlinks.  They will be in the final version :)
(I blame scp.)



More information about the DTrace-devel mailing list