Debian Codegraph @

testsuite/buildok/context-embedded.stp

raw
1 #! stap -p4
2
3 probe begin {
4 print_regs()
5 printf("execname is %s\n", execname())
6 printf("pid is %d\n",pid())
7 printf("tid is %d\n", tid())
8 printf("ppid is %d\n", ppid())
9 printf("pgrp is %d\n", pgrp())
10 printf("sid is %d\n", sid())
11 printf("pexecname is %s\n", pexecname())
12 printf("gid is %d\n", gid())
13 printf("egid is %d\n", egid())
14 printf("uid is %d\n", uid())
15 printf("euid is %d\n", euid())
16 printf("%d\n", is_myproc()
17 %( systemtap_v <= "1.4" %? + cpuid() %)
18 + cpu())
19 printf("pp is %s\n", pp())
20 printf("pn is %s\n", pn())
21 printf("%d\n", registers_valid() + user_mode() + is_return()
22 + target())
23 printf("%s\n", module_name())
24 printf("%d\n", stp_pid() + stack_size() + stack_used()
25 + stack_unused())
26 printf("addr: 0x%x\n", addr())
27 printf("uaddr: 0x%x\n", uaddr())
28 log(cmdline_args(1, 1, "bar"))
29 log(cmdline_arg(0))
30 log(cmdline_str())
31 log(env_var("TERM"))
32 log(probe_type())
33 }