tools/perf/arch/s390/util/auxtrace.c
Source file repositories/reference/linux-study-clean/tools/perf/arch/s390/util/auxtrace.c
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/arch/s390/util/auxtrace.c- Extension
.c- Size
- 3087 bytes
- Lines
- 126
- 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.hstdbool.hstdlib.hlinux/kernel.hlinux/types.hlinux/bitops.hlinux/log2.hlinux/zalloc.h../../util/evlist.h../../util/auxtrace.h../../util/evsel.h../../util/record.h
Detected Declarations
function cpumsf_freefunction cpumsf_info_priv_sizefunction cpumsf_info_fillfunction cpumsf_referencefunction cpumsf_recording_optionsfunction cpumsf_parse_snapshot_optionsfunction evlist__for_each_entry
Annotated Snippet
if (pos->core.attr.config == PERF_EVENT_CPUM_SF_DIAG) {
diagnose = 1;
pos->needs_auxtrace_mmap = true;
break;
}
}
if (!diagnose)
return NULL;
/* sampling in diagnose mode. alloc aux buffer */
aux = zalloc(sizeof(*aux));
if (aux == NULL) {
*err = -ENOMEM;
return NULL;
}
aux->parse_snapshot_options = cpumsf_parse_snapshot_options;
aux->recording_options = cpumsf_recording_options;
aux->info_priv_size = cpumsf_info_priv_size;
aux->info_fill = cpumsf_info_fill;
aux->free = cpumsf_free;
aux->reference = cpumsf_reference;
return aux;
}
Annotation
- Immediate include surface: `errno.h`, `stdbool.h`, `stdlib.h`, `linux/kernel.h`, `linux/types.h`, `linux/bitops.h`, `linux/log2.h`, `linux/zalloc.h`.
- Detected declarations: `function cpumsf_free`, `function cpumsf_info_priv_size`, `function cpumsf_info_fill`, `function cpumsf_reference`, `function cpumsf_recording_options`, `function cpumsf_parse_snapshot_options`, `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.