File: dbug.stp

package info (click to toggle)
systemtap 5.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 47,964 kB
  • sloc: cpp: 80,838; ansic: 54,757; xml: 49,725; exp: 43,665; sh: 11,527; 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 (26 lines) | stat: -rw-r--r-- 1,159 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
# Note that normally '__FUNCTION__' and '__LINE__' are passed to
# _stp_dbug(), but since we need consistent output for testing
# purposes, we've faked them out.

probe begin
{
	%{ { _stp_dbug("begin", 1, "debug line 1\n"); 0; } %}
	%{ { _stp_dbug("begin", 2, "debug line 2\n"); 0; } %}
	%{ { _stp_dbug("begin", 3, "debug line 3\n"); 0; } %}
	%{ { _stp_dbug("begin", 4, "debug line 4\n"); 0; } %}
	%{ { _stp_dbug("begin", 5, "debug line 5\n"); 0; } %}
	%{ { _stp_dbug("begin", 6, "debug line 6\n"); 0; } %}
	%{ { _stp_dbug("begin", 7, "debug line 7\n"); 0; } %}
	%{ { _stp_dbug("begin", 8, "debug line 8\n"); 0; } %}
	%{ { _stp_dbug("begin", 9, "debug line 9\n"); 0; } %}
	%{ { _stp_dbug("begin", 10, "debug line 10\n"); 0; } %}
	%{ { _stp_dbug("begin", 11, "debug line 11\n"); 0; } %}
	%{ { _stp_dbug("begin", 12, "debug line 12\n"); 0; } %}
	%{ { _stp_dbug("begin", 13, "debug line 13\n"); 0; } %}
	%{ { _stp_dbug("begin", 14, "debug line 14\n"); 0; } %}
	%{ { _stp_dbug("begin", 15, "debug line 15\n"); 0; } %}
	%{ { _stp_dbug("begin", 16, "debug line 16\n"); 0; } %}
	%{ { _stp_dbug("begin", 17, "debug line 17\n"); 0; } %}
	warn("finished\n")	
	exit()
}