On Thu, Nov 3, 2022 at 9:46 AM Alexei Starovoitov <ast@xxxxxxxx> 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'`.