diff --git a/include/zfs_pretty.h b/include/zfs_pretty.h index 651779d634..3cab0edbaa 100644 --- a/include/zfs_pretty.h +++ b/include/zfs_pretty.h @@ -43,6 +43,7 @@ extern "C" { _ZFS_PRETTY_DECLARE(zio_flag) _ZFS_PRETTY_DECLARE(abd_flag) +_ZFS_PRETTY_DECLARE(arc_flag) #undef _ZFS_PRETTY_DECLARE diff --git a/module/zcommon/zfs_pretty.c b/module/zcommon/zfs_pretty.c index a2b378e2da..b35f4cc5b9 100644 --- a/module/zcommon/zfs_pretty.c +++ b/module/zcommon/zfs_pretty.c @@ -185,4 +185,40 @@ _PRETTY_BIT_IMPL(abd_flag, ) /* END CSTYLED */ +/* BEGIN CSTYLED */ +_PRETTY_BIT_IMPL(arc_flag, + { '.', "WT", "WAIT" }, + { '.', "NW", "NOWAIT" }, + { '.', "PF", "PREFETCH" }, + { '.', "1C", "CACHED" }, + { '.', "2C", "L2CACHE" }, + { '.', "UC", "UNCACHED" }, + { '.', "PP", "PRESCIENT_PREFETCH" }, + { '.', "HT", "IN_HASH_TABLE" }, + { '.', "IO", "IO_IN_PROGRESS" }, + { '.', "ER", "IO_ERROR" }, + { '.', "ID", "INDIRECT" }, + { '.', "AS", "PRIO_ASYNC_READ" }, + { '.', "2W", "L2_WRITING" }, + { '.', "2E", "L2_EVICTED" }, + { '.', "2A", "L2_WRITE_HEAD" }, + { '.', "PR", "PROTECTED" }, + { '.', "NA", "NOAUTH" }, + { '.', "MD", "BUFC_METADATA" }, + { '.', "1H", "HAS_L1HDR" }, + { '.', "2H", "HAS_L2HDR" }, + { '.', "CA", "COMPRESSED_ARC" }, + { '.', "SD", "SHARED_DATA" }, + { '.', "CO", "CACHED_ONLY" }, + { '.', "NB", "NO_BUF" }, + { '.', "C0", "COMPRESS_0" }, + { '.', "C1", "COMPRESS_1" }, + { '.', "C2", "COMPRESS_2" }, + { '.', "C3", "COMPRESS_3" }, + { '.', "C4", "COMPRESS_4" }, + { '.', "C5", "COMPRESS_5" }, + { '.', "C6", "COMPRESS_6" }, +) +/* END CSTYLED */ + #undef _PRETTY_BIT_IMPL