Takashi Iwai | 1a8506d | 2012-10-16 15:10:08 +0200 | [diff] [blame] | 1 | #undef TRACE_SYSTEM |
| 2 | #define TRACE_SYSTEM hda_intel |
| 3 | #define TRACE_INCLUDE_FILE hda_intel_trace |
| 4 | |
| 5 | #if !defined(_TRACE_HDA_INTEL_H) || defined(TRACE_HEADER_MULTI_READ) |
| 6 | #define _TRACE_HDA_INTEL_H |
| 7 | |
| 8 | #include <linux/tracepoint.h> |
| 9 | |
| 10 | struct azx; |
| 11 | struct azx_dev; |
| 12 | |
| 13 | TRACE_EVENT(azx_pcm_trigger, |
| 14 | |
| 15 | TP_PROTO(struct azx *chip, struct azx_dev *dev, int cmd), |
| 16 | |
| 17 | TP_ARGS(chip, dev, cmd), |
| 18 | |
| 19 | TP_STRUCT__entry( |
| 20 | __field( int, card ) |
| 21 | __field( int, idx ) |
| 22 | __field( int, cmd ) |
| 23 | ), |
| 24 | |
| 25 | TP_fast_assign( |
| 26 | __entry->card = (chip)->card->number; |
| 27 | __entry->idx = (dev)->index; |
| 28 | __entry->cmd = cmd; |
| 29 | ), |
| 30 | |
| 31 | TP_printk("[%d:%d] cmd=%d", __entry->card, __entry->idx, __entry->cmd) |
| 32 | ); |
| 33 | |
| 34 | TRACE_EVENT(azx_get_position, |
| 35 | |
| 36 | TP_PROTO(struct azx *chip, struct azx_dev *dev, unsigned int pos, unsigned int delay), |
| 37 | |
| 38 | TP_ARGS(chip, dev, pos, delay), |
| 39 | |
| 40 | TP_STRUCT__entry( |
| 41 | __field( int, card ) |
| 42 | __field( int, idx ) |
| 43 | __field( unsigned int, pos ) |
| 44 | __field( unsigned int, delay ) |
| 45 | ), |
| 46 | |
| 47 | TP_fast_assign( |
| 48 | __entry->card = (chip)->card->number; |
| 49 | __entry->idx = (dev)->index; |
| 50 | __entry->pos = pos; |
| 51 | __entry->delay = delay; |
| 52 | ), |
| 53 | |
| 54 | TP_printk("[%d:%d] pos=%u, delay=%u", __entry->card, __entry->idx, __entry->pos, __entry->delay) |
| 55 | ); |
| 56 | |
| 57 | #endif /* _TRACE_HDA_INTEL_H */ |
| 58 | |
| 59 | /* This part must be outside protection */ |
| 60 | #undef TRACE_INCLUDE_PATH |
| 61 | #define TRACE_INCLUDE_PATH . |
| 62 | #include <trace/define_trace.h> |