blob: d13d59ff1b85fabd870fd0bedac6dc36b17060ce [file] [log] [blame]
Erik Gillingb699a642013-02-28 16:43:23 -08001#undef TRACE_SYSTEM
Gustavo Padovan35538d72016-08-11 12:26:44 -03002#define TRACE_INCLUDE_PATH ../../drivers/dma-buf
Gustavo Padovana04f9152016-08-11 12:26:41 -03003#define TRACE_SYSTEM sync_trace
Erik Gillingb699a642013-02-28 16:43:23 -08004
5#if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ)
6#define _TRACE_SYNC_H
7
Gustavo Padovana04f9152016-08-11 12:26:41 -03008#include "sync_debug.h"
Erik Gillingb699a642013-02-28 16:43:23 -08009#include <linux/tracepoint.h>
10
11TRACE_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 Padovan5c1401f2016-05-31 16:58:57 -030018 __field(u32, value)
Erik Gillingb699a642013-02-28 16:43:23 -080019 ),
20
21 TP_fast_assign(
22 __assign_str(name, timeline->name);
Gustavo Padovan5c1401f2016-05-31 16:58:57 -030023 __entry->value = timeline->value;
Erik Gillingb699a642013-02-28 16:43:23 -080024 ),
25
Gustavo Padovan5c1401f2016-05-31 16:58:57 -030026 TP_printk("name=%s value=%d", __get_str(name), __entry->value)
Erik Gillingb699a642013-02-28 16:43:23 -080027);
28
Erik Gillingb699a642013-02-28 16:43:23 -080029#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>