1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Ethernet Bonding driver Vendor Hooks 4 * 5 * Copyright (c) 2022, Huawei Tech. Co., Ltd. 6 */ 7 8 #ifndef TRACE_HOOKS_CAMHEAPHOOKS_H 9 #define TRACE_HOOKS_CAMHEAPHOOKS_H 10 11 #undef TRACE_SYSTEM 12 #define TRACE_SYSTEM cam_heap_hooks 13 14 #define TRACE_INCLUDE_PATH trace / hooks 15 #if !defined(_TRACE_CAM_HEAP_BONDING_H) || defined(TRACE_HEADER_MULTI_READ) 16 #define _TRACE_CAM_HEAP_BONDING_H 17 #include <linux/tracepoint.h> 18 #include <trace/hooks/vendor_hooks.h> 19 20 struct cma_heap_buffer; 21 struct page; 22 struct cma_heap; 23 struct dma_buf; 24 struct dma_buf_ops; 25 struct dma_heap; 26 DECLARE_HOOK(cam_heap_hooks, 27 TP_PROTO(struct cma_heap_buffer *buffer, struct page *cma_pages, struct cma_heap *cma_heap, 28 pgoff_t pagecount, unsigned long fd_flags, struct dma_buf *dmabuf, 29 struct dma_buf_ops *pcma_heap_buf_ops, struct dma_heap *heap, void *data), 30 TP_ARGS(buffer, cma_pages, cma_heap, pagecount, fd_flags, dmabuf, pcma_heap_buf_ops, heap, data)); 31 32 DECLARE_HOOK(cam_heap_config_hooks, TP_PROTO(void *data), TP_ARGS(data)); 33 34 #endif 35 /* This part must be outside protection */ 36 #include <trace/define_trace.h> 37 38 #ifdef CONFIG_VENDOR_DTC_HOOKS 39 #endif 40 41 #endif /* TRACE_HOOKS_CAMHEAPHOOKS_H */ 42