git: ec1f122b56f9 - main - rtsx: Add CTLFLAG_STATS flag for read and write counters

From: Jung-uk Kim <jkim_at_FreeBSD.org>
Date: Thu, 03 Feb 2022 23:43:53 UTC
The branch main has been updated by jkim:

URL: https://cgit.FreeBSD.org/src/commit/?id=ec1f122b56f9e88397dfae26078d6f1ca53094ed

commit ec1f122b56f9e88397dfae26078d6f1ca53094ed
Author:     Henri Hennebert <hlh@restart.be>
AuthorDate: 2022-02-03 23:18:08 +0000
Commit:     Jung-uk Kim <jkim@FreeBSD.org>
CommitDate: 2022-02-03 23:43:12 +0000

    rtsx: Add CTLFLAG_STATS flag for read and write counters
    
    Differential Revision:  https://reviews.freebsd.org/D32154
---
 sys/dev/rtsx/rtsx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/rtsx/rtsx.c b/sys/dev/rtsx/rtsx.c
index ce1909f52c47..5146ca54141c 100644
--- a/sys/dev/rtsx/rtsx.c
+++ b/sys/dev/rtsx/rtsx.c
@@ -3536,9 +3536,9 @@ rtsx_attach(device_t dev)
 		      &sc->rtsx_force_timing, 0, "Force bus_timing_uhs_sdr50");
 	SYSCTL_ADD_U8(ctx, tree, OID_AUTO, "debug", CTLFLAG_RWTUN,
 		      &sc->rtsx_debug, 0, "Debugging flag");
-	SYSCTL_ADD_U64(ctx, tree, OID_AUTO, "read_count", CTLFLAG_RD,
+	SYSCTL_ADD_U64(ctx, tree, OID_AUTO, "read_count", CTLFLAG_RD | CTLFLAG_STATS,
 		       &sc->rtsx_read_count, 0, "Count of read operations");
-	SYSCTL_ADD_U64(ctx, tree, OID_AUTO, "write_count", CTLFLAG_RD,
+	SYSCTL_ADD_U64(ctx, tree, OID_AUTO, "write_count", CTLFLAG_RD | CTLFLAG_STATS,
 		       &sc->rtsx_write_count, 0, "Count of write operations");
 
 	if (bootverbose || sc->rtsx_debug)