blk-wbt: Use tracepoint_string() for wbt_step tracepoint string literals
authorTommi Rantala <tommi.t.rantala@nokia.com>
Fri, 17 Apr 2020 13:00:22 +0000 (16:00 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 17 Apr 2020 14:21:44 +0000 (08:21 -0600)
Use tracepoint_string() for string literals that are used in the
wbt_step tracepoint, so that userspace tools can display the string
content.

Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-wbt.c

index 8641ba9793c5fb0831eebb5743935771b38da5ac..9cb082f38b936e8909735558e0a8512ba331b684 100644 (file)
@@ -313,7 +313,7 @@ static void scale_up(struct rq_wb *rwb)
        calc_wb_limits(rwb);
        rwb->unknown_cnt = 0;
        rwb_wake_all(rwb);
-       rwb_trace_step(rwb, "scale up");
+       rwb_trace_step(rwb, tracepoint_string("scale up"));
 }
 
 static void scale_down(struct rq_wb *rwb, bool hard_throttle)
@@ -322,7 +322,7 @@ static void scale_down(struct rq_wb *rwb, bool hard_throttle)
                return;
        calc_wb_limits(rwb);
        rwb->unknown_cnt = 0;
-       rwb_trace_step(rwb, "scale down");
+       rwb_trace_step(rwb, tracepoint_string("scale down"));
 }
 
 static void rwb_arm_timer(struct rq_wb *rwb)