blob: fbe1fe54ee219b5abbc082cd3f7edb999dacd9ad [file] [log] [blame]
Norman Geed7402ff2011-10-28 08:51:11 -06001/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13
14#if !defined(_Z180_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
15#define _Z180_TRACE_H
16
17#undef TRACE_SYSTEM
18#define TRACE_SYSTEM kgsl
19#undef TRACE_INCLUDE_PATH
20#define TRACE_INCLUDE_PATH .
21#undef TRACE_INCLUDE_FILE
22#define TRACE_INCLUDE_FILE z180_trace
23
24#include <linux/tracepoint.h>
25
26struct kgsl_device;
27
28/*
29 * Tracepoint for z180 irq. Includes status info
30 */
31TRACE_EVENT(kgsl_z180_irq_status,
32
33 TP_PROTO(struct kgsl_device *device, unsigned int status),
34
35 TP_ARGS(device, status),
36
37 TP_STRUCT__entry(
38 __string(device_name, device->name)
39 __field(unsigned int, status)
40 ),
41
42 TP_fast_assign(
43 __assign_str(device_name, device->name);
44 __entry->status = status;
45 ),
46
47 TP_printk(
48 "d_name=%s status=%s",
49 __get_str(device_name),
50 __entry->status ? __print_flags(__entry->status, "|",
51 { REG_VGC_IRQSTATUS__MH_MASK, "MH" },
52 { REG_VGC_IRQSTATUS__G2D_MASK, "G2D" },
53 { REG_VGC_IRQSTATUS__FIFO_MASK, "FIFO" }) : "None"
54 )
55);
56
57#endif /* _Z180_TRACE_H */
58
59/* This part must be outside protection */
60#include <trace/define_trace.h>