ryran / xsos

sosreport examiner - instantly summarize system info from a sosreport or a running system
337 stars 121 forks source link

ethtool: add exclusions #249

Closed superjamie closed 4 years ago

superjamie commented 5 years ago

Some ethtool counters match "false positives" such as Intel's fdir_miss or Virtual Ethernet Bridge veb.dropped which we don't want to see.

The normal way to do this is a negative lookahead/lookbehind but grep and awk's ERE don't support those. Convert the existing ethtool regex to an awk-syntax match and use awk logic to exclude unwanted strings.

Signed-off-by: Jamie Bainbridge jamie.bainbridge@gmail.com

superjamie commented 5 years ago

@ptalbert Opinions on this? I'm happy to do something else if you have a better idea.