]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Export the whole thread name in kinfo_proc
authorvangyzen <vangyzen@FreeBSD.org>
Wed, 7 Dec 2016 15:04:22 +0000 (15:04 +0000)
committervangyzen <vangyzen@FreeBSD.org>
Wed, 7 Dec 2016 15:04:22 +0000 (15:04 +0000)
commit4b13e96127e9265a5939a6086be698f53dca325d
tree43441ee7e43e93c264c40098bc6a268fa2fab93b
parent03d27c7f998a7b844995c327a2fa4ec66cdfd5ee
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.

Reviewed by: kib
MFC after: 1 week
Relnotes: yes
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D8722
12 files changed:
bin/ps/print.c
lib/libkvm/kvm_proc.c
sys/compat/freebsd32/freebsd32.h
sys/kern/kern_proc.c
sys/sys/param.h
sys/sys/user.h
usr.bin/procstat/procstat.c
usr.bin/procstat/procstat.h
usr.bin/procstat/procstat_cs.c
usr.bin/procstat/procstat_kstack.c
usr.bin/procstat/procstat_threads.c
usr.bin/top/machine.c