Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hda_trace.h File Reference
#include <linux/tracepoint.h>
#include <trace/define_trace.h>

Go to the source code of this file.

Macros

#define TRACE_SYSTEM   hda
 
#define TRACE_INCLUDE_FILE   hda_trace
 
#define _TRACE_HDA_H
 
#define TRACE_INCLUDE_PATH   .
 

Functions

 DECLARE_EVENT_CLASS (hda_cmd, TP_PROTO(struct hda_codec *codec, unsigned int val), TP_ARGS(codec, val), TP_STRUCT__entry(__field(unsigned int, card) __field(unsigned int, addr) __field(unsigned int, val)), TP_fast_assign(__entry->card=(codec) ->bus->card->number;__entry->addr=(codec) ->addr;__entry->val=(val);), TP_printk("[%d:%d] val=%x", __entry->card, __entry->addr, __entry->val))
 
 DEFINE_EVENT (hda_cmd, hda_send_cmd, TP_PROTO(struct hda_codec *codec, unsigned int val),)
 
 DEFINE_EVENT (hda_cmd, hda_get_response, TP_PROTO(struct hda_codec *codec, unsigned int val),)
 
 TRACE_EVENT (hda_bus_reset, TP_PROTO(struct hda_bus *bus), TP_ARGS(bus), TP_STRUCT__entry(__field(unsigned int, card)), TP_fast_assign(__entry->card=(bus) ->card->number;), TP_printk("[%d]", __entry->card))
 
 TRACE_EVENT (hda_unsol_event, TP_PROTO(struct hda_bus *bus, u32 res, u32 res_ex), TP_ARGS(bus, res, res_ex), TP_STRUCT__entry(__field(unsigned int, card) __field(u32, res) __field(u32, res_ex)), TP_fast_assign(__entry->card=(bus) ->card->number;__entry->res=res;__entry->res_ex=res_ex;), TP_printk("[%d] res=%x, res_ex=%x", __entry->card, __entry->res, __entry->res_ex))
 

Macro Definition Documentation

#define _TRACE_HDA_H

Definition at line 6 of file hda_trace.h.

#define TRACE_INCLUDE_FILE   hda_trace

Definition at line 3 of file hda_trace.h.

#define TRACE_INCLUDE_PATH   .

Definition at line 142 of file hda_trace.h.

#define TRACE_SYSTEM   hda

Definition at line 2 of file hda_trace.h.

Function Documentation

DECLARE_EVENT_CLASS ( hda_cmd  ,
TP_PROTO(struct hda_codec *codec, unsigned int val ,
TP_ARGS(codec, val ,
TP_STRUCT__entry(__field(unsigned int, card) __field(unsigned int, addr) __field(unsigned int, val))  ,
TP_fast_assign(__entry->card=(codec) ->bus->card->number;__entry->addr=(codec) ->addr;__entry->val=(val);)  ,
TP_printk("[%d:%d] val=%x", __entry->card, __entry->addr, __entry->val  
)
DEFINE_EVENT ( hda_cmd  ,
hda_send_cmd  ,
TP_PROTO(struct hda_codec *codec, unsigned int val  
)
DEFINE_EVENT ( hda_cmd  ,
hda_get_response  ,
TP_PROTO(struct hda_codec *codec, unsigned int val  
)
TRACE_EVENT ( hda_bus_reset  ,
TP_PROTO(struct hda_bus *bus ,
TP_ARGS(bus ,
TP_STRUCT__entry(__field(unsigned int, card))  ,
TP_fast_assign(__entry->card=(bus) ->card->number;)  ,
TP_printk("[%d]", __entry->card  
)
TRACE_EVENT ( hda_unsol_event  ,
TP_PROTO(struct hda_bus *bus, u32 res, u32 res_ex)  ,
TP_ARGS(bus, res, res_ex)  ,
TP_STRUCT__entry(__field(unsigned int, card) __field(u32, res) __field(u32, res_ex))  ,
TP_fast_assign(__entry->card=(bus) ->card->number;__entry->res=res;__entry->res_ex=res_ex;)  ,
TP_printk("[%d] res=%x, res_ex=%x", __entry->card, __entry->res, __entry->res_ex)   
)