opnsense-src/sys
Brooks Davis bb23932803 ktrace: make ktr_tid a long not intptr_t (NFC)
Long ago, ktr_tid was ktr_buffer which pointed to the buffer following
the header and was used internally in the kernel.  Use was removed in
efbbbf570d70b and it was repurposed as ktr_kid in c6854c347f4d8.  For
ABI reasons, it stayed an intptr_t rather than becoming an lwpid_t at
the time.  Since it doesn't hold a pointer any more (unless you have
a ktrace.out from 2005), change the type to long which is alwasy the
same size on all supported architectures.  Add a suggestion to change
the type to lwpid_t (__int32_t) on a future ABI break.

Remove most remaining references to ktr_buffer, retaing a comment in
kdump.c explaining why negative values are treated as 0.  While here,
accept that pid_t and lwpid_t are of type int and simplify casts in
printf.

This changed was motivated by CheriBSD where intptr_t is 16-bytes
in the pure-capability ABI.

Reviewed by:	kib, markj
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D36599
2022-09-17 09:21:59 +01:00
..
amd64 tcp: make CUBIC the default congestion control mechanism. 2022-09-13 12:09:21 +02:00
arm tcp: make CUBIC the default congestion control mechanism. 2022-09-13 12:09:21 +02:00
arm64 tcp: make CUBIC the default congestion control mechanism. 2022-09-13 12:09:21 +02:00
bsm
cam CTL: Validate IOCTL parameters. 2022-09-06 21:58:27 -04:00
cddl Adjust function definition in riscv's dtrace_subr.c to avoid clang 15 warning 2022-08-14 21:27:34 +02:00
compat freebsd32: Make sendmsg match native ABI for unpadded final control message 2022-09-15 17:16:22 +01:00
conf Retire ISA sound card DMA support 2022-09-15 10:07:23 -04:00
contrib rtw89: import firmware for Realtek's rtw89 supported chipsets. 2022-09-09 16:32:17 +00:00
crypto Fix the IV length in the armv8 AES GCM code 2022-09-06 13:11:04 +01:00
ddb Adjust db_flush_line() definition to avoid clang 15 warning 2022-07-19 20:37:15 +02:00
dev iommu_gas: don't remove and insert boundary entry 2022-09-16 15:32:11 -05:00
dts sys/dts: Remove MIPS files 2022-05-20 17:11:27 +01:00
fs devfs: stop taking the interlock in devfs_delete 2022-09-14 22:51:42 +00:00
gdb ddb: use _FLAGS command macros where appropriate 2022-07-05 11:56:55 -03:00
geom Adjust g_waitidle() visibility and definition 2022-08-02 21:11:10 +03:00
gnu
i386 i386: Make boot loader smaller by reducing size of bootinfo 2022-09-16 09:18:57 -06:00
isa Adjust function definition in isa's pnp.c to avoid clang 15 warning 2022-07-27 21:13:59 +02:00
kern SPDX: Not BSD-4-Clause 2022-09-16 21:49:16 -06:00
kgssapi
libkern libkern: Fix a typo in a source code comment 2022-06-05 08:57:26 +02:00
modules Retire ISA sound card DMA support 2022-09-15 10:07:23 -04:00
net Add getsock 2022-09-10 19:47:47 +00:00
net80211 LinuxKPI: 80211 (+net80211): update and cleanup headers 2022-09-09 18:40:23 +00:00
netgraph netgraph(4): Don't process NGQF_MESG items in NET_EPOCH context. 2022-09-13 17:20:41 +03:00
netinet ip_output: always increase "cantfrag" stat if ip_fragment() fails 2022-09-14 19:22:40 -07:00
netinet6 netinet6: Remove a double word in a source code comment 2022-09-10 13:01:44 +02:00
netipsec protosw: refactor protosw and domain static declaration and load 2022-08-17 11:50:32 -07:00
netpfil netpfil: Fix some typos in source code comments 2022-09-15 10:24:00 +02:00
netsmb
nfs nfs: skip bootpc when vfs.root.mountfrom is other than nfs 2022-05-31 16:07:27 -03:00
nfsclient
nfsserver
nlm
ofed ibcore: Add support for RDMA/RoCE using VLAN(4) devices. 2022-08-22 10:04:26 +02:00
opencrypto opencrypto: mark INVARIANTS variables as __diagused 2022-08-10 15:35:29 -04:00
powerpc tcp: make CUBIC the default congestion control mechanism. 2022-09-13 12:09:21 +02:00
riscv riscv: Add da9063_pmic and da9063_rtc to GENERIC and NOTES 2022-09-13 17:46:28 +01:00
rpc nfsd: Allow multiple instances of rpc.tlsservd 2022-08-22 13:54:24 -07:00
security mac_veriexec_parser: fix build after 7e1d3eefd4. 2022-09-09 14:09:08 +02:00
sys ktrace: make ktr_tid a long not intptr_t (NFC) 2022-09-17 09:21:59 +01:00
teken
tests
tools sound(4): Fix order of parameters for custom equalizer band pass filter. 2022-08-22 10:04:26 +02:00
ufs ufs: stop using the V_MNTREF flag 2022-09-14 18:16:07 +00:00
vm swap_pager: style, wrap long lines 2022-09-16 23:23:13 +03:00
x86 i386: check that trap() and syscall() run on the thread kstack 2022-09-14 18:46:32 +03:00
xdr
xen xenbus: improve device tracking 2022-06-07 12:29:53 +02:00
Makefile