sync_trace.h (774B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2#undef TRACE_SYSTEM 3#define TRACE_INCLUDE_PATH ../../drivers/dma-buf 4#define TRACE_SYSTEM sync_trace 5 6#if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ) 7#define _TRACE_SYNC_H 8 9#include "sync_debug.h" 10#include <linux/tracepoint.h> 11 12TRACE_EVENT(sync_timeline, 13 TP_PROTO(struct sync_timeline *timeline), 14 15 TP_ARGS(timeline), 16 17 TP_STRUCT__entry( 18 __string(name, timeline->name) 19 __field(u32, value) 20 ), 21 22 TP_fast_assign( 23 __assign_str(name, timeline->name); 24 __entry->value = timeline->value; 25 ), 26 27 TP_printk("name=%s value=%d", __get_str(name), __entry->value) 28); 29 30#endif /* if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ) */ 31 32/* This part must be outside protection */ 33#include <trace/define_trace.h>