Waiman Long d6c8e949a3 blk-iocost: Fix error on iocost_ioc_vrate_adj
Systemtap 4.2 is unable to correctly interpret the "u32 (*missed_ppm)[2]"
argument of the iocost_ioc_vrate_adj trace entry defined in
include/trace/events/iocost.h leading to the following error:

  /tmp/stapAcz0G0/stap_c89c58b83cea1724e26395efa9ed4939_6321_aux_6.c:78:8:
  error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
   , u32[]* __tracepoint_arg_missed_ppm

That argument type is indeed rather complex and hard to read. Looking
at block/blk-iocost.c. It is just a 2-entry u32 array. By simplifying
the argument to a simple "u32 *missed_ppm" and adjusting the trace
entry accordingly, the compilation error was gone.

Fixes: 7caa47151ab2 ("blkcg: implement blk-iocost")
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-04-21 09:49:36 -06:00
..
2020-03-27 12:04:34 -06:00
2020-03-27 12:04:34 -06:00
2019-07-09 10:45:06 -07:00
2020-03-17 20:55:21 +01:00
2020-03-30 11:43:51 -07:00
2019-10-07 21:19:10 -06:00
2020-03-30 11:43:51 -07:00
2020-03-27 12:04:34 -06:00
2020-01-03 09:33:21 +01:00
2020-03-30 11:20:13 -07:00
2019-07-15 09:20:27 -03:00
2020-01-06 20:59:04 -07:00
2020-01-06 20:59:04 -07:00