arch/powerpc/platforms/powernv/vas-trace.h
Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/powernv/vas-trace.h
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/platforms/powernv/vas-trace.h- Extension
.h- Size
- 2660 bytes
- Lines
- 114
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/tracepoint.hlinux/sched.hasm/vas.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 vas
#if !defined(_VAS_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
#define _VAS_TRACE_H
#include <linux/tracepoint.h>
#include <linux/sched.h>
#include <asm/vas.h>
TRACE_EVENT( vas_rx_win_open,
TP_PROTO(struct task_struct *tsk,
int vasid,
int cop,
struct vas_rx_win_attr *rxattr),
TP_ARGS(tsk, vasid, cop, rxattr),
TP_STRUCT__entry(
__field(struct task_struct *, tsk)
__field(int, pid)
__field(int, cop)
__field(int, vasid)
__field(struct vas_rx_win_attr *, rxattr)
__field(int, lnotify_lpid)
__field(int, lnotify_pid)
__field(int, lnotify_tid)
),
TP_fast_assign(
__entry->pid = tsk->pid;
__entry->vasid = vasid;
__entry->cop = cop;
__entry->lnotify_lpid = rxattr->lnotify_lpid;
__entry->lnotify_pid = rxattr->lnotify_pid;
__entry->lnotify_tid = rxattr->lnotify_tid;
),
TP_printk("pid=%d, vasid=%d, cop=%d, lpid=%d, pid=%d, tid=%d",
__entry->pid, __entry->vasid, __entry->cop,
__entry->lnotify_lpid, __entry->lnotify_pid,
__entry->lnotify_tid)
);
TRACE_EVENT( vas_tx_win_open,
TP_PROTO(struct task_struct *tsk,
int vasid,
int cop,
struct vas_tx_win_attr *txattr),
TP_ARGS(tsk, vasid, cop, txattr),
TP_STRUCT__entry(
__field(struct task_struct *, tsk)
__field(int, pid)
__field(int, cop)
__field(int, vasid)
__field(struct vas_tx_win_attr *, txattr)
__field(int, lpid)
__field(int, pidr)
),
TP_fast_assign(
__entry->pid = tsk->pid;
__entry->vasid = vasid;
__entry->cop = cop;
__entry->lpid = txattr->lpid;
__entry->pidr = txattr->pidr;
),
TP_printk("pid=%d, vasid=%d, cop=%d, lpid=%d, pidr=%d",
__entry->pid, __entry->vasid, __entry->cop,
__entry->lpid, __entry->pidr)
);
TRACE_EVENT( vas_paste_crb,
TP_PROTO(struct task_struct *tsk,
struct pnv_vas_window *win),
TP_ARGS(tsk, win),
TP_STRUCT__entry(
__field(struct task_struct *, tsk)
__field(struct vas_window *, win)
__field(int, pid)
__field(int, vasid)
__field(int, winid)
Annotation
- Immediate include surface: `linux/tracepoint.h`, `linux/sched.h`, `asm/vas.h`, `trace/define_trace.h`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.