Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/enum.stp

raw
1 probe process.function("main")
2 {
3 /* file scope file scope */
4 printf("\"sixteen_power_8\" is %#lx\n\"C\" is %c\n", $sixteen_power_8, $C)
5 }
6
7 probe process.function("main").label("RETURN")
8 {
9 /* func block scope func block scope struct scope struct scope */
10 printf("\"c\" is %c\n\"sharp\" is %c\n\"astruct->third\" is %d\n\"astruct->ordinal\" is %d\n",
11 $c, $sharp, $astruct->third, $astruct->ordinal)
12 }
13
14 probe process.function("main").label("END_BLOCK")
15 {
16 /* lex block scope lex block scope */
17 printf("\"green\" is %d\n\"fourth\" is %d\n", $green,$fourth)
18 }
19
20 probe process(@1).function("test_enum")
21 {
22 /* extern so file scope */
23 printf("\"mexico\" is %d\n",@var("mexico",@1))
24 }