Oleg Perelet | 5d61210 | 2017-04-05 11:03:38 -0700 | [diff] [blame^] | 1 | /* Copyright (c) 2014-2017, The Linux Foundation. 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(_DEVFREQ_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) |
| 15 | #define _DEVFREQ_TRACE_H |
| 16 | |
| 17 | #undef TRACE_SYSTEM |
| 18 | #define TRACE_SYSTEM devfreq |
| 19 | #undef TRACE_INCLUDE_PATH |
| 20 | #define TRACE_INCLUDE_PATH . |
| 21 | #undef TRACE_INCLUDE_FILE |
| 22 | #define TRACE_INCLUDE_FILE devfreq_trace |
| 23 | |
| 24 | #include <linux/tracepoint.h> |
| 25 | |
| 26 | TRACE_EVENT(devfreq_msg, |
| 27 | TP_PROTO(const char *msg), |
| 28 | TP_ARGS(msg), |
| 29 | TP_STRUCT__entry( |
| 30 | __string(msg, msg) |
| 31 | ), |
| 32 | TP_fast_assign( |
| 33 | __assign_str(msg, msg); |
| 34 | ), |
| 35 | TP_printk( |
| 36 | "%s", __get_str(msg) |
| 37 | ) |
| 38 | ); |
| 39 | |
| 40 | #endif /* _DEVFREQ_TRACE_H */ |
| 41 | |
| 42 | /* This part must be outside protection */ |
| 43 | #include <trace/define_trace.h> |
| 44 | |