summaryrefslogtreecommitdiffstats
path: root/sys/sys/user.h
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2016-12-15 16:51:33 +0000
committervangyzen <vangyzen@FreeBSD.org>2016-12-15 16:51:33 +0000
commit653ae73f31334ec5c36eeeb24dea9d71684ace94 (patch)
tree63af6a029256dd04da26ef31f83235ccd5720428 /sys/sys/user.h
parent9446d722c784ce1e8da272e72e909e634f5ac02a (diff)
downloadFreeBSD-src-653ae73f31334ec5c36eeeb24dea9d71684ace94.zip
FreeBSD-src-653ae73f31334ec5c36eeeb24dea9d71684ace94.tar.gz
MFC r309676
Export the whole thread name in kinfo_proc kinfo_proc::ki_tdname is three characters shorter than thread::td_name. Add a ki_moretdname field for these three extra characters. Add the new field to kinfo_proc32, as well. Update all in-tree consumers to read the new field and assemble the full name, except for lldb's HostThreadFreeBSD.cpp, which I will handle separately. Bump __FreeBSD_version. Sponsored by: Dell EMC
Diffstat (limited to 'sys/sys/user.h')
-rw-r--r--sys/sys/user.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/user.h b/sys/sys/user.h
index 6049e80..5115b79 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -180,12 +180,13 @@ struct kinfo_proc {
char ki_comm[COMMLEN+1]; /* command name */
char ki_emul[KI_EMULNAMELEN+1]; /* emulation name */
char ki_loginclass[LOGINCLASSLEN+1]; /* login class */
+ char ki_moretdname[MAXCOMLEN-TDNAMLEN+1]; /* more thread name */
/*
* When adding new variables, take space for char-strings from the
* front of ki_sparestrings, and ints from the end of ki_spareints.
* That way the spare room from both arrays will remain contiguous.
*/
- char ki_sparestrings[50]; /* spare string space */
+ char ki_sparestrings[46]; /* spare string space */
int ki_spareints[KI_NSPARE_INT]; /* spare room for growth */
int ki_oncpu; /* Which cpu we are on */
int ki_lastcpu; /* Last cpu we were on */
OpenPOWER on IntegriCloud