tools/testing/selftests/powerpc/pmu/sampling_tests/check_extended_reg_test.c
Source file repositories/reference/linux-study-clean/tools/testing/selftests/powerpc/pmu/sampling_tests/check_extended_reg_test.c
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/powerpc/pmu/sampling_tests/check_extended_reg_test.c- Extension
.c- Size
- 726 bytes
- Lines
- 36
- 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
stdio.hstdlib.h../event.hmisc.hutils.h
Detected Declarations
function check_extended_reg_testfunction main
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright 2024, Kajol Jain, IBM Corp.
*/
#include <stdio.h>
#include <stdlib.h>
#include "../event.h"
#include "misc.h"
#include "utils.h"
/*
* A perf sampling test to check extended
* reg support.
*/
static int check_extended_reg_test(void)
{
/* Check for platform support for the test */
SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_3_00));
/* Skip for Generic compat PMU */
SKIP_IF(check_for_generic_compat_pmu());
/* Check if platform supports extended regs */
platform_extended_mask = perf_get_platform_reg_mask();
FAIL_IF(check_extended_regs_support());
return 0;
}
int main(void)
{
return test_harness(check_extended_reg_test, "check_extended_reg_test");
}
Annotation
- Immediate include surface: `stdio.h`, `stdlib.h`, `../event.h`, `misc.h`, `utils.h`.
- Detected declarations: `function check_extended_reg_test`, `function main`.
- 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.