git: a1b4c74dadeb - stable/13 - rtsx: Add CTLFLAG_STATS flag for read and write counters

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Wed, 23 Feb 2022 01:05:32 UTC
The branch stable/13 has been updated by mav:

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

commit a1b4c74dadebd56b3e9451da8c3997207fa4bbc0
Author:     Henri Hennebert <hlh@restart.be>
AuthorDate: 2022-02-03 23:18:08 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2022-02-23 00:39:36 +0000

    rtsx: Add CTLFLAG_STATS flag for read and write counters
    
    Differential Revision:  https://reviews.freebsd.org/D32154
    
    (cherry picked from commit ec1f122b56f9e88397dfae26078d6f1ca53094ed)
---
 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)