diff options
| author | Jon Medhurst <tixy@yxit.co.uk> | 2011-08-28 11:52:14 -0400 |
|---|---|---|
| committer | Jon Medhurst <tixy@yxit.co.uk> | 2011-09-20 14:17:44 -0400 |
| commit | 08aab447c56a5388cf0c768da476ad022f00fef8 (patch) | |
| tree | 9760a037d3ac283b9985c03479b170c386920434 /arch/arm/kernel | |
| parent | ce5af3bad0e03e94d01c002698ca6b2697b51836 (diff) | |
ARM: kprobes: Add introductory comment to test code
Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Diffstat (limited to 'arch/arm/kernel')
| -rw-r--r-- | arch/arm/kernel/kprobes-test.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/kernel/kprobes-test.c b/arch/arm/kernel/kprobes-test.c index e5740c7c64e5..e17cdd6d90d8 100644 --- a/arch/arm/kernel/kprobes-test.c +++ b/arch/arm/kernel/kprobes-test.c | |||
| @@ -9,6 +9,27 @@ | |||
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | /* | 11 | /* |
| 12 | * This file contains test code for ARM kprobes. | ||
| 13 | * | ||
| 14 | * The top level function run_all_tests() executes tests for all of the | ||
| 15 | * supported instruction sets: ARM, 16-bit Thumb, and 32-bit Thumb. These tests | ||
| 16 | * fall into two categories; run_api_tests() checks basic functionality of the | ||
| 17 | * kprobes API, and run_test_cases() is a comprehensive test for kprobes | ||
| 18 | * instruction decoding and simulation. | ||
| 19 | * | ||
| 20 | * run_test_cases() first checks the kprobes decoding table for self consistency | ||
| 21 | * (using table_test()) then executes a series of test cases for each of the CPU | ||
| 22 | * instruction forms. coverage_start() and coverage_end() are used to verify | ||
| 23 | * that these test cases cover all of the possible combinations of instructions | ||
| 24 | * described by the kprobes decoding tables. | ||
| 25 | * | ||
| 26 | * The individual test cases are in kprobes-test-arm.c and kprobes-test-thumb.c | ||
| 27 | * which use the macros defined in kprobes-test.h. The rest of this | ||
| 28 | * documentation will describe the operation of the framework used by these | ||
| 29 | * test cases. | ||
| 30 | */ | ||
| 31 | |||
| 32 | /* | ||
| 12 | * TESTING METHODOLOGY | 33 | * TESTING METHODOLOGY |
| 13 | * ------------------- | 34 | * ------------------- |
| 14 | * | 35 | * |
