Changeset 381fc99 in rtems for doc/networking/testing.t
- Timestamp:
- 02/09/99 20:30:34 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ba0bd42
- Parents:
- 5bb77c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/networking/testing.t
r5bb77c4 r381fc99 46 46 @item Performance measurements are not impacted by other systems on 47 47 the network. 48 49 @end itemize 50 51 @section Debug Output 52 53 There are a number of sources of debug output that can be enabled 54 to aid in tracing the behavior of the network stack. The following 55 is a list of them: 56 57 @itemize @bullet 58 59 @item mbuf activity 60 61 There are commented out calls to @code{printf} in the file 62 @code{sys/mbuf.h} in the network stack code. Uncommenting 63 these lines results in output when mbuf's are allocated 64 and freed. This is very useful for findind memory leaks. 65 66 @item TX and RX queuing 67 68 There are commented out calls to @code{printf} in the file 69 @code{net/if.h} in the network stack code. Uncommenting 70 these lines results in output when packets are placed 71 on or removed from one of the transmit or receive packet 72 queues. These queues can be viewed as the boundary line 73 between a device driver and the network stack. If the 74 network stack is enqueuing packets to be transmitted that 75 the device driver is not dequeuing, then that is indicative 76 of a problem in the transmit side of the device driver. 77 Conversely, if the device driver is enqueueing packets 78 as it receives them (via a call to @code{ether_input}) and 79 they are not being dequeued by the network stack, 80 then there is a problem. This situation would likely indicate 81 that the network server task is not running. 82 83 @item TCP state transitions 84 85 In the unlikely event that one would actually want to see 86 TCP state transitions, the @code{TCPDEBUG} macro can be defined 87 in the file @code{opt_tcpdebug.h}. This results in the routine 88 @code{tcp_trace()} being called by the network stack and 89 the state transitions logged into the @code{tcp_debug} data 90 structure. If the variable @code{tcpconsdebug} in the file 91 @code{netinet/tcp_debug.c} is set to 1, then the state transitions 92 will also be printed to the console. 48 93 49 94 @end itemize
Note: See TracChangeset
for help on using the changeset viewer.