linux/Documentation
Steven Rostedt 299ea67e6a tracing: Add a config and syscall_user_buf_size file to limit amount written
When a system call that can copy user space addresses into the ring
buffer, it can copy up to 511 bytes of data. This can waste precious ring
buffer space if the user isn't interested in the output. Add a new file
"syscall_user_buf_size" that gets initialized to a new config
CONFIG_SYSCALL_BUF_SIZE_DEFAULT that defaults to 63.

The config also is used to limit how much perf can read from user space.

Also lower the max down to 165, as this isn't to record everything that a
system call may be passing through to the kernel. 165 is more than enough.

The reason for 165 is because adding one for the nul terminating byte, as
well as possibly needing to append the "..." string turns it into 170
bytes. As this needs to save up to 3 arguments and 3 * 170 is 510 which
fits nicely in 512 bytes (a power of 2).

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Takaya Saeki <takayas@google.com>
Cc: Tom Zanussi <zanussi@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ian Rogers <irogers@google.com>
Cc: Douglas Raillard <douglas.raillard@arm.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Link: https://lore.kernel.org/20251028231148.260068913@kernel.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
2025-10-28 20:10:59 -04:00
..
ABI VFIO updates for v6.18-rc1 part 2 2025-10-08 11:22:27 -07:00
PCI pci-v6.18-changes 2025-10-06 10:41:03 -07:00
RCU RCU pull request for v6.18 2025-10-04 11:28:45 -07:00
accel
accounting docs: update delaytop documentation for new interactive features 2025-09-13 17:32:56 -07:00
admin-guide - Remove a bunch of asm implementing condition flags testing in KVM's 2025-10-11 11:19:16 -07:00
arch - Make TDX and kexec work together 2025-10-04 10:01:30 -07:00
block
bpf bpf: disable and remove registers chain based liveness 2025-09-19 09:27:23 -07:00
cdrom
core-api dma-mapping updates for Linux 6.18: 2025-10-03 17:41:12 -07:00
cpu-freq cpufreq: Drop unused symbol CPUFREQ_ETERNAL 2025-10-01 13:57:22 +02:00
crypto crypto: doc - Add explicit title heading to API docs 2025-09-28 11:54:48 +08:00
dev-tools It has been a relatively busy cycle in docsland, with changes all over: 2025-10-03 17:16:13 -07:00
devicetree tty/serial driver bugfixes for 6.18-rc3 2025-10-26 10:24:39 -07:00
doc-guide
driver-api pci-v6.18-changes 2025-10-06 10:41:03 -07:00
edac
fault-injection
fb fbdev fixes & enhancements for 6.18-rc1: 2025-10-10 09:36:23 -07:00
features OpenRISC updates for 6.18 2025-10-05 10:02:54 -07:00
filesystems Ext4 bug fixes for 6.18-rc2, including 2025-10-15 07:51:57 -07:00
firmware-guide
firmware_class
fpga
gpu drm next for 6.18-rc1 2025-10-02 12:47:25 -07:00
hid
hwmon hwmon: (cros_ec) register fans into thermal framework cooling devices 2025-09-25 08:08:14 -07:00
i2c i2c: i801: Add support for Intel Wildcat Lake-U 2025-09-28 00:45:53 +02:00
iio docs: iio: add documentation for ade9000 driver 2025-09-13 14:20:44 +01:00
images
infiniband
input Input: add INPUT_PROP_HAPTIC_TOUCHPAD 2025-09-15 14:32:54 +02:00
isdn
kbuild Kbuild updates for 6.18 2025-10-01 20:58:51 -07:00
kernel-hacking
leds
litmus-tests
livepatch
locking
maintainer docs: maintainer: Fix ambiguous subheading formatting 2025-09-18 10:26:45 -06:00
mhi
misc-devices
mm Only two patch series in this pull request: 2025-10-05 12:11:07 -07:00
netlabel
netlink Char/Misc/IIO/Binder changes for 6.18-rc1 2025-10-04 16:26:32 -07:00
networking Documentation: networking: ax25: update the mailing list info. 2025-10-21 17:41:57 -07:00
nvdimm
nvme
pcmcia
peci
power It has been a relatively busy cycle in docsland, with changes all over: 2025-10-03 17:16:13 -07:00
process It has been a relatively busy cycle in docsland, with changes all over: 2025-10-03 17:16:13 -07:00
rust docs: rust: add section on imports formatting 2025-10-17 00:56:20 +02:00
scheduler
scsi
security
sound ALSA: emu10k1: Fix typo in docs 2025-10-04 15:47:24 +02:00
sphinx docs: remove cdomain.py 2025-09-21 16:35:57 -06:00
sphinx-static
spi
staging It has been a relatively busy cycle in docsland, with changes all over: 2025-10-03 17:16:13 -07:00
sunrpc/xdr
target
tee Documentation: tee: Add Qualcomm TEE driver 2025-09-15 17:34:06 +02:00
timers
tools tools/rtla: Add remaining support for osnoise actions 2025-09-27 04:53:48 -04:00
trace tracing: Add a config and syscall_user_buf_size file to limit amount written 2025-10-28 20:10:59 -04:00
translations More power management updates for 6.18-rc1 2025-10-07 09:39:51 -07:00
usb
userspace-api It has been a relatively busy cycle in docsland, with changes all over: 2025-10-03 17:16:13 -07:00
virt KVM x86 fixes for 6.18: 2025-10-18 10:25:43 +02:00
w1 docs: w1: ds2482: fix typo in buses 2025-09-16 10:00:57 -06:00
watchdog
wmi
.gitignore
.renames.txt docs: add Documentation/.renames.txt 2025-09-09 13:37:16 -06:00
Changes
CodingStyle
Kconfig
Makefile docs: add tools/docs/gen-redirects.py 2025-09-09 13:37:16 -06:00
SubmittingPatches
atomic_bitops.txt
atomic_t.txt
conf.py
docutils.conf
index.rst
memory-barriers.txt
subsystem-apis.rst