KSSL debugging » KSSL debugging suite
en

KSSL debugging suite

KSSL debugging suite is set of scripts written primarily for root causing bugs in KSSL but it can be used for observing KSSL behavior down to tiny details.
The suite was conceived during the work on CR 6614159 which was hard to track down so better observability was needed. The suite itself relies on the presence of KSSL dtrace SDT and FBT probes in the kernel. See the debugging section for more information about the probes.

Download

The test suite tarball is available in the Files section. The distribution file contains complete documentation for the suite.

Examples

For instance, the read_preempts.d script can be used to watch all read() syscalls issued by httpd process which are preempted. In the case such event happens the output will be similar to the following:

    0   9558                       read:entry read by httpd
    0   9558                       read:entry read by httpd
    0  46803                  preempt:preempt pid = 1010, read = 1
              unix`preempt+0x94
              unix`kpreempt+0xd0
              unix`mutex_vector_exit+0x78
              kssl`kssl_handle_record+0x158
              sockfs`strsock_kssl_input+0x14
              genunix`kstrgetmsg+0x5a8
              sockfs`sotpi_recvmsg+0x264
              sockfs`socktpi_read+0x4c
              genunix`fop_read+0x48
              genunix`read+0x1fc
              unix`syscall_trap32+0xcc

Tags:
Created by admin on 2009/10/26 12:15
Last modified by Vladimir Kotal on 2010/01/06 09:26

Collectives


XWiki Enterprise 2.7.1.34853 - Documentation