cgroups.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] blk-throttle: export io_serviced_recursive, io_service_bytes_recursive
@ 2017-12-11 14:56 weiping zhang
       [not found] ` <20171211145621.GA2115-bi+AKbBUZKZw6VQDmTdmGHWcxnUbehklAL8bYrjMMd8@public.gmane.org>
  2018-01-18 19:56 ` Jens Axboe
  0 siblings, 2 replies; 5+ messages in thread
From: weiping zhang @ 2017-12-11 14:56 UTC (permalink / raw)
  To: axboe, tj, shli, lizefan; +Cc: linux-block, cgroups

export these two interface for cgroup-v1.

Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
---
 block/blk-throttle.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index 96ad326..1d7637f 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -1512,10 +1512,20 @@ static struct cftype throtl_legacy_files[] = {
 		.seq_show = blkg_print_stat_bytes,
 	},
 	{
+		.name = "throttle.io_service_bytes_recursive",
+		.private = (unsigned long)&blkcg_policy_throtl,
+		.seq_show = blkg_print_stat_bytes_recursive,
+	},
+	{
 		.name = "throttle.io_serviced",
 		.private = (unsigned long)&blkcg_policy_throtl,
 		.seq_show = blkg_print_stat_ios,
 	},
+	{
+		.name = "throttle.io_serviced_recursive",
+		.private = (unsigned long)&blkcg_policy_throtl,
+		.seq_show = blkg_print_stat_ios_recursive,
+	},
 	{ }	/* terminate */
 };
 
-- 
2.9.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-18 19:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-11 14:56 [RFC] blk-throttle: export io_serviced_recursive, io_service_bytes_recursive weiping zhang
     [not found] ` <20171211145621.GA2115-bi+AKbBUZKZw6VQDmTdmGHWcxnUbehklAL8bYrjMMd8@public.gmane.org>
2017-12-11 15:17   ` Tejun Heo
     [not found]     ` <20171211151705.GG2421075-4dN5La/x3IkLX0oZNxdnEQ2O0Ztt9esIQQ4Iyu8u01E@public.gmane.org>
2017-12-29 17:17       ` weiping zhang
2018-01-18 15:41       ` weiping zhang
2018-01-18 19:56 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).