2 #define TRACE_SYSTEM sync
4 #if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/sync.h>
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(sync_timeline,
11 TP_PROTO(struct sync_timeline *timeline),
16 __string(name, timeline->name)
17 __array(char, value, 32)
21 __assign_str(name, timeline->name);
22 if (timeline->ops->timeline_value_str) {
23 timeline->ops->timeline_value_str(timeline,
25 sizeof(__entry->value));
27 __entry->value[0] = '\0';
31 TP_printk("name=%s value=%s", __get_str(name), __entry->value)
34 TRACE_EVENT(sync_wait,
35 TP_PROTO(struct sync_fence *fence, int begin),
37 TP_ARGS(fence, begin),
40 __string(name, fence->name)
46 __assign_str(name, fence->name);
47 __entry->status = fence->status;
48 __entry->begin = begin;
51 TP_printk("%s name=%s state=%d", __entry->begin ? "begin" : "end",
52 __get_str(name), __entry->status)
56 TP_PROTO(struct sync_pt *pt),
61 __string(timeline, pt->parent->name)
62 __array(char, value, 32)
66 __assign_str(timeline, pt->parent->name);
67 if (pt->parent->ops->pt_value_str) {
68 pt->parent->ops->pt_value_str(pt,
70 sizeof(__entry->value));
72 __entry->value[0] = '\0';
76 TP_printk("name=%s value=%s", __get_str(timeline), __entry->value)
79 #endif /* if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ) */
81 /* This part must be outside protection */
82 #include <trace/define_trace.h>