Skip to content

Commit 3a89c25

Browse files
rantalaaxboe
authored andcommitted
blk-wbt: Use tracepoint_string() for wbt_step tracepoint string literals
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 3dceecf commit 3a89c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

block/blk-wbt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static void scale_up(struct rq_wb *rwb)
313313
calc_wb_limits(rwb);
314314
rwb->unknown_cnt = 0;
315315
rwb_wake_all(rwb);
316-
rwb_trace_step(rwb, "scale up");
316+
rwb_trace_step(rwb, tracepoint_string("scale up"));
317317
}
318318

319319
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)
322322
return;
323323
calc_wb_limits(rwb);
324324
rwb->unknown_cnt = 0;
325-
rwb_trace_step(rwb, "scale down");
325+
rwb_trace_step(rwb, tracepoint_string("scale down"));
326326
}
327327

328328
static void rwb_arm_timer(struct rq_wb *rwb)

0 commit comments

Comments
 (0)