Sujit Reddy Thumma | 71702f9 | 2013-02-14 08:13:52 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013, The Linux Foundation. All rights reserved. |
| 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 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #undef TRACE_SYSTEM |
| 15 | #define TRACE_SYSTEM mmc |
| 16 | |
| 17 | #if !defined(_TRACE_MMC_H) || defined(TRACE_HEADER_MULTI_READ) |
| 18 | #define _TRACE_MMC_H |
| 19 | |
| 20 | #include <linux/tracepoint.h> |
| 21 | |
| 22 | TRACE_EVENT(mmc_clk, |
| 23 | TP_PROTO(char *print_info), |
| 24 | |
| 25 | TP_ARGS(print_info), |
| 26 | |
| 27 | TP_STRUCT__entry( |
| 28 | __string(print_info, print_info) |
| 29 | ), |
| 30 | |
| 31 | TP_fast_assign( |
| 32 | __assign_str(print_info, print_info); |
| 33 | ), |
| 34 | |
| 35 | TP_printk("%s", |
| 36 | __get_str(print_info) |
| 37 | ) |
| 38 | ); |
| 39 | |
| 40 | #endif /* if !defined(_TRACE_MMC_H) || defined(TRACE_HEADER_MULTI_READ) */ |
| 41 | |
| 42 | /* This part must be outside protection */ |
| 43 | #include <trace/define_trace.h> |