drivers/accel/ivpu/ivpu_trace.h
Source file repositories/reference/linux-study-clean/drivers/accel/ivpu/ivpu_trace.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/accel/ivpu/ivpu_trace.h- Extension
.h- Size
- 1976 bytes
- Lines
- 74
- Domain
- Driver Families
- Bucket
- drivers/accel
- 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.hivpu_drv.hivpu_job.hvpu_jsm_api.hivpu_jsm_msg.hivpu_ipc.htrace/define_trace.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#if !defined(__IVPU_TRACE_H__) || defined(TRACE_HEADER_MULTI_READ)
#define __IVPU_TRACE_H__
#include <linux/tracepoint.h>
#include "ivpu_drv.h"
#include "ivpu_job.h"
#include "vpu_jsm_api.h"
#include "ivpu_jsm_msg.h"
#include "ivpu_ipc.h"
#undef TRACE_SYSTEM
#define TRACE_SYSTEM vpu
#define TRACE_INCLUDE_FILE ivpu_trace
TRACE_EVENT(pm,
TP_PROTO(const char *event),
TP_ARGS(event),
TP_STRUCT__entry(__field(const char *, event)),
TP_fast_assign(__entry->event = event;),
TP_printk("%s", __entry->event)
);
TRACE_EVENT(job,
TP_PROTO(const char *event, struct ivpu_job *job),
TP_ARGS(event, job),
TP_STRUCT__entry(__field(const char *, event)
__field(u32, ctx_id)
__field(u32, engine_id)
__field(u32, job_id)
),
TP_fast_assign(__entry->event = event;
__entry->ctx_id = job->file_priv->ctx.id;
__entry->engine_id = job->engine_idx;
__entry->job_id = job->job_id;),
TP_printk("%s context:%d engine:%d job:%d",
__entry->event,
__entry->ctx_id,
__entry->engine_id,
__entry->job_id)
);
TRACE_EVENT(jsm,
TP_PROTO(const char *event, struct vpu_jsm_msg *msg),
TP_ARGS(event, msg),
TP_STRUCT__entry(__field(const char *, event)
__field(const char *, type)
__field(enum vpu_ipc_msg_status, status)
__field(u32, request_id)
__field(u32, result)
),
TP_fast_assign(__entry->event = event;
__entry->type = ivpu_jsm_msg_type_to_str(msg->type);
__entry->status = msg->status;
__entry->request_id = msg->request_id;
__entry->result = msg->result;),
TP_printk("%s type:%s, status:%#x, id:%#x, result:%#x",
__entry->event,
__entry->type,
__entry->status,
__entry->request_id,
__entry->result)
);
#endif /* __IVPU_TRACE_H__ */
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#include <trace/define_trace.h>
Annotation
- Immediate include surface: `linux/tracepoint.h`, `ivpu_drv.h`, `ivpu_job.h`, `vpu_jsm_api.h`, `ivpu_jsm_msg.h`, `ivpu_ipc.h`, `trace/define_trace.h`.
- Atlas domain: Driver Families / drivers/accel.
- 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.