aboutsummaryrefslogtreecommitdiffstats
path: root/block/blktrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blktrace.c')
-rw-r--r--block/blktrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/block/blktrace.c b/block/blktrace.c
index 3f25425ade12..570cd3c40bd1 100644
--- a/block/blktrace.c
+++ b/block/blktrace.c
@@ -1140,10 +1140,10 @@ static struct {
1140 [__BLK_TA_REMAP] = {{ "A", "remap" }, blk_log_remap }, 1140 [__BLK_TA_REMAP] = {{ "A", "remap" }, blk_log_remap },
1141}; 1141};
1142 1142
1143static int blk_trace_event_print(struct trace_seq *s, struct trace_entry *ent, 1143static int blk_trace_event_print(struct trace_iterator *iter, int flags)
1144 int flags)
1145{ 1144{
1146 const struct blk_io_trace *t = (struct blk_io_trace *)ent; 1145 struct trace_seq *s = &iter->seq;
1146 const struct blk_io_trace *t = (struct blk_io_trace *)iter->ent;
1147 const u16 what = t->action & ((1 << BLK_TC_SHIFT) - 1); 1147 const u16 what = t->action & ((1 << BLK_TC_SHIFT) - 1);
1148 int ret; 1148 int ret;
1149 1149
@@ -1153,7 +1153,7 @@ static int blk_trace_event_print(struct trace_seq *s, struct trace_entry *ent,
1153 const bool long_act = !!(trace_flags & TRACE_ITER_VERBOSE); 1153 const bool long_act = !!(trace_flags & TRACE_ITER_VERBOSE);
1154 ret = blk_log_action_seq(s, t, what2act[what].act[long_act]); 1154 ret = blk_log_action_seq(s, t, what2act[what].act[long_act]);
1155 if (ret) 1155 if (ret)
1156 ret = what2act[what].print(s, ent); 1156 ret = what2act[what].print(s, iter->ent);
1157 } 1157 }
1158 1158
1159 return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE; 1159 return ret ? TRACE_TYPE_HANDLED : TRACE_TYPE_PARTIAL_LINE;