blob: 4bd2b0253d273f10ac1f53d84786dbd1a73a74db [file] [log] [blame]
Terje Bergstrom75471682013-03-22 16:34:01 +02001/*
2 * include/trace/events/host1x.h
3 *
4 * host1x event logging to ftrace.
5 *
6 * Copyright (c) 2010-2013, NVIDIA Corporation.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22
23#undef TRACE_SYSTEM
24#define TRACE_SYSTEM host1x
25
26#if !defined(_TRACE_HOST1X_H) || defined(TRACE_HEADER_MULTI_READ)
27#define _TRACE_HOST1X_H
28
29#include <linux/ktime.h>
30#include <linux/tracepoint.h>
31
32DECLARE_EVENT_CLASS(host1x,
33 TP_PROTO(const char *name),
34 TP_ARGS(name),
35 TP_STRUCT__entry(__field(const char *, name)),
36 TP_fast_assign(__entry->name = name;),
37 TP_printk("name=%s", __entry->name)
38);
39
40TRACE_EVENT(host1x_syncpt_load_min,
41 TP_PROTO(u32 id, u32 val),
42
43 TP_ARGS(id, val),
44
45 TP_STRUCT__entry(
46 __field(u32, id)
47 __field(u32, val)
48 ),
49
50 TP_fast_assign(
51 __entry->id = id;
52 __entry->val = val;
53 ),
54
55 TP_printk("id=%d, val=%d", __entry->id, __entry->val)
56);
57
58#endif /* _TRACE_HOST1X_H */
59
60/* This part must be outside protection */
61#include <trace/define_trace.h>