include/trace/events/pci_controller.h
Source file repositories/reference/linux-study-clean/include/trace/events/pci_controller.h
File Facts
- System
- Linux kernel
- Corpus path
include/trace/events/pci_controller.h- Extension
.h- Size
- 1329 bytes
- Lines
- 59
- 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
uapi/linux/pci_regs.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 pci_controller
#if !defined(_TRACE_HW_EVENT_PCI_CONTROLLER_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HW_EVENT_PCI_CONTROLLER_H
#include <uapi/linux/pci_regs.h>
#include <linux/tracepoint.h>
#define RATE \
EM(PCIE_SPEED_2_5GT, "2.5 GT/s") \
EM(PCIE_SPEED_5_0GT, "5.0 GT/s") \
EM(PCIE_SPEED_8_0GT, "8.0 GT/s") \
EM(PCIE_SPEED_16_0GT, "16.0 GT/s") \
EM(PCIE_SPEED_32_0GT, "32.0 GT/s") \
EM(PCIE_SPEED_64_0GT, "64.0 GT/s") \
EMe(PCI_SPEED_UNKNOWN, "Unknown")
#undef EM
#undef EMe
#define EM(a, b) TRACE_DEFINE_ENUM(a);
#define EMe(a, b) TRACE_DEFINE_ENUM(a);
RATE
#undef EM
#undef EMe
#define EM(a, b) {a, b},
#define EMe(a, b) {a, b}
TRACE_EVENT(pcie_ltssm_state_transition,
TP_PROTO(const char *dev_name, const char *state, u32 rate),
TP_ARGS(dev_name, state, rate),
TP_STRUCT__entry(
__string(dev_name, dev_name)
__string(state, state)
__field(u32, rate)
),
TP_fast_assign(
__assign_str(dev_name);
__assign_str(state);
__entry->rate = rate;
),
TP_printk("dev: %s state: %s rate: %s",
__get_str(dev_name), __get_str(state),
__print_symbolic(__entry->rate, RATE)
)
);
#endif /* _TRACE_HW_EVENT_PCI_CONTROLLER_H */
/* This part must be outside protection */
#include <trace/define_trace.h>
Annotation
- Immediate include surface: `uapi/linux/pci_regs.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.