tools/perf/util/perf_event_attr_fprintf.c
Source file repositories/reference/linux-study-clean/tools/perf/util/perf_event_attr_fprintf.c
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/util/perf_event_attr_fprintf.c- Extension
.c- Size
- 11706 bytes
- Lines
- 368
- 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
inttypes.hstdio.hstdlib.hstdbool.hlinux/kernel.hlinux/types.hlinux/perf_event.hutil/evsel_fprintf.hutil/pmu.hutil/pmus.htrace-event.h
Detected Declarations
struct bit_namesfunction __p_bitsfunction __p_sample_typefunction __p_branch_sample_typefunction __p_read_formatfunction print_id_unsignedfunction print_id_hexfunction __p_type_idfunction __p_config_hw_idfunction __p_config_sw_idfunction __p_config_hw_cache_idfunction __p_config_tracepoint_idfunction __p_config_idfunction perf_event_attr__fprintf
Annotated Snippet
PRINT_ATTRf(context_switch, p_unsigned);
PRINT_ATTRf(write_backward, p_unsigned);
PRINT_ATTRf(namespaces, p_unsigned);
PRINT_ATTRf(ksymbol, p_unsigned);
PRINT_ATTRf(bpf_event, p_unsigned);
PRINT_ATTRf(aux_output, p_unsigned);
PRINT_ATTRf(cgroup, p_unsigned);
PRINT_ATTRf(text_poke, p_unsigned);
PRINT_ATTRf(build_id, p_unsigned);
PRINT_ATTRf(inherit_thread, p_unsigned);
PRINT_ATTRf(remove_on_exec, p_unsigned);
PRINT_ATTRf(sigtrap, p_unsigned);
PRINT_ATTRf(defer_callchain, p_unsigned);
PRINT_ATTRf(defer_output, p_unsigned);
PRINT_ATTRn("{ wakeup_events, wakeup_watermark }", wakeup_events, p_unsigned, false);
PRINT_ATTRf(bp_type, p_unsigned);
PRINT_ATTRn("{ bp_addr, config1 }", bp_addr, p_hex, false);
PRINT_ATTRn("{ bp_len, config2 }", bp_len, p_hex, false);
PRINT_ATTRf(branch_sample_type, p_branch_sample_type);
PRINT_ATTRf(sample_regs_user, p_hex);
PRINT_ATTRf(sample_stack_user, p_unsigned);
PRINT_ATTRf(clockid, p_signed);
PRINT_ATTRf(sample_regs_intr, p_hex);
PRINT_ATTRf(aux_watermark, p_unsigned);
PRINT_ATTRf(sample_max_stack, p_unsigned);
PRINT_ATTRf(aux_sample_size, p_unsigned);
PRINT_ATTRf(sig_data, p_unsigned);
PRINT_ATTRf(aux_start_paused, p_unsigned);
PRINT_ATTRf(aux_pause, p_unsigned);
PRINT_ATTRf(aux_resume, p_unsigned);
return ret;
}
Annotation
- Immediate include surface: `inttypes.h`, `stdio.h`, `stdlib.h`, `stdbool.h`, `linux/kernel.h`, `linux/types.h`, `linux/perf_event.h`, `util/evsel_fprintf.h`.
- Detected declarations: `struct bit_names`, `function __p_bits`, `function __p_sample_type`, `function __p_branch_sample_type`, `function __p_read_format`, `function print_id_unsigned`, `function print_id_hex`, `function __p_type_id`, `function __p_config_hw_id`, `function __p_config_sw_id`.
- 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.