Maulik Shah | e1f3b14 | 2018-05-29 09:51:06 +0530 | [diff] [blame] | 1 | /* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. |
Archana Sathyakumar | 741a37a | 2017-05-10 11:03:39 -0600 | [diff] [blame] | 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 | #undef TRACE_SYSTEM |
| 14 | #define TRACE_SYSTEM pdc |
| 15 | |
| 16 | #if !defined(_TRACE_PDC_) || defined(TRACE_HEADER_MULTI_READ) |
| 17 | #define _TRACE_PDC_H_ |
| 18 | |
| 19 | #include <linux/tracepoint.h> |
| 20 | |
| 21 | TRACE_EVENT(irq_pin_config, |
| 22 | |
| 23 | TP_PROTO(char *func, u32 pin, u32 hwirq, u32 type, u32 enable), |
| 24 | |
| 25 | TP_ARGS(func, pin, hwirq, type, enable), |
| 26 | |
| 27 | TP_STRUCT__entry( |
| 28 | __field(char *, func) |
| 29 | __field(u32, pin) |
| 30 | __field(u32, hwirq) |
| 31 | __field(u32, type) |
| 32 | __field(u32, enable) |
| 33 | ), |
| 34 | |
| 35 | TP_fast_assign( |
| 36 | __entry->pin = pin; |
| 37 | __entry->func = func; |
| 38 | __entry->hwirq = hwirq; |
| 39 | __entry->type = type; |
| 40 | __entry->enable = enable; |
| 41 | ), |
| 42 | |
| 43 | TP_printk("%s hwirq:%u pin:%u type:%u enable:%u", |
Maulik Shah | e1f3b14 | 2018-05-29 09:51:06 +0530 | [diff] [blame] | 44 | __entry->func, __entry->hwirq, __entry->pin, __entry->type, |
Archana Sathyakumar | 741a37a | 2017-05-10 11:03:39 -0600 | [diff] [blame] | 45 | __entry->enable) |
| 46 | ); |
| 47 | |
| 48 | #endif |
| 49 | #define TRACE_INCLUDE_FILE pdc |
| 50 | #include <trace/define_trace.h> |