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
..
2022-08-08 19:06:35 +00:00
2021-11-05 08:53:36 -06:00
2022-03-04 00:03:44 +01:00
2022-03-04 00:03:44 +01:00
2022-07-27 09:00:30 -07:00
2022-02-05 09:08:45 +00:00
2022-09-03 17:46:26 +02:00
2020-11-16 18:41:49 +00:00
2020-10-09 14:03:45 +00:00
2020-10-21 16:30:34 +00:00
2020-06-23 10:27:41 +00:00
2020-07-27 16:51:23 +00:00
2022-04-20 15:18:41 -06:00
2021-01-07 09:31:03 +00:00
2022-02-15 08:46:14 -05:00
2021-03-13 18:26:15 +01:00
2020-10-29 18:39:04 +00:00
2021-09-07 10:25:23 +02:00
2020-10-24 16:40:34 +00:00
2022-06-11 13:14:37 +02:00
2020-12-26 11:47:47 -05:00
2022-05-30 19:25:16 -05:00
2020-06-20 11:27:59 +00:00
2021-07-02 09:21:05 +01:00
2021-11-15 22:49:33 +02:00
2022-09-05 22:52:39 -07:00
2021-07-17 22:20:44 -07:00
2022-02-14 19:30:09 +00:00
2020-12-11 19:27:21 +00:00
2022-03-16 11:41:55 +01:00
2020-12-29 21:48:12 +01:00
2022-02-05 09:13:07 +00:00
2022-02-05 08:58:30 +00:00
2022-02-12 11:35:51 +00:00
2022-08-30 15:09:21 -07:00
2022-07-24 15:01:52 -06:00
2021-05-31 16:12:44 -06:00
2020-07-01 16:33:32 +00:00
2021-08-08 10:16:06 +02:00
2022-08-25 20:06:20 +00:00
2020-06-27 11:19:18 +00:00
2020-06-20 11:24:29 +00:00
2022-07-29 11:27:25 +01:00
2020-06-18 15:14:10 +00:00
2020-03-26 17:58:52 +00:00
2022-04-02 00:49:53 +02:00
2022-02-05 09:00:35 +00:00
2020-07-07 16:07:39 +00:00
2021-10-21 13:07:32 +02:00
2020-08-30 17:37:56 +00:00
2022-09-16 13:27:54 +02:00
2021-10-05 20:27:16 -04:00
2021-06-21 08:40:54 -06:00
2020-08-24 17:57:08 +00:00
2020-07-14 01:54:24 +00:00
2022-03-01 20:07:44 +00:00
2022-08-13 21:11:50 -07:00