1 /* SPDX-License-Identifier: GPL-2.0 */ 2 3 #undef TRACE_SYSTEM 4 #define TRACE_SYSTEM dmabuf 5 6 #undef TRACE_INCLUDE_PATH 7 #define TRACE_INCLUDE_PATH trace/hooks 8 9 #if !defined(_TRACE_HOOK_DMABUF_H) || defined(TRACE_HEADER_MULTI_READ) 10 #define _TRACE_HOOK_DMABUF_H 11 12 #include <trace/hooks/vendor_hooks.h> 13 14 DECLARE_HOOK(android_vh_dmabuf_page_pool_free_bypass, 15 TP_PROTO(struct page *page, bool *bypass), 16 TP_ARGS(page, bypass)); 17 DECLARE_HOOK(android_vh_dma_heap_buffer_alloc_start, 18 TP_PROTO(const char *name, size_t len, 19 u32 fd_flags, u64 heap_flags), 20 TP_ARGS(name, len, fd_flags, heap_flags)); 21 DECLARE_HOOK(android_vh_dma_heap_buffer_alloc_end, 22 TP_PROTO(const char *name, size_t len), 23 TP_ARGS(name, len)); 24 #endif /* _TRACE_HOOK_DMABUF_H */ 25 /* This part must be outside protection */ 26 #include <trace/define_trace.h> 27 28