Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 2 | #undef TRACE_SYSTEM |
Gustavo Padovan | 35538d7 | 2016-08-11 12:26:44 -0300 | [diff] [blame] | 3 | #define TRACE_INCLUDE_PATH ../../drivers/dma-buf |
Gustavo Padovan | a04f915 | 2016-08-11 12:26:41 -0300 | [diff] [blame] | 4 | #define TRACE_SYSTEM sync_trace |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 5 | |
| 6 | #if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ) |
| 7 | #define _TRACE_SYNC_H |
| 8 | |
Gustavo Padovan | a04f915 | 2016-08-11 12:26:41 -0300 | [diff] [blame] | 9 | #include "sync_debug.h" |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 10 | #include <linux/tracepoint.h> |
| 11 | |
| 12 | TRACE_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) |
Gustavo Padovan | 5c1401f | 2016-05-31 16:58:57 -0300 | [diff] [blame] | 19 | __field(u32, value) |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 20 | ), |
| 21 | |
| 22 | TP_fast_assign( |
| 23 | __assign_str(name, timeline->name); |
Gustavo Padovan | 5c1401f | 2016-05-31 16:58:57 -0300 | [diff] [blame] | 24 | __entry->value = timeline->value; |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 25 | ), |
| 26 | |
Gustavo Padovan | 5c1401f | 2016-05-31 16:58:57 -0300 | [diff] [blame] | 27 | TP_printk("name=%s value=%d", __get_str(name), __entry->value) |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 28 | ); |
| 29 | |
Erik Gilling | b699a64 | 2013-02-28 16:43:23 -0800 | [diff] [blame] | 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> |