Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 1 | #undef TRACE_SYSTEM |
Gustavo Padovan | 35538d7 | 2016-08-11 12:26:44 -0300 | [diff] [blame] | 2 | #define TRACE_INCLUDE_PATH ../../drivers/dma-buf |
Gustavo Padovan | a04f915 | 2016-08-11 12:26:41 -0300 | [diff] [blame] | 3 | #define TRACE_SYSTEM sync_trace |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 4 | |
| 5 | #if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ) |
| 6 | #define _TRACE_SYNC_H |
| 7 | |
Gustavo Padovan | a04f915 | 2016-08-11 12:26:41 -0300 | [diff] [blame] | 8 | #include "sync_debug.h" |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 9 | #include <linux/tracepoint.h> |
| 10 | |
| 11 | TRACE_EVENT(sync_timeline, |
| 12 | TP_PROTO(struct sync_timeline *timeline), |
| 13 | |
| 14 | TP_ARGS(timeline), |
| 15 | |
| 16 | TP_STRUCT__entry( |
| 17 | __string(name, timeline->name) |
Gustavo Padovan | 5c1401f | 2016-05-31 16:58:57 -0300 | [diff] [blame] | 18 | __field(u32, value) |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 19 | ), |
| 20 | |
| 21 | TP_fast_assign( |
| 22 | __assign_str(name, timeline->name); |
Gustavo Padovan | 5c1401f | 2016-05-31 16:58:57 -0300 | [diff] [blame] | 23 | __entry->value = timeline->value; |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 24 | ), |
| 25 | |
Gustavo Padovan | 5c1401f | 2016-05-31 16:58:57 -0300 | [diff] [blame] | 26 | TP_printk("name=%s value=%d", __get_str(name), __entry->value) |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 27 | ); |
| 28 | |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 29 | #endif /* if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ) */ |
| 30 | |
| 31 | /* This part must be outside protection */ |
| 32 | #include <trace/define_trace.h> |