Linux Audio

Check our new training course

Loading...
v4.6
 
 1/*
 2 * Copyright (C) 2015 Broadcom
 3 *
 4 * This program is free software; you can redistribute it and/or modify
 5 * it under the terms of the GNU General Public License version 2 as
 6 * published by the Free Software Foundation.
 7 */
 8
 9#if !defined(_VC4_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
10#define _VC4_TRACE_H_
11
12#include <linux/stringify.h>
13#include <linux/types.h>
14#include <linux/tracepoint.h>
15
16#undef TRACE_SYSTEM
17#define TRACE_SYSTEM vc4
18#define TRACE_INCLUDE_FILE vc4_trace
19
20TRACE_EVENT(vc4_wait_for_seqno_begin,
21	    TP_PROTO(struct drm_device *dev, uint64_t seqno, uint64_t timeout),
22	    TP_ARGS(dev, seqno, timeout),
23
24	    TP_STRUCT__entry(
25			     __field(u32, dev)
26			     __field(u64, seqno)
27			     __field(u64, timeout)
28			     ),
29
30	    TP_fast_assign(
31			   __entry->dev = dev->primary->index;
32			   __entry->seqno = seqno;
33			   __entry->timeout = timeout;
34			   ),
35
36	    TP_printk("dev=%u, seqno=%llu, timeout=%llu",
37		      __entry->dev, __entry->seqno, __entry->timeout)
38);
39
40TRACE_EVENT(vc4_wait_for_seqno_end,
41	    TP_PROTO(struct drm_device *dev, uint64_t seqno),
42	    TP_ARGS(dev, seqno),
43
44	    TP_STRUCT__entry(
45			     __field(u32, dev)
46			     __field(u64, seqno)
47			     ),
48
49	    TP_fast_assign(
50			   __entry->dev = dev->primary->index;
51			   __entry->seqno = seqno;
52			   ),
53
54	    TP_printk("dev=%u, seqno=%llu",
55		      __entry->dev, __entry->seqno)
56);
57
58#endif /* _VC4_TRACE_H_ */
59
60/* This part must be outside protection */
61#undef TRACE_INCLUDE_PATH
62#define TRACE_INCLUDE_PATH .
63#include <trace/define_trace.h>
v5.4
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Copyright (C) 2015 Broadcom
 
 
 
 
 4 */
 5
 6#if !defined(_VC4_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
 7#define _VC4_TRACE_H_
 8
 9#include <linux/stringify.h>
10#include <linux/types.h>
11#include <linux/tracepoint.h>
12
13#undef TRACE_SYSTEM
14#define TRACE_SYSTEM vc4
15#define TRACE_INCLUDE_FILE vc4_trace
16
17TRACE_EVENT(vc4_wait_for_seqno_begin,
18	    TP_PROTO(struct drm_device *dev, uint64_t seqno, uint64_t timeout),
19	    TP_ARGS(dev, seqno, timeout),
20
21	    TP_STRUCT__entry(
22			     __field(u32, dev)
23			     __field(u64, seqno)
24			     __field(u64, timeout)
25			     ),
26
27	    TP_fast_assign(
28			   __entry->dev = dev->primary->index;
29			   __entry->seqno = seqno;
30			   __entry->timeout = timeout;
31			   ),
32
33	    TP_printk("dev=%u, seqno=%llu, timeout=%llu",
34		      __entry->dev, __entry->seqno, __entry->timeout)
35);
36
37TRACE_EVENT(vc4_wait_for_seqno_end,
38	    TP_PROTO(struct drm_device *dev, uint64_t seqno),
39	    TP_ARGS(dev, seqno),
40
41	    TP_STRUCT__entry(
42			     __field(u32, dev)
43			     __field(u64, seqno)
44			     ),
45
46	    TP_fast_assign(
47			   __entry->dev = dev->primary->index;
48			   __entry->seqno = seqno;
49			   ),
50
51	    TP_printk("dev=%u, seqno=%llu",
52		      __entry->dev, __entry->seqno)
53);
54
55#endif /* _VC4_TRACE_H_ */
56
57/* This part must be outside protection */
58#undef TRACE_INCLUDE_PATH
59#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/vc4
60#include <trace/define_trace.h>