]> git.ipfire.org Git - thirdparty/linux.git/commit
mshv: Add data for printing stats page counters
authorNuno Das Neves <nunodasneves@linux.microsoft.com>
Wed, 28 Jan 2026 18:11:45 +0000 (10:11 -0800)
committerWei Liu <wei.liu@kernel.org>
Wed, 4 Feb 2026 06:17:05 +0000 (06:17 +0000)
commitc23271b636db45156933d0c55c49109766f12f5a
treec43fbbfc4abf621438439df421260429e789a270
parentdf40f32c87be64c96ee974573968592e147a4ded
mshv: Add data for printing stats page counters

Introduce mshv_debugfs_counters.c, containing static data
corresponding to HV_*_COUNTER enums in the hypervisor source.
Defining the enum members as an array instead makes more sense,
since it will be iterated over to print counter information to
debugfs.

Include hypervisor, logical processor, partition, and virtual
processor counters.

Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Acked-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_debugfs_counters.c [new file with mode: 0644]