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

# this tests access to members of a target global variable
# (PR 1191)

probe kernel.function("pipe_write")
{
%( kernel_v >= "2.6.27" %?
	printf("0x%x\n", $write_pipefifo_fops->llseek)
%:
	printf("0x%x\n", $write_fifo_fops->llseek)
%)
}

# PR10000: We're looking for *some* module function that has a nearby global variable in scope
# XXX: See PR4096
probe module("nfs").function("nfs_create_client") !, module("nfs").function("nfs_init_client") !,
	kernel.function("nfs_fsync_dir") {
	println(kernel_string($nfs_program->name))
}

probe timer.s(5) { exit() }