tools/perf/util/perf-regs-arch/perf_regs_arm.c
Source file repositories/reference/linux-study-clean/tools/perf/util/perf-regs-arch/perf_regs_arm.c
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/util/perf-regs-arch/perf_regs_arm.c- Extension
.c- Size
- 1032 bytes
- Lines
- 62
- 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.
Dependency Surface
../perf_regs.h../../arch/arm/include/perf_regs.h
Detected Declarations
function __perf_reg_mask_armfunction __perf_reg_ip_armfunction __perf_reg_sp_arm
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
#include "../perf_regs.h"
#include "../../arch/arm/include/perf_regs.h"
uint64_t __perf_reg_mask_arm(bool intr __maybe_unused)
{
return PERF_REGS_MASK;
}
const char *__perf_reg_name_arm(int id)
{
switch (id) {
case PERF_REG_ARM_R0:
return "r0";
case PERF_REG_ARM_R1:
return "r1";
case PERF_REG_ARM_R2:
return "r2";
case PERF_REG_ARM_R3:
return "r3";
case PERF_REG_ARM_R4:
return "r4";
case PERF_REG_ARM_R5:
return "r5";
case PERF_REG_ARM_R6:
return "r6";
case PERF_REG_ARM_R7:
return "r7";
case PERF_REG_ARM_R8:
return "r8";
case PERF_REG_ARM_R9:
return "r9";
case PERF_REG_ARM_R10:
return "r10";
case PERF_REG_ARM_FP:
return "fp";
case PERF_REG_ARM_IP:
return "ip";
case PERF_REG_ARM_SP:
return "sp";
case PERF_REG_ARM_LR:
return "lr";
case PERF_REG_ARM_PC:
return "pc";
default:
return NULL;
}
return NULL;
}
uint64_t __perf_reg_ip_arm(void)
{
return PERF_REG_ARM_PC;
}
uint64_t __perf_reg_sp_arm(void)
{
return PERF_REG_ARM_SP;
}
Annotation
- Immediate include surface: `../perf_regs.h`, `../../arch/arm/include/perf_regs.h`.
- Detected declarations: `function __perf_reg_mask_arm`, `function __perf_reg_ip_arm`, `function __perf_reg_sp_arm`.
- 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.