summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/symbols.stp
blob: 040c34446392026a62617b222dfcab4e0db37acc (plain)
1
2
3
4
5
6
7
8
9
10
11
#! stap

probe begin {
  # a spectrum of figures for 32-bit x86
  print_stack ("0x0 0x80000000 0xc0000000 0xe0000000 0xf0000000 0xffffffff")
  # for x86_64
  print_stack ("0xffffffff00000000 0xffffffff80000000 0xffffffff80120000")
  print_stack ("0xffffffff88000000 0xffffffffffffffff")
  # ... for a total of 11 lines, which symbols.exp counts
  exit ()
}