1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>Chapter 7. kgdb Test Suite</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Using kgdb, kdb and the kernel debugger internals"><link rel="up" href="index.html" title="Using kgdb, kdb and the kernel debugger internals"><link rel="prev" href="ch06s02.html" title="Running kdb commands from gdb"><link rel="next" href="CommonBackEndReq.html" title="Chapter 8. Kernel Debugger Internals"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 7. kgdb Test Suite</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch06s02.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="CommonBackEndReq.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="KGDBTestSuite"></a>Chapter 7. kgdb Test Suite</h1></div></div></div><p> 2 When kgdb is enabled in the kernel config you can also elect to 3 enable the config parameter KGDB_TESTS. Turning this on will 4 enable a special kgdb I/O module which is designed to test the 5 kgdb internal functions. 6 </p><p> 7 The kgdb tests are mainly intended for developers to test the kgdb 8 internals as well as a tool for developing a new kgdb architecture 9 specific implementation. These tests are not really for end users 10 of the Linux kernel. The primary source of documentation would be 11 to look in the drivers/misc/kgdbts.c file. 12 </p><p> 13 The kgdb test suite can also be configured at compile time to run 14 the core set of tests by setting the kernel config parameter 15 KGDB_TESTS_ON_BOOT. This particular option is aimed at automated 16 regression testing and does not require modifying the kernel boot 17 config arguments. If this is turned on, the kgdb test suite can 18 be disabled by specifying "kgdbts=" as a kernel boot argument. 19 </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch06s02.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="CommonBackEndReq.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Running kdb commands from gdb </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 8. Kernel Debugger Internals</td></tr></table></div></body></html> 20