File: context-embedded.stp

package info (click to toggle)
systemtap 4.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 39,000 kB
  • sloc: cpp: 78,785; ansic: 62,419; xml: 49,443; exp: 42,735; sh: 11,254; python: 3,062; perl: 2,252; tcl: 1,305; makefile: 1,072; lisp: 105; awk: 101; asm: 91; java: 56; sed: 16
file content (33 lines) | stat: -rwxr-xr-x 957 bytes parent folder | download | duplicates (9)
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
#! stap -p4

probe begin {
	print_regs()
	printf("execname is %s\n", execname())
	printf("pid is %d\n",pid())
	printf("tid is %d\n", tid())
	printf("ppid is %d\n", ppid())
	printf("pgrp is %d\n", pgrp())
	printf("sid is %d\n", sid())
	printf("pexecname is %s\n", pexecname())
	printf("gid is %d\n", gid())
	printf("egid is %d\n", egid())
	printf("uid is %d\n", uid())
	printf("euid is %d\n", euid())
	printf("%d\n", is_myproc() 
                       %( systemtap_v <= "1.4" %? + cpuid() %)
                       + cpu())
	printf("pp is %s\n", pp())
	printf("pn is %s\n", pn())
	printf("%d\n", registers_valid() + user_mode() + is_return()
	       + target())
	printf("%s\n", module_name())
	printf("%d\n", stp_pid() + stack_size() + stack_used()
	       + stack_unused())
	printf("addr: 0x%x\n", addr())
	printf("uaddr: 0x%x\n", uaddr())
	log(cmdline_args(1, 1, "bar"))
	log(cmdline_arg(0))
	log(cmdline_str())
	log(env_var("TERM"))
	log(probe_type())
}