aboutsummaryrefslogtreecommitdiffstats
path: root/sys/netbsd/dev_tprof.txt
blob: f360f3f7b25157aa619ba2235fdd62ae9f0ecb60 (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
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2018 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
# Autogenerated by sys2syz

include <dev/tprof/tprof_ioctl.h>

resource fd_tprof[fd]

openat$tprof(fd const[AT_FDCWD], file ptr[in, string["/dev/tprof"]], flags flags[open_flags], mode const[0]) fd_tprof

ioctl$TPROF_IOC_GETINFO(fd fd_tprof, cmd const[TPROF_IOC_GETINFO], arg ptr[out, tprof_info])
ioctl$TPROF_IOC_START(fd fd_tprof, cmd const[TPROF_IOC_START], arg ptr[in, tprof_param])
ioctl$TPROF_IOC_STOP(fd fd_tprof, cmd const[TPROF_IOC_STOP])
ioctl$TPROF_IOC_GETSTAT(fd fd_tprof, cmd const[TPROF_IOC_GETSTAT], arg ptr[out, tprof_stat])

tprof_info {
	ti_version	int32
	ti_ident	int32
}

tprof_param {
	p_event	intptr
	p_unit	intptr
	p_flags	flags[p_flags_flag, intptr]
}

tprof_stat {
	ts_sample		intptr
	ts_overflow		intptr
	ts_buf			intptr
	ts_emptybuf		intptr
	ts_dropbuf		intptr
	ts_dropbuf_sample	intptr
}

p_flags_flag = TPROF_PARAM_KERN, TPROF_PARAM_USER