$ truss zpool get autotrim 2>&1 | grep ioctl
__sysctlbyname("vfs.zfs.version.ioctl",21,0x289547ea07b4,0x289547ea07b8,0x0,0) = 0 (0x0)
ioctl(3,ZFS_IOC_POOL_CONFIGS,0x289547ea07b8) = 0 (0x0)
ioctl(3,ZFS_IOC_POOL_STATS,0x289547ea0778) = 0 (0x0)
ioctl(3,ZFS_IOC_POOL_GET_PROPS,0x289547ea02c8) = 0 (0x0)
ioctl(3,ZFS_IOC_POOL_STATS,0x289547ea0778) = 0 (0x0)
ioctl(3,ZFS_IOC_POOL_GET_PROPS,0x289547ea02c8) = 0 (0x0)
ioctl(3,ZFS_IOC_LOG_HISTORY,0x289547ea0a08) ERR#1 'Operation not permitted'