| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Diff from fukaumi at soum.co.jp
ok mpi
|
|
|
|
| |
ok millert@ sthen@
|
|
|
|
|
|
| |
struct proc to struct process.
ok deraadt@ kettenis@
|
|
|
|
|
|
| |
initial thread
ok jsing@ kettenis@
|
|
|
|
| |
from Sebastien Marie
|
|
|
|
|
|
| |
offline paths. More polishing to come.
Input and okay bluhm@ & kettenis@.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
might have increased between when we got the number of files and
when we requested that number of files.
now we allocate another 10ish percent on top of what the kernel
says we need, and retry if that still isnt enough.
while here use realloc instead of constantly going through free/malloc
sequences.
with input from claudio@ deraadt@
ok millert@ guenther@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
{Free,Net}BSD
- when a socket is closed with fds in its input, defer closing them to
a task to avoid recursing. This eliminates the complicated extra
reference taking which had a 37 line(!) comment explanation
- move flags, counts, and links only needed for this from struct file to
struct unpcb
- document the flow of the mark/sweep collector
much help from claudio@ who made me explain the GC to him until we trusted it
ok claudio@ mpi@ deraadt@
|
|
|
|
|
| |
a SLIST.
OK mpi@ benno@
|
|
|
|
|
| |
Bump minor number because of this.
OK guenther@
|
| |
|
|
|
|
|
|
|
| |
the extra argument to be zero; instead, make it filter on the file
type (DTYPE_*) when non-zero to make claudio's netstat work easier.
ok claudio@
|
|
|
|
| |
review by millert, binary checking process with doug, concept with guenther
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
| |
gets only allocated when needed. This way struct socket shrinks
from 472 to 392 bytes on amd64. When splicing gets active, another
88 bytes are allocated for struct sosplice.
OK dlg@
|
|
|
|
| |
ok millert@
|
|
|
|
| |
ok guenther
|
|
|
|
|
|
|
|
|
|
|
| |
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data. This eliminates the need for the thread-level SDEAD state.
Change kvm_getprocs() (both the sysctl() and kvm backends) to report the
"most active" scheduler state for the process's threads.
tweaks kettenis@
feedback and ok matthew@
|
|
|
|
|
|
|
|
|
| |
struct ucred; struct process then directly links to the ucred
Based on a discussion at c2k10 or so before noting that FreeBSD and
NetBSD did this too.
ok matthew@
|
|
|
|
|
|
| |
in file info. Drop some unnecessary casts and unused variables too.
ok millert@
|
|
|
|
|
|
|
|
| |
make it a list of processes, and change P_NOZOMBIE and P_STOPPED from thread
flags to process flags. Add allprocess list for the code that just wants
to see processes.
ok tedu@
|
| |
|
|
|
|
|
|
|
|
| |
declarations, including _kvm_getftype(), into a new header, kvm_file.h,
so that we don't have to pull <sys/vnode.h> into all the .c files. No
more extern function declaration in .c files.
ok millert@
|
|
|
|
|
|
|
| |
Treat failure to KREAD teh pcredd or ucreds to be errors insteading of
continuing with bogus data.
ok deraadt@ millert@
|
|
|
|
| |
and don't act like an unknown vnode type is "ok"
|
|
|
|
|
|
|
|
|
|
| |
- convert netstat from kvm_getfiles() to kvm_getfile2() using that
- delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major)
- rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file
and KERN_FILE2 to KERN_FILE.
ok deraadt@, millert@
ports scan sthen@
|
| |
|
| |
|
|
|
|
| |
rthreads fix. Update to the correct one.
|
|
|
|
|
|
|
|
|
| |
at the top of closef() until all in-progress calls finish, just do the
advisory locking bits required of close() by POSIX and let whichever
thread has the last reference do the call to the file's fo_close()
method and the final cleanup.
lots of discussion with deraadt@ and others; worked out with and ok krw@
|
|
|
|
|
|
|
|
| |
fd_ofiles and fd_ofileflags, reading in the separate allocation
when necessary. Lets fstat -p and fstat -u work on kernel crash
dumps again.
ok millert@
|
|
|
|
| |
dumps
|
|
|
|
|
|
| |
read byte count instead of the written byte count.
pointed out by paulm at tetrardus.net, ok dcoppa@
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
and add an 'rtableid' keyword to ps.
Add rtable id, thread id, and socket splice info to struct kinfo_file2
and make fstat display socket splice information.
Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major
Socket splice info and corrections from bluhm@ "Lovely" deraadt@
|
|
|
|
| |
Missed commit pointed out by mikeb@
|
| |
|
|
|
|
|
|
| |
so that libkvm doesn't need to define that, thereby avoiding some warnings.
ok miod@
|
|
|
|
|
|
|
| |
KERN_FILE2 (or their libkvm wrappers) for more information than the
running implementation knows how to provide.
ok millert@ deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
/dev/mem to be direct instead of going through kvm_getprocs(), as
that function is going to get more an more broken as we move stuff
from struct proc to struct process for rthreads. To minimize the
code copying, put the common logic of filling in a kinfo_proc2
structure into a macro FILL_KPROC2() in <sys/sysctl.h> for use from
both the kernel and user-space. This also hides the KERN_PROC
#define behind "#if defined(_KERNEL)||defined(_LIBKVM)", as it's
deprecated.
Positive feedback from millert and blambert; so committing to unblock
further rthreads work.
|
|
|
|
|
|
|
| |
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
| |
|
| |
|
| |
|
|
|
|
| |
adapted from NetBSD fstat. OK deraadt@
|
| |
|
|
|
|
| |
with ufs and add also udf support. OK miod@
|
| |
|