summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/seven.stp
blob: 2ac6bcd7c5beeec48b4df2867280a57b325c8582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! stap -p4

# this tests whether integers, pointers, and enums can be 
# logged (PR 1258)


# first: enums and ints

probe kernel.function("find_pid") 
{
  log ("find_pid (" . string($type) . ","
                    . string($nr) . ")")
}

# second: opaque pointers and enums

probe kernel.function("detach_pid") 
{
  log ("detach_pid (" . hexstring($task) . ","
              	      . string($type) . ")")
}