tools/perf/arch/powerpc/util/auxtrace.c
Source file repositories/reference/linux-study-clean/tools/perf/arch/powerpc/util/auxtrace.c
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/arch/powerpc/util/auxtrace.c- Extension
.c- Size
- 2313 bytes
- Lines
- 105
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
errno.hlinux/kernel.hlinux/types.hlinux/string.hlinux/zalloc.h../../util/evlist.h../../util/debug.h../../util/auxtrace.h../../util/powerpc-vpadtl.h../../util/record.hinternal/lib.h
Detected Declarations
function powerpc_vpadtl_recording_optionsfunction powerpc_vpadtl_info_priv_sizefunction powerpc_vpadtl_info_fillfunction powerpc_vpadtl_freefunction powerpc_vpadtl_referencefunction evlist__for_each_entry
Annotated Snippet
if (strstarts(pos->name, "vpa_dtl")) {
found = 1;
pos->needs_auxtrace_mmap = true;
break;
}
}
if (!found)
return NULL;
/*
* To obtain the auxtrace buffer file descriptor, the auxtrace event
* must come first.
*/
evlist__to_front(pos->evlist, pos);
aux = zalloc(sizeof(*aux));
if (aux == NULL) {
pr_debug("aux record is NULL\n");
*err = -ENOMEM;
return NULL;
}
aux->recording_options = powerpc_vpadtl_recording_options;
aux->info_priv_size = powerpc_vpadtl_info_priv_size;
aux->info_fill = powerpc_vpadtl_info_fill;
aux->free = powerpc_vpadtl_free;
aux->reference = powerpc_vpadtl_reference;
return aux;
}
Annotation
- Immediate include surface: `errno.h`, `linux/kernel.h`, `linux/types.h`, `linux/string.h`, `linux/zalloc.h`, `../../util/evlist.h`, `../../util/debug.h`, `../../util/auxtrace.h`.
- Detected declarations: `function powerpc_vpadtl_recording_options`, `function powerpc_vpadtl_info_priv_size`, `function powerpc_vpadtl_info_fill`, `function powerpc_vpadtl_free`, `function powerpc_vpadtl_reference`, `function evlist__for_each_entry`.
- Atlas domain: Support Tooling And Documentation / tools.
- 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.