tools/perf/util/kvm-stat-arch/kvm-stat-powerpc.c
Source file repositories/reference/linux-study-clean/tools/perf/util/kvm-stat-arch/kvm-stat-powerpc.c
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/util/kvm-stat-arch/kvm-stat-powerpc.c- Extension
.c- Size
- 5275 bytes
- Lines
- 229
- 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.h../kvm-stat.h../parse-events.h../debug.h../evsel.h../evlist.h../pmus.hbook3s_hv_exits.hbook3s_hcalls.hsubcmd/parse-options.h
Detected Declarations
function hcall_event_get_keyfunction hcall_event_endfunction hcall_event_beginfunction hcall_event_decode_keyfunction is_tracepoint_availablefunction ppc__setup_book3s_hvfunction ppc__setup_kvm_tpfunction __setup_kvm_events_tp_powerpcfunction __cpu_isa_init_powerpcfunction __kvm_add_default_arch_event_powerpc
Annotated Snippet
if (perf_pmus__have_event("trace_imc", "trace_cycles")) {
argv[j++] = strdup("-e");
argv[j++] = strdup("trace_imc/trace_cycles/");
*argc += 2;
} else {
free(tmp);
return -EINVAL;
}
}
free(tmp);
return 0;
}
const char * const *__kvm_events_tp_powerpc(void)
{
return __kvm_events_tp;
}
const struct kvm_reg_events_ops *__kvm_reg_events_ops_powerpc(void)
{
return __kvm_reg_events_ops;
}
const char * const *__kvm_skip_events_powerpc(void)
{
return __kvm_skip_events;
}
Annotation
- Immediate include surface: `errno.h`, `../kvm-stat.h`, `../parse-events.h`, `../debug.h`, `../evsel.h`, `../evlist.h`, `../pmus.h`, `book3s_hv_exits.h`.
- Detected declarations: `function hcall_event_get_key`, `function hcall_event_end`, `function hcall_event_begin`, `function hcall_event_decode_key`, `function is_tracepoint_available`, `function ppc__setup_book3s_hv`, `function ppc__setup_kvm_tp`, `function __setup_kvm_events_tp_powerpc`, `function __cpu_isa_init_powerpc`, `function __kvm_add_default_arch_event_powerpc`.
- 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.