include/trace/events/dma_buf.h
Source file repositories/reference/linux-study-clean/include/trace/events/dma_buf.h
File Facts
- System
- Linux kernel
- Corpus path
include/trace/events/dma_buf.h- Extension
.h- Size
- 3232 bytes
- Lines
- 160
- 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/dma-buf.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 dma_buf
#if !defined(_TRACE_DMA_BUF_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_DMA_BUF_H
#include <linux/dma-buf.h>
#include <linux/tracepoint.h>
DECLARE_EVENT_CLASS(dma_buf,
TP_PROTO(struct dma_buf *dmabuf),
TP_ARGS(dmabuf),
TP_STRUCT__entry(
__string( exp_name, dmabuf->exp_name)
__field( size_t, size)
__field( ino_t, ino)
),
TP_fast_assign(
__assign_str(exp_name);
__entry->size = dmabuf->size;
__entry->ino = dmabuf->file->f_inode->i_ino;
),
TP_printk("exp_name=%s size=%zu ino=%lu",
__get_str(exp_name),
__entry->size,
__entry->ino)
);
DECLARE_EVENT_CLASS(dma_buf_attach_dev,
TP_PROTO(struct dma_buf *dmabuf, struct dma_buf_attachment *attach,
bool is_dynamic, struct device *dev),
TP_ARGS(dmabuf, attach, is_dynamic, dev),
TP_STRUCT__entry(
__string( dev_name, dev_name(dev))
__string( exp_name, dmabuf->exp_name)
__field( size_t, size)
__field( ino_t, ino)
__field( struct dma_buf_attachment *, attach)
__field( bool, is_dynamic)
),
TP_fast_assign(
__assign_str(dev_name);
__assign_str(exp_name);
__entry->size = dmabuf->size;
__entry->ino = dmabuf->file->f_inode->i_ino;
__entry->is_dynamic = is_dynamic;
__entry->attach = attach;
),
TP_printk("exp_name=%s size=%zu ino=%lu attachment:%p is_dynamic=%d dev_name=%s",
__get_str(exp_name),
__entry->size,
__entry->ino,
__entry->attach,
__entry->is_dynamic,
__get_str(dev_name))
);
DECLARE_EVENT_CLASS(dma_buf_fd,
TP_PROTO(struct dma_buf *dmabuf, int fd),
TP_ARGS(dmabuf, fd),
TP_STRUCT__entry(
__string( exp_name, dmabuf->exp_name)
__field( size_t, size)
__field( ino_t, ino)
__field( int, fd)
),
TP_fast_assign(
__assign_str(exp_name);
__entry->size = dmabuf->size;
__entry->ino = dmabuf->file->f_inode->i_ino;
__entry->fd = fd;
),
TP_printk("exp_name=%s size=%zu ino=%lu fd=%d",
__get_str(exp_name),
__entry->size,
Annotation
- Immediate include surface: `linux/dma-buf.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.