opnsense-src/sys/cddl
Andriy Gapon 73c9d51423 Revert "dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag"
This reverts commit e92491d95ff3500e140eafa614e88ca84ffb0d26.
It was cherry-picked as fb9c50f983.

The general idea looked good to me.  In particular, it allowed to save
some memory and avoid memory allocation failures when a large buffer
size was requested along with ring and fill policies.

But I didn't take into account that the second, supposedly unused
buffer, was actually used as the scratch buffer.  The scratch buffer is
used as a temporary space for DTrace subroutines like copyin, copyinstr,
and alloca.

I think that the change can be fixed by allocating a separate smaller
buffer for the scratch buffer, but that fix would require more work than
I am able to do now.  Hence the revert.

Reported by:	Domagoj Stolfa
Diagnosed by:	Domagoj Stolfa, markj

(cherry picked from commit b9827c007a7a39c7aeef73f8efc217b7b0099464)
2024-04-21 15:27:11 +03:00
..
boot/zfs boot/zfs: Add some fields to dsl_dir_phys_t 2023-10-25 10:27:26 -04:00
compat/opensolaris Abstract UIO allocation and deallocation. 2024-03-08 23:27:20 -05:00
contrib/opensolaris Revert "dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag" 2024-04-21 15:27:11 +03:00
dev dtrace/profile: Set t_dtrace_trapframe for profile probes 2024-01-15 09:49:21 -05:00