]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ARM: kprobes: Add introductory comment to test code
authorJon Medhurst <tixy@yxit.co.uk>
Sun, 28 Aug 2011 15:52:14 +0000 (16:52 +0100)
committerJon Medhurst <tixy@yxit.co.uk>
Tue, 20 Sep 2011 18:17:44 +0000 (18:17 +0000)
Signed-off-by: Jon Medhurst <tixy@yxit.co.uk>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/kernel/kprobes-test.c

index e5740c7c64e5a8e6095bef8f0e7a6071f51c590c..e17cdd6d90d8734553835e5b49bd87027226c1ad 100644 (file)
@@ -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
  * -------------------