tools/testing/selftests/powerpc/dexcr/dexcr_test.c

Source file repositories/reference/linux-study-clean/tools/testing/selftests/powerpc/dexcr/dexcr_test.c

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/powerpc/dexcr/dexcr_test.c
Extension
.c
Size
7807 bytes
Lines
216
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.

Dependency Surface

Detected Declarations

Annotated Snippet

if (argc == 3 && !strcmp(argv[0], "dexcr_prctl_onexec_test_child")) {
			unsigned long which;

			err = parse_ulong(argv[1], strlen(argv[1]), &which, 10);
			FAIL_IF_MSG(err, "failed to parse which value for child");

			return dexcr_prctl_onexec_test_child(which, argv[2]);
		}

		FAIL_IF_MSG(true, "unknown test case");
	}

	/*
	 * Otherwise we are the main test invocation and run the full suite
	 */
	err |= test_harness(dexcr_prctl_ibrtpd_test, "dexcr_prctl_ibrtpd");
	err |= test_harness(dexcr_prctl_srapd_test, "dexcr_prctl_srapd");
	err |= test_harness(dexcr_prctl_nphie_test, "dexcr_prctl_nphie");

	return err;
}

Annotation

Implementation Notes