lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAM9d7cjiwUPvjk=bA5Hc3HFNGKQWDrSRVrZ0FAAScfywz_2Gkw@mail.gmail.com>
Date:   Mon, 18 Sep 2023 15:37:01 -0700
From:   Namhyung Kim <namhyung@...nel.org>
To:     Yang Jihong <yangjihong1@...wei.com>
Cc:     peterz@...radead.org, mingo@...hat.com, acme@...nel.org,
        mark.rutland@....com, alexander.shishkin@...ux.intel.com,
        jolsa@...nel.org, irogers@...gle.com, adrian.hunter@...el.com,
        linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] perf test: Fix test-record-dummy-C0 failure for supported
 PERF_FORMAT_LOST feature kernel

On Sat, Sep 16, 2023 at 10:36 PM Namhyung Kim <namhyung@...nel.org> wrote:
>
> On Sat, Sep 16, 2023 at 2:18 AM Yang Jihong <yangjihong1@...wei.com> wrote:
> >
> > For kernel that supports PERF_FORMAT_LOST, attr->read_format has
> > PERF_FORMAT_LOST bit. Update expected value of
> > attr->read_format of test-record-dummy-C0 for this scenario.
> >
> > Before:
> >
> >   # ./perf test 17 -vv
> >    17: Setup struct perf_event_attr                                    :
> >   --- start ---
> >   test child forked, pid 1609441
> >   <SNIP>
> >   running './tests/attr/test-record-dummy-C0'
> >     'PERF_TEST_ATTR=/tmp/tmpm3s60aji ./perf record -o /tmp/tmpm3s60aji/perf.data --no-bpf-event -e dummy -C 0 kill >/dev/null 2>&1' ret '1', expected '1'
> >   expected read_format=4, got 20
> >   FAILED './tests/attr/test-record-dummy-C0' - match failure
> >   test child finished with -1
> >   ---- end ----
> >   Setup struct perf_event_attr: FAILED!
> >
> > After:
> >
> >   # ./perf test 17 -vv
> >    17: Setup struct perf_event_attr                                    :
> >   --- start ---
> >   test child forked, pid 1609441
> >   <SNIP>
> >   running './tests/attr/test-record-dummy-C0'
> >     'PERF_TEST_ATTR=/tmp/tmppa9vxcb7 ./perf record -o /tmp/tmppa9vxcb7/perf.data --no-bpf-event -e dummy -C 0 kill >/dev/null 2>&1' ret '1', expected '1'
> >   <SNIP>
> >   test child finished with 0
> >   ---- end ----
> >   Setup struct perf_event_attr: Ok
> >
> > Reported-by: Namhyung Kim <namhyung@...nel.org>
> > Closes: https://lore.kernel.org/all/CAM9d7cgNH2+zhSAmA3en_6as915UsF25MoLbfjE350tAP43Bog@mail.gmail.com/
>
> I'll change it to follow the existing style like
>
> Fixes: d50ad02cb39a ("perf test: Add perf_event_attr test for record
> dummy event")
>
> > Signed-off-by: Yang Jihong <yangjihong1@...wei.com>
>
> Tested-by: Namhyung Kim <namhyung@...nel.org>

Applied to perf-tools-next, thanks!

Namhyung

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ