ANDROID: dma-heap: add vendor hook for dma heap alloc
Add start/end tracepoints around the allocate dma_heap_op call. Bug: 351175506 Change-Id: Iaff719c6b7a64ac05236990e1194f51cbb10448b Signed-off-by: Sooyong Suk <s.suk@samsung.corp-partner.google.com>
This commit is contained in:
committed by
Suren Baghdasaryan
parent
ce2b5c7bca
commit
17fcda65fd
@@ -15,6 +15,13 @@ struct dma_buf_sysfs_entry;
|
||||
DECLARE_RESTRICTED_HOOK(android_rvh_dma_buf_stats_teardown,
|
||||
TP_PROTO(struct dma_buf_sysfs_entry *sysfs_entry, bool *skip_sysfs_release),
|
||||
TP_ARGS(sysfs_entry, skip_sysfs_release), 1);
|
||||
DECLARE_HOOK(android_vh_dma_heap_buffer_alloc_start,
|
||||
TP_PROTO(const char *name, size_t len,
|
||||
u32 fd_flags, u64 heap_flags),
|
||||
TP_ARGS(name, len, fd_flags, heap_flags));
|
||||
DECLARE_HOOK(android_vh_dma_heap_buffer_alloc_end,
|
||||
TP_PROTO(const char *name, size_t len),
|
||||
TP_ARGS(name, len));
|
||||
#endif /* _TRACE_HOOK_DMABUF_H */
|
||||
/* This part must be outside protection */
|
||||
#include <trace/define_trace.h>
|
||||
|
||||
Reference in New Issue
Block a user