doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/tls1.stp
raw| 1 | global probe_itw=0 |
| 2 | |
| 3 | probe process(@1).function("increase_tls").label("stp_probe") |
| 4 | { |
| 5 | printf("In Stap increase_tls: tls1=%#lx tls2=%#lx\n", @var("tls1"), @var("tls2")) |
| 6 | } |
| 7 | |
| 8 | %(@2 != "IGNORE" %? |
| 9 | probe process(@2).function("increase_tls_worker").label("stp_probe") |
| 10 | { |
| 11 | printf("In Stap worker: tls1=%#lx tls2=%#lx\n", @var("tls1",@1), @var("tls2",@1)) |
| 12 | } |
| 13 | %) |
| 14 | |
| 15 | probe process("tls1.x").function("main").return |
| 16 | { |
| 17 | printf("In Stap: tls=%d\n", @var("tls")) |
| 18 | } |