include/trace/events/i2c_slave.h

Source file repositories/reference/linux-study-clean/include/trace/events/i2c_slave.h

File Facts

System
Linux kernel
Corpus path
include/trace/events/i2c_slave.h
Extension
.h
Size
1888 bytes
Lines
68
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

switch (event) {
		case I2C_SLAVE_READ_REQUESTED:
		case I2C_SLAVE_READ_PROCESSED:
		case I2C_SLAVE_WRITE_RECEIVED:
			__entry->len = 1;
			memcpy(__entry->buf, val, __entry->len);
			break;
		default:
			__entry->len = 0;
			break;
		}
		),
	TP_printk("i2c-%d a=%03x ret=%d %s [%*phD]",
		__entry->adapter_nr, __entry->addr, __entry->ret,
		show_event_type(__entry->event), __entry->len, __entry->buf
		));

#endif /* _TRACE_I2C_SLAVE_H */

/* This part must be outside protection */
#include <trace/define_trace.h>

Annotation

Implementation Notes