From 10970013d9e1cdbdd041eaeedefa0bc388687f92 Mon Sep 17 00:00:00 2001 From: Jon Medhurst Date: Sun, 28 Aug 2011 16:52:14 +0100 Subject: [PATCH] --- yaml --- r: 270151 b: refs/heads/master c: 08aab447c56a5388cf0c768da476ad022f00fef8 h: refs/heads/master i: 270149: 81bb85491c8b27b8a507f96651ce709f87a7373c 270147: e5f88ac19ebf0634a8f46612af287fd21a008f14 270143: 751ef2c060e58b96ed71f39c546c010197c44b7a v: v3 --- [refs] | 2 +- trunk/arch/arm/kernel/kprobes-test.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 0cca44ad7b68..d1e8fb0cab7d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ce5af3bad0e03e94d01c002698ca6b2697b51836 +refs/heads/master: 08aab447c56a5388cf0c768da476ad022f00fef8 diff --git a/trunk/arch/arm/kernel/kprobes-test.c b/trunk/arch/arm/kernel/kprobes-test.c index e5740c7c64e5..e17cdd6d90d8 100644 --- a/trunk/arch/arm/kernel/kprobes-test.c +++ b/trunk/arch/arm/kernel/kprobes-test.c @@ -8,6 +8,27 @@ * published by the Free Software Foundation. */ +/* + * This file contains test code for ARM kprobes. + * + * The top level function run_all_tests() executes tests for all of the + * supported instruction sets: ARM, 16-bit Thumb, and 32-bit Thumb. These tests + * fall into two categories; run_api_tests() checks basic functionality of the + * kprobes API, and run_test_cases() is a comprehensive test for kprobes + * instruction decoding and simulation. + * + * run_test_cases() first checks the kprobes decoding table for self consistency + * (using table_test()) then executes a series of test cases for each of the CPU + * instruction forms. coverage_start() and coverage_end() are used to verify + * that these test cases cover all of the possible combinations of instructions + * described by the kprobes decoding tables. + * + * The individual test cases are in kprobes-test-arm.c and kprobes-test-thumb.c + * which use the macros defined in kprobes-test.h. The rest of this + * documentation will describe the operation of the framework used by these + * test cases. + */ + /* * TESTING METHODOLOGY * -------------------