Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #undef TRACE_SYSTEM
0003 #define TRACE_SYSTEM hda_intel
0004 #define TRACE_INCLUDE_FILE hda_intel_trace
0005 
0006 #if !defined(_TRACE_HDA_INTEL_H) || defined(TRACE_HEADER_MULTI_READ)
0007 #define _TRACE_HDA_INTEL_H
0008 
0009 #include <linux/tracepoint.h>
0010 
0011 DECLARE_EVENT_CLASS(hda_pm,
0012     TP_PROTO(struct azx *chip),
0013 
0014     TP_ARGS(chip),
0015 
0016     TP_STRUCT__entry(
0017         __field(int, dev_index)
0018     ),
0019 
0020     TP_fast_assign(
0021         __entry->dev_index = (chip)->dev_index;
0022     ),
0023 
0024     TP_printk("card index: %d", __entry->dev_index)
0025 );
0026 
0027 DEFINE_EVENT(hda_pm, azx_suspend,
0028     TP_PROTO(struct azx *chip),
0029     TP_ARGS(chip)
0030 );
0031 
0032 DEFINE_EVENT(hda_pm, azx_resume,
0033     TP_PROTO(struct azx *chip),
0034     TP_ARGS(chip)
0035 );
0036 
0037 #ifdef CONFIG_PM
0038 DEFINE_EVENT(hda_pm, azx_runtime_suspend,
0039     TP_PROTO(struct azx *chip),
0040     TP_ARGS(chip)
0041 );
0042 
0043 DEFINE_EVENT(hda_pm, azx_runtime_resume,
0044     TP_PROTO(struct azx *chip),
0045     TP_ARGS(chip)
0046 );
0047 #endif
0048 
0049 #endif /* _TRACE_HDA_INTEL_H */
0050 
0051 /* This part must be outside protection */
0052 #undef TRACE_INCLUDE_PATH
0053 #define TRACE_INCLUDE_PATH .
0054 #include <trace/define_trace.h>