drivers/net/wireless/ath/ath12k/trace.h
Source file repositories/reference/linux-study-clean/drivers/net/wireless/ath/ath12k/trace.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/wireless/ath/ath12k/trace.h- Extension
.h- Size
- 4793 bytes
- Lines
- 180
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/tracepoint.hcore.htrace/define_trace.h
Detected Declarations
function Copyright
Annotated Snippet
#if !defined(_TRACE_H_) || defined(TRACE_HEADER_MULTI_READ)
#include <linux/tracepoint.h>
#include "core.h"
#define _TRACE_H_
/* create empty functions when tracing is disabled */
#if !defined(CONFIG_ATH12K_TRACING)
#undef TRACE_EVENT
#define TRACE_EVENT(name, proto, ...) \
static inline void trace_ ## name(proto) {}
#endif /* !CONFIG_ATH12K_TRACING || __CHECKER__ */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM ath12k
TRACE_EVENT(ath12k_htt_pktlog,
TP_PROTO(struct ath12k *ar, const void *buf, u16 buf_len,
u32 pktlog_checksum),
TP_ARGS(ar, buf, buf_len, pktlog_checksum),
TP_STRUCT__entry(
__string(device, dev_name(ar->ab->dev))
__string(driver, dev_driver_string(ar->ab->dev))
__field(u16, buf_len)
__field(u32, pktlog_checksum)
__dynamic_array(u8, pktlog, buf_len)
),
TP_fast_assign(
__assign_str(device);
__assign_str(driver);
__entry->buf_len = buf_len;
__entry->pktlog_checksum = pktlog_checksum;
memcpy(__get_dynamic_array(pktlog), buf, buf_len);
),
TP_printk(
"%s %s size %u pktlog_checksum %d",
__get_str(driver),
__get_str(device),
__entry->buf_len,
__entry->pktlog_checksum
)
);
TRACE_EVENT(ath12k_htt_ppdu_stats,
TP_PROTO(struct ath12k *ar, const void *data, size_t len),
TP_ARGS(ar, data, len),
TP_STRUCT__entry(
__string(device, dev_name(ar->ab->dev))
__string(driver, dev_driver_string(ar->ab->dev))
__field(u16, len)
__field(u32, info)
__field(u32, sync_tstmp_lo_us)
__field(u32, sync_tstmp_hi_us)
__field(u32, mlo_offset_lo)
__field(u32, mlo_offset_hi)
__field(u32, mlo_offset_clks)
__field(u32, mlo_comp_clks)
__field(u32, mlo_comp_timer)
__dynamic_array(u8, ppdu, len)
),
TP_fast_assign(
__assign_str(device);
__assign_str(driver);
__entry->len = len;
__entry->info = ar->pdev->timestamp.info;
__entry->sync_tstmp_lo_us = ar->pdev->timestamp.sync_timestamp_hi_us;
__entry->sync_tstmp_hi_us = ar->pdev->timestamp.sync_timestamp_lo_us;
__entry->mlo_offset_lo = ar->pdev->timestamp.mlo_offset_lo;
__entry->mlo_offset_hi = ar->pdev->timestamp.mlo_offset_hi;
__entry->mlo_offset_clks = ar->pdev->timestamp.mlo_offset_clks;
__entry->mlo_comp_clks = ar->pdev->timestamp.mlo_comp_clks;
__entry->mlo_comp_timer = ar->pdev->timestamp.mlo_comp_timer;
memcpy(__get_dynamic_array(ppdu), data, len);
),
TP_printk(
"%s %s ppdu len %d",
__get_str(driver),
__get_str(device),
__entry->len
)
);
Annotation
- Immediate include surface: `linux/tracepoint.h`, `core.h`, `trace/define_trace.h`.
- Detected declarations: `function Copyright`.
- Atlas domain: Driver Families / drivers/net.
- 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.