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
| ||
|
Date: Thu, 3 Nov 2022 11:25:27 -0700 From: Andrii Nakryiko <andrii.nakryiko@...il.com> To: Alexei Starovoitov <ast@...a.com> Cc: Andrii Nakryiko <andrii@...nel.org>, bpf@...r.kernel.org, ast@...nel.org, daniel@...earbox.net, netdev@...r.kernel.org, kuba@...nel.org, kernel-team@...com Subject: Re: [PATCH bpf-next 10/10] selftests/bpf: support stat filtering in comparison mode in veristat On Thu, Nov 3, 2022 at 9:46 AM Alexei Starovoitov <ast@...a.com> wrote: > > On 11/2/22 10:53 PM, Andrii Nakryiko wrote: > > Finally add support for filtering stats values, similar to > > non-comparison mode filtering. For comparison mode 4 variants of stats > > are important for filtering, as they allow to filter either A or B side, > > but even more importantly they allow to filter based on value > > difference, and for verdict stat value difference is MATCH/MISMATCH > > classification. So with these changes it's finally possible to easily > > check if there were any mismatches between failure/success outcomes on > > two separate data sets. Like in an example below: > > > > $ ./veristat -e file,prog,verdict,insns -C ~/baseline-results.csv ~/shortest-results.csv -f verdict_diff=mismatch > > All these improvements to veristat look great. > What is the way to do negative filter ? > In other words what is the way to avoid using " | grep -v '+0' " ? > for grep -v '+0' replacement you can do `-f 'insns_diff>0'`. But what I meant by negative filtering is adding '!' in front of the filter to make it a "deny filter". E.g., -f '!*blah*.bpf.o' will exclude any file matching "*blah*.bpf.o" naming glob. Similar for the stat conditions, you should be able to do `-f '!insns_diff=0'`, which in this case is equivalent to just `-f 'insns_diff>0'`.
Powered by blists - more mailing lists