Files
msm-5.15/include/trace/hooks/loop.h
lijiaming 8501db9cda ANDROID: loop: Add vendor hook to update cmd
According to the value of OEM-specific field of struct bio, we need
to update the value of "iocb->ki_flags" or "iocb->ki_ioprio", so that
we can distinguish different IO's in lower level drivers and take
different measures.

Bug: 265611433
Change-Id: Id8ea3c3d064967b7a79fe24c48bf58d92c5d6e41
Signed-off-by: lijiaming <lijiaming3@xiaomi.com>
2023-01-16 21:01:33 +00:00

22 lines
535 B
C

/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM loop
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH trace/hooks
#if !defined(_TRACE_HOOK_LOOP__H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_LOOP_H
#include <trace/hooks/vendor_hooks.h>
struct bio;
struct kiocb;
DECLARE_HOOK(android_vh_loop_prepare_cmd,
TP_PROTO(struct bio *bio, struct kiocb *iocb),
TP_ARGS(bio, iocb));
#endif /* _TRACE_HOOK_LOOP_H */
/* This part must be outside protection */
#include <trace/define_trace.h>