include/trace/events/ib_umad.h
Source file repositories/reference/linux-study-clean/include/trace/events/ib_umad.h
File Facts
- System
- Linux kernel
- Corpus path
include/trace/events/ib_umad.h- Extension
.h- Size
- 4095 bytes
- Lines
- 127
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/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 ib_umad
#if !defined(_TRACE_IB_UMAD_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_IB_UMAD_H
#include <linux/tracepoint.h>
DECLARE_EVENT_CLASS(ib_umad_template,
TP_PROTO(struct ib_umad_file *file, struct ib_user_mad_hdr *umad_hdr,
struct ib_mad_hdr *mad_hdr),
TP_ARGS(file, umad_hdr, mad_hdr),
TP_STRUCT__entry(
__field(u8, port_num)
__field(u8, sl)
__field(u8, path_bits)
__field(u8, grh_present)
__field(u32, id)
__field(u32, status)
__field(u32, timeout_ms)
__field(u32, retires)
__field(u32, length)
__field(u32, qpn)
__field(u32, qkey)
__field(u8, gid_index)
__field(u8, hop_limit)
__field(u16, lid)
__field(u16, attr_id)
__field(u16, pkey_index)
__field(u8, base_version)
__field(u8, mgmt_class)
__field(u8, class_version)
__field(u8, method)
__field(u32, flow_label)
__field(u16, mad_status)
__field(u16, class_specific)
__field(u32, attr_mod)
__field(u64, tid)
__array(u8, gid, 16)
__field(u32, dev_index)
__field(u8, traffic_class)
),
TP_fast_assign(
__entry->dev_index = file->port->ib_dev->index;
__entry->port_num = file->port->port_num;
__entry->id = umad_hdr->id;
__entry->status = umad_hdr->status;
__entry->timeout_ms = umad_hdr->timeout_ms;
__entry->retires = umad_hdr->retries;
__entry->length = umad_hdr->length;
__entry->qpn = umad_hdr->qpn;
__entry->qkey = umad_hdr->qkey;
__entry->lid = umad_hdr->lid;
__entry->sl = umad_hdr->sl;
__entry->path_bits = umad_hdr->path_bits;
__entry->grh_present = umad_hdr->grh_present;
__entry->gid_index = umad_hdr->gid_index;
__entry->hop_limit = umad_hdr->hop_limit;
__entry->traffic_class = umad_hdr->traffic_class;
memcpy(__entry->gid, umad_hdr->gid, sizeof(umad_hdr->gid));
__entry->flow_label = umad_hdr->flow_label;
__entry->pkey_index = umad_hdr->pkey_index;
__entry->base_version = mad_hdr->base_version;
__entry->mgmt_class = mad_hdr->mgmt_class;
__entry->class_version = mad_hdr->class_version;
__entry->method = mad_hdr->method;
__entry->mad_status = mad_hdr->status;
__entry->class_specific = mad_hdr->class_specific;
__entry->tid = mad_hdr->tid;
__entry->attr_id = mad_hdr->attr_id;
__entry->attr_mod = mad_hdr->attr_mod;
),
TP_printk("%d:%d umad_hdr: id 0x%08x status 0x%08x ms %u ret %u " \
"len %u QP%u qkey 0x%08x lid 0x%04x sl %u path_bits 0x%x " \
"grh 0x%x gidi %u hop_lim %u traf_cl %u gid %pI6c " \
"flow 0x%08x pkeyi %u MAD: base_ver 0x%x class 0x%x " \
"class_ver 0x%x method 0x%x status 0x%04x " \
"class_specific 0x%04x tid 0x%016llx attr_id 0x%04x " \
"attr_mod 0x%08x ",
__entry->dev_index, __entry->port_num,
__entry->id, __entry->status, __entry->timeout_ms,
__entry->retires, __entry->length, be32_to_cpu(__entry->qpn),
be32_to_cpu(__entry->qkey), be16_to_cpu(__entry->lid),
__entry->sl, __entry->path_bits, __entry->grh_present,
__entry->gid_index, __entry->hop_limit,
Annotation
- Immediate include surface: `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.