tools/testing/selftests/powerpc/ptrace/ptrace-tar.h
Source file repositories/reference/linux-study-clean/tools/testing/selftests/powerpc/ptrace/ptrace-tar.h
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/powerpc/ptrace/ptrace-tar.h- Extension
.h- Size
- 1135 bytes
- Lines
- 47
- 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
- No C-style include directives detected by the generator.
Detected Declarations
function validate_tar_registers
Annotated Snippet
#define TAR_1 10
#define TAR_2 20
#define TAR_3 30
#define TAR_4 40
#define TAR_5 50
#define DSCR_1 100
#define DSCR_2 200
#define DSCR_3 300
#define DSCR_4 400
#define DSCR_5 500
#define PPR_1 0x4000000000000 /* or 31,31,31*/
#define PPR_2 0x8000000000000 /* or 1,1,1 */
#define PPR_3 0xc000000000000 /* or 6,6,6 */
#define PPR_4 0x10000000000000 /* or 2,2,2 */
char *user_read = "[User Read (Running)]";
char *user_write = "[User Write (Running)]";
char *ptrace_read_running = "[Ptrace Read (Running)]";
char *ptrace_write_running = "[Ptrace Write (Running)]";
char *ptrace_read_ckpt = "[Ptrace Read (Checkpointed)]";
char *ptrace_write_ckpt = "[Ptrace Write (Checkpointed)]";
int validate_tar_registers(unsigned long *reg, unsigned long tar,
unsigned long ppr, unsigned long dscr)
{
int match = 1;
if (reg[0] != tar)
match = 0;
if (reg[1] != ppr)
match = 0;
if (reg[2] != dscr)
match = 0;
if (!match)
return TEST_FAIL;
return TEST_PASS;
}
Annotation
- Detected declarations: `function validate_tar_registers`.
- 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.