ANDROID: vendor_hooks: add vendor hook in blk_mq_rq_ctx_init()
This vendor hook let us initialize payload of the request.
Bug: 188749221
Change-Id: I51d6a3010ac0ab36066dbe1368158592832112b7
Signed-off-by: Yang Yang <yang.yang@vivo.com>
(cherry picked from commit 2faed77792)
This commit is contained in:
@@ -351,6 +351,7 @@ static struct request *blk_mq_rq_ctx_init(struct blk_mq_alloc_data *data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
data->hctx->queued++;
|
data->hctx->queued++;
|
||||||
|
trace_android_vh_blk_rq_ctx_init(rq, tags, data, alloc_time_ns);
|
||||||
return rq;
|
return rq;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -303,3 +303,4 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_regmap_update);
|
|||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_dma_buf_release);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_dma_buf_release);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmc_check_status);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_mmc_check_status);
|
||||||
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_blk_alloc_rqs);
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_blk_alloc_rqs);
|
||||||
|
EXPORT_TRACEPOINT_SYMBOL_GPL(android_vh_blk_rq_ctx_init);
|
||||||
|
|||||||
@@ -12,12 +12,18 @@
|
|||||||
|
|
||||||
struct blk_mq_tag_set;
|
struct blk_mq_tag_set;
|
||||||
struct blk_mq_tags;
|
struct blk_mq_tags;
|
||||||
|
struct blk_mq_alloc_data;
|
||||||
|
|
||||||
DECLARE_HOOK(android_vh_blk_alloc_rqs,
|
DECLARE_HOOK(android_vh_blk_alloc_rqs,
|
||||||
TP_PROTO(size_t *rq_size, struct blk_mq_tag_set *set,
|
TP_PROTO(size_t *rq_size, struct blk_mq_tag_set *set,
|
||||||
struct blk_mq_tags *tags),
|
struct blk_mq_tags *tags),
|
||||||
TP_ARGS(rq_size, set, tags));
|
TP_ARGS(rq_size, set, tags));
|
||||||
|
|
||||||
|
DECLARE_HOOK(android_vh_blk_rq_ctx_init,
|
||||||
|
TP_PROTO(struct request *rq, struct blk_mq_tags *tags,
|
||||||
|
struct blk_mq_alloc_data *data, u64 alloc_time_ns),
|
||||||
|
TP_ARGS(rq, tags, data, alloc_time_ns));
|
||||||
|
|
||||||
#endif /* _TRACE_HOOK_BLOCK_H */
|
#endif /* _TRACE_HOOK_BLOCK_H */
|
||||||
|
|
||||||
/* This part must be outside protection */
|
/* This part must be outside protection */
|
||||||
|
|||||||
Reference in New Issue
Block a user