Blame view
include/trace/events/regmap.h
2.74 KB
fb2736bba regmap: Add basic... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
#undef TRACE_SYSTEM #define TRACE_SYSTEM regmap #if !defined(_TRACE_REGMAP_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_REGMAP_H #include <linux/device.h> #include <linux/ktime.h> #include <linux/tracepoint.h> struct regmap; /* * Log register events */ DECLARE_EVENT_CLASS(regmap_reg, TP_PROTO(struct device *dev, unsigned int reg, unsigned int val), TP_ARGS(dev, reg, val), TP_STRUCT__entry( __string( name, dev_name(dev) ) __field( unsigned int, reg ) __field( unsigned int, val ) ), TP_fast_assign( __assign_str(name, dev_name(dev)); __entry->reg = reg; __entry->val = val; ), TP_printk("%s reg=%x val=%x", __get_str(name), (unsigned int)__entry->reg, (unsigned int)__entry->val) ); DEFINE_EVENT(regmap_reg, regmap_reg_write, TP_PROTO(struct device *dev, unsigned int reg, unsigned int val), TP_ARGS(dev, reg, val) ); DEFINE_EVENT(regmap_reg, regmap_reg_read, TP_PROTO(struct device *dev, unsigned int reg, unsigned int val), TP_ARGS(dev, reg, val) ); |
bc7ee5563 regmap: Add trace... |
57 58 59 60 61 62 63 64 |
DEFINE_EVENT(regmap_reg, regmap_reg_read_cache, TP_PROTO(struct device *dev, unsigned int reg, unsigned int val), TP_ARGS(dev, reg, val) ); |
fb2736bba regmap: Add basic... |
65 |
DECLARE_EVENT_CLASS(regmap_block, |
3d9ead7c0 regmap: Use int r... |
66 |
TP_PROTO(struct device *dev, unsigned int reg, int count), |
fb2736bba regmap: Add basic... |
67 68 69 70 71 72 |
TP_ARGS(dev, reg, count), TP_STRUCT__entry( __string( name, dev_name(dev) ) __field( unsigned int, reg ) |
3d9ead7c0 regmap: Use int r... |
73 |
__field( int, count ) |
fb2736bba regmap: Add basic... |
74 75 76 77 78 79 80 81 82 83 |
), TP_fast_assign( __assign_str(name, dev_name(dev)); __entry->reg = reg; __entry->count = count; ), TP_printk("%s reg=%x count=%d", __get_str(name), (unsigned int)__entry->reg, |
3d9ead7c0 regmap: Use int r... |
84 |
(int)__entry->count) |
fb2736bba regmap: Add basic... |
85 86 87 |
); DEFINE_EVENT(regmap_block, regmap_hw_read_start, |
3d9ead7c0 regmap: Use int r... |
88 |
TP_PROTO(struct device *dev, unsigned int reg, int count), |
fb2736bba regmap: Add basic... |
89 90 91 92 93 |
TP_ARGS(dev, reg, count) ); DEFINE_EVENT(regmap_block, regmap_hw_read_done, |
3d9ead7c0 regmap: Use int r... |
94 |
TP_PROTO(struct device *dev, unsigned int reg, int count), |
fb2736bba regmap: Add basic... |
95 96 97 98 99 |
TP_ARGS(dev, reg, count) ); DEFINE_EVENT(regmap_block, regmap_hw_write_start, |
3d9ead7c0 regmap: Use int r... |
100 |
TP_PROTO(struct device *dev, unsigned int reg, int count), |
fb2736bba regmap: Add basic... |
101 102 103 104 105 |
TP_ARGS(dev, reg, count) ); DEFINE_EVENT(regmap_block, regmap_hw_write_done, |
3d9ead7c0 regmap: Use int r... |
106 |
TP_PROTO(struct device *dev, unsigned int reg, int count), |
fb2736bba regmap: Add basic... |
107 108 109 |
TP_ARGS(dev, reg, count) ); |
593600890 regmap: Add the r... |
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
TRACE_EVENT(regcache_sync, TP_PROTO(struct device *dev, const char *type, const char *status), TP_ARGS(dev, type, status), TP_STRUCT__entry( __string( name, dev_name(dev) ) __string( status, status ) __string( type, type ) __field( int, type ) ), TP_fast_assign( __assign_str(name, dev_name(dev)); __assign_str(status, status); __assign_str(type, type); ), TP_printk("%s type=%s status=%s", __get_str(name), __get_str(type), __get_str(status)) ); |
fb2736bba regmap: Add basic... |
133 134 135 136 |
#endif /* _TRACE_REGMAP_H */ /* This part must be outside protection */ #include <trace/define_trace.h> |