mirror_zfs/include/os/linux
Rob Norris d28d2e3007 linux/kstat: allow multi-level module names
Module names are mapped directly to directory names in procfs, but
nothing is done to create the intermediate directories, or remove them.
This makes it impossible to sensibly present kstats about sub-objects.

This commit loops through '/'-separated names in the full module name,
creates a separate module for each, and hooks them up with a parent
pointer and child counter, and then unrolls this on the other side when
deleting a module.

Sponsored-by: Klara, Inc.
Sponsored-by: Syneto
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
2025-03-20 16:24:50 -07:00
..
kernel/linux SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
spl linux/kstat: allow multi-level module names 2025-03-20 16:24:50 -07:00
zfs/sys SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
Makefile.am config: remove HAVE_PERCPU_COUNTER_INIT_WITH_GFP 2024-09-18 11:23:49 -07:00