github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/netbsd/dev_tprof.txt (about)

     1  # Copyright 2018 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  # Autogenerated by sys2syz
     4  
     5  include <dev/tprof/tprof_ioctl.h>
     6  
     7  resource fd_tprof[fd]
     8  
     9  openat$tprof(fd const[AT_FDCWD], file ptr[in, string["/dev/tprof"]], flags flags[open_flags], mode const[0]) fd_tprof
    10  
    11  ioctl$TPROF_IOC_GETINFO(fd fd_tprof, cmd const[TPROF_IOC_GETINFO], arg ptr[out, tprof_info])
    12  ioctl$TPROF_IOC_START(fd fd_tprof, cmd const[TPROF_IOC_START], arg ptr[in, tprof_param])
    13  ioctl$TPROF_IOC_STOP(fd fd_tprof, cmd const[TPROF_IOC_STOP])
    14  ioctl$TPROF_IOC_GETSTAT(fd fd_tprof, cmd const[TPROF_IOC_GETSTAT], arg ptr[out, tprof_stat])
    15  
    16  tprof_info {
    17  	ti_version	int32
    18  	ti_ident	int32
    19  }
    20  
    21  tprof_param {
    22  	p_event	intptr
    23  	p_unit	intptr
    24  	p_flags	flags[p_flags_flag, intptr]
    25  }
    26  
    27  tprof_stat {
    28  	ts_sample		intptr
    29  	ts_overflow		intptr
    30  	ts_buf			intptr
    31  	ts_emptybuf		intptr
    32  	ts_dropbuf		intptr
    33  	ts_dropbuf_sample	intptr
    34  }
    35  
    36  p_flags_flag = TPROF_PARAM_KERN, TPROF_PARAM_USER