mirror_zfs/include/spl/sys
Serapheim Dimitropoulos c19a6512fd Name anonymous enum of KMC_BIT constants
Giving a name to this enum makes it discoverable from
debugging tools like DRGN and SDB. For example, with
the name proposed on this patch we can iterate over
these values in DRGN:
```
>>> prog.type('enum kmc_bit').enumerators
(('KMC_BIT_NOTOUCH', 0), ('KMC_BIT_NODEBUG', 1),
('KMC_BIT_NOMAGAZINE', 2), ('KMC_BIT_NOHASH', 3),
('KMC_BIT_QCACHE', 4), ('KMC_BIT_KMEM', 5),
('KMC_BIT_VMEM', 6), ('KMC_BIT_SLAB', 7),
...
```
This enables SDB to easily pretty-print the flags of
the spl_kmem_caches in the system like this:
```
> spl_kmem_caches -o "name,flags,total_memory"
name                                       flags total_memory
------------------------ ----------------------- ------------
abd_t                    KMC_NOMAGAZINE|KMC_SLAB        4.5MB
arc_buf_hdr_t_full       KMC_NOMAGAZINE|KMC_SLAB       12.3MB
... <cropped> ...
ddt_cache                               KMC_VMEM      583.7KB
ddt_entry_cache          KMC_NOMAGAZINE|KMC_SLAB         0.0B
... <cropped> ...
zio_buf_1048576             KMC_NODEBUG|KMC_VMEM         0.0B
... <cropped> ...
```

Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #9478
2020-01-22 13:49:03 -08:00
..
acl.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
atomic.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
byteorder.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
callb.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
callo.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
cmn_err.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
condvar.h OpenZFS 9425 - channel programs can be interrupted 2020-01-22 13:48:56 -08:00
console.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
cred.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
ctype.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
debug.h VERIFY3P() message is missing a space character 2019-06-07 12:39:13 -07:00
disp.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
dkio.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
errno.h Update build system and packaging 2018-05-29 16:00:33 -07:00
fcntl.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
file.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
inttypes.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
isa_defs.h Fix kernel unaligned access on sparc64 2018-07-11 13:10:40 -07:00
kmem_cache.h Name anonymous enum of KMC_BIT constants 2020-01-22 13:49:03 -08:00
kmem.h OpenZFS 9284 - arc_reclaim_thread has 2 jobs 2018-12-26 13:22:28 -08:00
kobj.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
kstat.h Restrict kstats and print real pointers 2019-04-04 18:57:06 -07:00
list.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
Makefile.am Add TRIM support 2019-03-29 09:13:20 -07:00
mode.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
mutex.h Retire unused spl_{mutex,rwlock}_{init_fini} 2019-09-25 11:27:49 -07:00
param.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
proc.h Unbreak build on Linux kernel < 3.10 2019-04-08 14:59:24 -07:00
processor.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
procfs_list.h Restrict kstats and print real pointers 2019-04-04 18:57:06 -07:00
random.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
rwlock.h Retire unused spl_{mutex,rwlock}_{init_fini} 2019-09-25 11:27:49 -07:00
shrinker.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
sid.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
signal.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
stat.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
strings.h Linux 2.6.39 compat: Test if kstrtoul() exists 2019-06-07 12:39:13 -07:00
sunddi.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
sysmacros.h Create /proc/sys/kernel/spl/gitrev with git hash 2018-10-08 21:57:02 -07:00
systeminfo.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
taskq.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
thread.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
time.h Linux 4.18 compat: Use ktime_get_coarse_real_ts64() 2019-01-28 10:11:03 -08:00
timer.h kernel timer API rework 2019-09-25 11:27:46 -07:00
tsd.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
types32.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
types.h Linux 5.1 compat: Drop ULLONG_MAX and LLONG_MAX definitions 2019-05-07 09:55:40 -07:00
uio.h deadlock between mm_sem and tx assign in zfs_write() and page fault 2018-10-16 11:11:24 -07:00
user.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
vfs.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
vmem.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
vmsystm.h Linux 5.0 compat: Use totalhigh_pages() 2019-05-04 16:40:48 -07:00
vnode.h Remove vn_set_fs_pwd()/vn_set_pwd() (no need to be at / during insmod) 2019-09-25 11:27:46 -07:00
wait.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
zmod.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00
zone.h Prepare SPL repo to merge with ZFS repo 2018-05-29 14:51:39 -07:00