blob: 06e468a218ff81eb8a280c5375b7e394a9ae2662 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Erik Gillingb699a642013-02-28 16:43:23 -08002#undef TRACE_SYSTEM
Gustavo Padovan35538d72016-08-11 12:26:44 -03003#define TRACE_INCLUDE_PATH ../../drivers/dma-buf
Gustavo Padovana04f9152016-08-11 12:26:41 -03004#define TRACE_SYSTEM sync_trace
Erik Gillingb699a642013-02-28 16:43:23 -08005
6#if !defined(_TRACE_SYNC_H) || defined(TRACE_HEADER_MULTI_READ)
7#define _TRACE_SYNC_H
8
Gustavo Padovana04f9152016-08-11 12:26:41 -03009#include "sync_debug.h"
Erik Gillingb699a642013-02-28 16:43:23 -080010#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)
Gustavo Padovan5c1401f2016-05-31 16:58:57 -030019 __field(u32, value)
Erik Gillingb699a642013-02-28 16:43:23 -080020 ),
21
22 TP_fast_assign(
23 __assign_str(name, timeline->name);
Gustavo Padovan5c1401f2016-05-31 16:58:57 -030024 __entry->value = timeline->value;
Erik Gillingb699a642013-02-28 16:43:23 -080025 ),
26
Gustavo Padovan5c1401f2016-05-31 16:58:57 -030027 TP_printk("name=%s value=%d", __get_str(name), __entry->value)
Erik Gillingb699a642013-02-28 16:43:23 -080028);
29
Erik Gillingb699a642013-02-28 16:43:23 -080030#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>