History log of /openbsd/lib/libkvm/kvm_file2.c (Results 1 – 25 of 58)
Revision Date Author Comments
# 6c2b9309 11-Feb-2024 bluhm <bluhm@openbsd.org>

Remove needless includes of netinet6/ip6_var.h header in userland.

OK millert@


# 4ec73a12 22-Feb-2022 deraadt <deraadt@openbsd.org>

MAXCOMLEN is no longer needed in these programs, so remove the annotation
from sys/param.h include lines, or remove the include lines entirely if
it this was the least requirement.
ok millert


# 0b082c0e 10-Sep-2021 deraadt <deraadt@openbsd.org>

annotate what symbols are used from sys/param.h lines, or delete them
if not required. when deleting, add sys/signal.h or other lines which
were not being pulled in


# bf198cc6 25-Jan-2019 millert <millert@openbsd.org>

I am retiring my old email address; replace it with my OpenBSD one.


# d9ca134e 07-Sep-2018 yasuoka <yasuoka@openbsd.org>

Fix "_nfiles" reference for crash dump.
Diff from fukaumi at soum.co.jp

ok mpi


# 4b1f64dc 02-Jan-2018 guenther <guenther@openbsd.org>

Stop assuming <sys/file.h> will pull in fcntl.h when _KERNEL is defined.

ok millert@ sthen@


# 8fda72b7 21-Jan-2017 guenther <guenther@openbsd.org>

p_comm is the process's command and isn't per thread, so move it from
struct proc to struct process.

ok deraadt@ kettenis@


# 3b7181b7 07-Nov-2016 guenther <guenther@openbsd.org>

Split PID from TID, giving processes a PID unrelated to the TID of their
initial thread

ok jsing@ kettenis@


# 8cdd1cc4 02-Oct-2016 guenther <guenther@openbsd.org>

Add va_nlink information to struct kinfo_file (so bump the shlib minor)

from Sebastien Marie


# 8493a6f2 04-May-2016 zhuk <zhuk@openbsd.org>

Make KERN_FILE_BYPID return ESRCH when PID not found, both in sysctl and
offline paths. More polishing to come.

Input and okay bluhm@ & kettenis@.


# 2c40d165 25-Apr-2016 tedu <tedu@openbsd.org>

no more systrace


# a6b19e38 04-Sep-2015 dlg <dlg@openbsd.org>

fix a race when fetching files from the kernel. the number of files
might have increased between when we got the number of files and
when we requested that number of files.

now we allocate another 1

fix a race when fetching files from the kernel. the number of files
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@

show more ...


# 171fc181 28-Aug-2015 guenther <guenther@openbsd.org>

Rework the UNIX domain socket garbage collector, including ideas from
{Free,Net}BSD
- when a socket is closed with fds in its input, defer closing them to
a task to avoid recursing. This elimina

Rework the UNIX domain socket garbage collector, including ideas from
{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@

show more ...


# efbf5d25 28-Mar-2015 bluhm <bluhm@openbsd.org>

Replace the hand-crafted list of datagram unix domain sockets with
a SLIST.
OK mpi@ benno@


# 991eda1f 11-Feb-2015 claudio <claudio@openbsd.org>

Extend struct kinfo_file a bit for netstat (sync with the kernel).
Bump minor number because of this.
OK guenther@


# 4d545055 11-Feb-2015 guenther <guenther@openbsd.org>

Prefer arg != 0 over arg for non-boolean. nitted kettenis@


# 4aba674d 11-Feb-2015 guenther <guenther@openbsd.org>

sysctl({CTL_KERN, KERN_FILE, KERN_FILE_BYFILE}) previously required
the extra argument to be zero; instead, make it filter on the file
type (DTYPE_*) when non-zero to make claudio's netstat work easi

sysctl({CTL_KERN, KERN_FILE, KERN_FILE_BYFILE}) previously required
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@

show more ...


# aea60bee 16-Jan-2015 deraadt <deraadt@openbsd.org>

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


# 036c7a34 19-Nov-2014 krw <krw@openbsd.org>

Nuke yet more obvious #include duplications.

ok deraadt@


# 68d360c0 03-Nov-2014 bluhm <bluhm@openbsd.org>

Put the socket splicing fields into a seperate struct sosplice that
gets only allocated when needed. This way struct socket shrinks
from 472 to 392 bytes on amd64. When splicing gets active, anothe

Put the socket splicing fields into a seperate struct sosplice that
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@

show more ...


# a519dd0c 25-Oct-2014 lteo <lteo@openbsd.org>

Remove unnecessary netinet/in_systm.h include.

ok millert@


# f4ccacb3 15-Oct-2014 deraadt <deraadt@openbsd.org>

Apply reallocarray() idiom.
ok guenther


# 644b4788 04-Jul-2014 guenther <guenther@openbsd.org>

Track whether a process is a zombie or not yet fully built via flags
PS_{ZOMBIE,EMBRYO} on the process instead of peeking into the process's
thread data. This eliminates the need for the thread-leve

Track whether a process is a zombie or not yet fully built via flags
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@

show more ...


# d559b8cb 30-Mar-2014 guenther <guenther@openbsd.org>

Eliminates struct pcred by moving the real and saved ugids into
struct ucred; struct process then directly links to the ucred

Based on a discussion at c2k10 or so before noting that FreeBSD and
NetB

Eliminates struct pcred by moving the real and saved ugids into
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@

show more ...


# ce4c48cf 05-Feb-2014 guenther <guenther@openbsd.org>

More crash dump parsing fixes: correct paddr in process info and pids
in file info. Drop some unnecessary casts and unused variables too.

ok millert@


123