| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
The .Fa argument
|
|
|
|
| |
Pointy hat to: jhb
|
|
|
|
| |
This is just a cosmetic change but I've been meaning to do it for about a year.
|
|
|
|
|
|
|
| |
that crept in recently. GCC will optimize the divides and multiplies for us.
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 1 day
|
|
|
|
|
| |
Move struct swdevt from sys/conf.h to the more appropriate vm/swap_pager.h.
Adjust #include use in libkvm and pstat(8) to match.
|
| |
|
| |
|
|
|
|
|
|
|
| |
are marked up in stdio(3), and because they are defined expressions
of type "FILE *".
Approved by: re
|
|
|
|
|
|
|
| |
memory while mapping a virtual address to a physical address.
This allows us to work with virtual addresses for page tables,
provided it doesn't cause infinite recursion. Currently all
page tables are direct mapped.
|
|
|
|
| |
Reviewed by: jake
|
| |
|
|
|
|
| |
reliable signal queues are gone.
|
|
|
|
|
|
|
| |
one doesn't have one.
Submitted by: jake, scottl
Big pointed hat that lands one in the badcommitters box to: jmallett
|
|
|
|
|
|
| |
userland. If someone wants to implement a backup p_siglist in the kernel
for compatability and to export one could. For now, just tell KVM to hand
an empty signal set off to the userland.
|
|
|
|
|
|
|
|
| |
after adding __FBSDID().
Garbage-collected kvm_readswap(). This was once used by kvm_uread(), but
kvm_uread() now just reads /proc/<pid>/mem and procfs hopefully handles
swapped out pages.
|
|
|
|
|
|
|
|
|
| |
next step is to allow > 1 to be allocated per process. This would give
multi-processor threads. (when the rest of the infrastructure is
in place)
While doing this I noticed libkvm and sys/kern/kern_proc.c:fill_kinfo_proc
are diverging more than they should.. corrective action needed soon.
|
|
|
|
|
| |
Applications can not do this themselves, as the descriptors are hidden
behind the opaque `kvm_t' type.
|
|
|
|
| |
Reviewed by: davidxu@freebsd.org
|
|
|
|
| |
looking at p_ksegrp.kg_slptime anyway.
|
|
|
|
|
|
|
| |
instead of forcing _KERNEL.
Move the include of sys/_label.h in ucred.h under the
_KERNEL || _WANT_UCRED case.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
macros, which are only MD because of gratuitous differences between
architectures.
o Change all headers to make use of this. This mainly involves
changing:
#ifdef _BSD_FOO_T_
typedef _BSD_FOO_T_ foo_t;
#undef _BSD_FOO_T_
#endif
to:
#ifndef _FOO_T_DECLARED
typedef __foo_t foo_t;
#define _FOO_T_DECLARED
#endif
Concept by: bde
Reviewed by: jake, obrien
|
|
|
|
|
|
|
| |
from attempting to use it for good. There is a catch, kvm_proc.c needs
to '#define _KERNEL' to get at the ucred.
Requested by: rwatson
|
|
|
|
|
|
|
| |
size. This avoids blowing out kva in kmeminit() on large memory machines
(4 gigs or more).
Reviewed by: tmm
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The ability to schedule multiple threads per process
(one one cpu) by making ALL system calls optionally asynchronous.
to come: ia64 and power-pc patches, patches for gdb, test program (in tools)
Reviewed by: Almost everyone who counts
(at various times, peter, jhb, matt, alfred, mini, bernd,
and a cast of thousands)
NOTE: this is still Beta code, and contains lots of debugging stuff.
expect slight instability in signals..
|
|
|
|
| |
Submitted by: keramida
|
| |
|
| |
|
|
|
|
| |
Obtained from: NetBSD (rev 1.4, pre-UVM)
|
|
|
|
|
|
|
|
|
|
|
|
| |
processes match the given criteria. Since revision 1.60 of malloc.c,
malloc() and friends return an invalid pointer when given a size of 0.
kvm_getprocs() uses sysctl() with a NULL oldp argument to get an
initial size, but does not check whether it's 0 before passing it to
realloc() (via _kvm_realloc()). Before the aforementioned malloc()
change, this resulted in a minimal allocation made and a valid poitner
returned, but now results in an invalid, but non-NULL, pointer being
returned. When this is passed to sysctl(), the latter returns EFAULT
(as it should).
|
| |
|
| |
|
| |
|
|
|
|
| |
changes.
|
|
|
|
|
|
| |
I'll know as soon as I re-import it and compile it.. :-)
There is no longer a 'pri' strict in the proc struct.
the fields are scattered between the ksegrp and thread in question.
|
|
|
|
|
|
|
| |
Make a slight change so that libkvm reaches the main thread via the
linked list, rather than assuming it is in the proc structure. Both
conditions are true in -current but only the first will be true in
the KSE M3 world.
|
|
|
|
|
|
|
|
|
| |
argument to kvm_open() and kvm_openfiles() as unused.
BSD didn't read swap since kvm.c CSRG revision 5.21 (u-area is pageable
under new VM. no need to read from swap.)
The old !NEWVM code was removed in CSRG revision 5.23 (~ten years ago).
|
| |
|
|
|
|
|
| |
PR: docs/32252
Submitted by: tobez
|
|
|
|
|
|
| |
MIN() macro.
Pointy hat to: rwatson
|
|
|
|
|
|
|
| |
entirely desirable. Back out previous commit, and clean up includes
to be more minimal.
Submitted by: bde
|
|
|
|
|
|
|
| |
of kernel include files, reducing the replication of kernel include
dependency information in userland.
Obtained from: TrustedBSD Project
|
| |
|
|
|
|
|
|
| |
what broke ps on ia64. It probably also broke on alpha, but the fallback
method of using lseek/read on /proc/*/mem to read ps_strings seems to
work there. It doesn't on ia64 yet.
|
|
|
|
| |
untested - it only seems to be used for crashdumps.
|
| |
|
|
|
|
| |
alpha files too.
|