]> granicus.if.org Git - zfs/commit
Add/generalize abstractions in arc_summary3
authorRyan Moeller <ryan@freqlabs.com>
Tue, 10 Sep 2019 20:27:53 +0000 (16:27 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 Sep 2019 20:27:53 +0000 (13:27 -0700)
commit562e1c0327be13bce43d81479bb113a1175569d4
tree3f9507b94d6d4e8559453a6f5fafcdabe24fcddb
parent6122948b3bb6b96f9bac35492dce245fb96659db
Add/generalize abstractions in arc_summary3

Code for interfacing with procfs for kstats and tunables is Linux-
specific. A more generic interface can be used for the abstractions of
loading kstats and various tunable parameters, allowing other platforms
to implement the functions cleanly. In a similar vein, determining the
ZFS/SPL version can be abstracted away in order for other platforms to
provide their own implementations of this function.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matt Macy <mmacy@FreeBSD.org>
Signed-off-by: Ryan Moeller <ryan@ixsystems.com>
Closes #9279
cmd/arc_summary/arc_summary3