include/trace/events/spmi.h
Source file repositories/reference/linux-study-clean/include/trace/events/spmi.h
File Facts
- System
- Linux kernel
- Corpus path
include/trace/events/spmi.h- Extension
.h- Size
- 3320 bytes
- Lines
- 137
- 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.
- 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
linux/spmi.hlinux/tracepoint.htrace/define_trace.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#undef TRACE_SYSTEM
#define TRACE_SYSTEM spmi
#if !defined(_TRACE_SPMI_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_SPMI_H
#include <linux/spmi.h>
#include <linux/tracepoint.h>
/*
* drivers/spmi/spmi.c
*/
TRACE_EVENT(spmi_write_begin,
TP_PROTO(u8 opcode, u8 sid, u16 addr, u8 len, const u8 *buf),
TP_ARGS(opcode, sid, addr, len, buf),
TP_STRUCT__entry(
__field ( u8, opcode )
__field ( u8, sid )
__field ( u16, addr )
__field ( u8, len )
__dynamic_array ( u8, buf, len )
),
TP_fast_assign(
__entry->opcode = opcode;
__entry->sid = sid;
__entry->addr = addr;
__entry->len = len;
memcpy(__get_dynamic_array(buf), buf, len);
),
TP_printk("opc=%d sid=%02d addr=0x%04x len=%d buf=0x[%*phD]",
(int)__entry->opcode, (int)__entry->sid,
(int)__entry->addr, (int)__entry->len,
(int)__entry->len, __get_dynamic_array(buf))
);
TRACE_EVENT(spmi_write_end,
TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret),
TP_ARGS(opcode, sid, addr, ret),
TP_STRUCT__entry(
__field ( u8, opcode )
__field ( u8, sid )
__field ( u16, addr )
__field ( int, ret )
),
TP_fast_assign(
__entry->opcode = opcode;
__entry->sid = sid;
__entry->addr = addr;
__entry->ret = ret;
),
TP_printk("opc=%d sid=%02d addr=0x%04x ret=%d",
(int)__entry->opcode, (int)__entry->sid,
(int)__entry->addr, __entry->ret)
);
TRACE_EVENT(spmi_read_begin,
TP_PROTO(u8 opcode, u8 sid, u16 addr),
TP_ARGS(opcode, sid, addr),
TP_STRUCT__entry(
__field ( u8, opcode )
__field ( u8, sid )
__field ( u16, addr )
),
TP_fast_assign(
__entry->opcode = opcode;
__entry->sid = sid;
__entry->addr = addr;
),
TP_printk("opc=%d sid=%02d addr=0x%04x",
(int)__entry->opcode, (int)__entry->sid,
(int)__entry->addr)
);
TRACE_EVENT(spmi_read_end,
TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret, u8 len, const u8 *buf),
TP_ARGS(opcode, sid, addr, ret, len, buf),
TP_STRUCT__entry(
__field ( u8, opcode )
__field ( u8, sid )
Annotation
- Immediate include surface: `linux/spmi.h`, `linux/tracepoint.h`, `trace/define_trace.h`.
- Atlas domain: Repository Root And Misc / include.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.