opnsense-src/sys/cddl/dev/dtrace
Andriy Gapon eacdf85d44 dtrace: add a knob to control maximum size of principal buffers
We had a hardcoded limit of 1/128-th of physical memory that was further
subdivided between all CPUs as principal buffers are allocated on the
per-CPU basis.  Actually, the buffers could use up 1/64-th of the
memmory because with the default switch policy there are two buffers per
CPU.

This commit allows to change that limit.

Note that the discussed limit is per dtrace command invocation.
The idea is to limit the size of a single malloc(9) call, not the total
memory size used by DTrace buffers.

(cherry picked from commit 7fdf0e8835)
2022-02-01 10:12:03 +02:00
..
aarch64 Fix dtrace fbt return probes on arm64 2021-12-29 10:06:00 +00:00
amd64 Fix syntax 2020-12-01 22:44:23 +00:00
arm Changes that improve DTrace FBT reliability on freebsd/arm64: 2021-01-11 15:42:22 +00:00
i386 Fix syntax 2020-12-01 23:51:48 +00:00
mips Handle non-dtrace-triggered kernel breakpoint traps in mips. 2020-04-21 17:38:07 +00:00
powerpc powerpc/dtrace: Actually fix stack traces 2019-05-17 19:57:08 +00:00
riscv riscv: fix kernel build 2021-01-15 11:57:04 -04:00
x86 Sync the x86 dis_tables.c with upstream. 2017-02-03 03:22:47 +00:00
dtrace_anon.c
dtrace_cddl.h Fix a tracepoint lookup race in fasttrap_pid_probe(). 2019-02-21 22:54:17 +00:00
dtrace_debug.c Fix a backwards comparison in the code to dump a DTrace debug buffer. 2017-03-13 18:43:00 +00:00
dtrace_hacks.c Fix DTrace's panic() action. 2015-04-24 03:19:30 +00:00
dtrace_ioctl.c Don't use pcpu_find() to determine if a CPU ID is valid. 2017-11-27 18:42:23 +00:00
dtrace_load.c Fix a harmless LOR in dtrace_load(). 2017-05-01 17:01:00 +00:00
dtrace_modevent.c
dtrace_sysctl.c dtrace: add a knob to control maximum size of principal buffers 2022-02-01 10:12:03 +02:00
dtrace_test.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
dtrace_unload.c MFV r266993: 2015-02-03 19:39:53 +00:00
dtrace_vtime.c