File: README

package info (click to toggle)
systemtap 5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 47,556 kB
  • sloc: cpp: 81,117; ansic: 54,933; xml: 49,795; exp: 43,595; sh: 11,526; python: 5,003; perl: 2,252; tcl: 1,312; makefile: 1,006; javascript: 149; lisp: 105; awk: 101; asm: 91; java: 70; sed: 16
file content (44 lines) | stat: -rw-r--r-- 1,641 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
systemtap monitor mode manual testing guide

Requirements:

Systemtap must be compiled with json-c and ncurses development
libraries present for this feature to work.

Testing steps:

1. Fire up a basic script:
  # stap --monitor -ve 'global x = 0; probe timer.s(1) {println(x++)}'

  - Check that the top window displays the module status and the bottom
    window contains the module output. Make sure that the status window
    displays the following information: uptime, uid, memory, module name,
    the global variable x and its current value, and the current list of
    probes.

  - Manually resize the terminal to check that each of the ncurses windows
    are also resized to take up 50% of the height of the terminal.

  - Test all of the commands listed in the help page by pressing h:
    - Pressing r should reset the global variable x to 0, the module
      output should change too.

    - Pressing s repeatedly should change the sorting attribute and
      reorder the probe list accordingly.

    - Pressing t will bring up the prompt to enter a probe index to
      toggle. Enter the index for the timer probe we have created
      and the probe's state should change to "off"; the module output
      should also stop. Toggle to probe again to reactivate it.

    - Pressing the u/d/pageup/pagedown keys should scroll the module
      output.

    - Pressing the j/k/down/up keys should scroll the probe list.

    - Press q to quit the script and make sure nothing crashes.

2. Fire up a script with high activity:
  # stap --monitor -ve 'probe vfs.read {println(1)}'

  - Make sure nothing crashes and exit the script.