HomeFreeBSD

pf: add hashtable row count SDT

Description

pf: add hashtable row count SDT

This allows us to figure out how many states each hashrow contains. That
can be important to know when debugging performance issues.

A simple probe could be:

dtrace -n 'pf:purge:state:rowcount { @counts["states per row"] = quantize(arg1); }'
dtrace: description 'pf:purge:state:rowcount ' matched 1 probe
^C

	  states per row
	           value  ------------- Distribution ------------- count
	              -1 |                                         0
	               0 |@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 8257624
	               1 |                                         14321
	               2 |                                         0

MFC after: 1 week
Sponsored by: Modirum MDPay

(cherry picked from commit 0d2ab4a4ced0f153a6b6a58ca3cfa6efbeeec7a2)

Details

Provenance
kpAuthored on Nov 9 2023, 12:39 PM
Parents
rGda7e9601a99a: pkgbase: use <major>.<minor> format for alpha, beta and release package versions
Branches
Unknown
Tags
Unknown