| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Fix a copy-paste bug when reading data from the last 3 (7 for PAE) bytes of
a page mapped by a large page in the kernel.
Notes:
svn path=/stable/6/; revision=199410
|
| |
|
|
|
|
|
|
|
|
|
|
| |
date: 2008/01/12 00:54:47; author: delphij; state: Exp; lines: +4 -0
Plug memory leaks that is observed when argbuf or argspc is used in the
context.
Submitted by: Michal Vranek <michal.vranek seznam cz>
PR: bin/118380
Notes:
svn path=/stable/6/; revision=176159
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=166873
|
| |
|
|
|
|
|
| |
Reminded by: emaste
Notes:
svn path=/stable/6/; revision=160634
|
| |
|
|
| |
Notes:
svn path=/stable/6/; revision=159558
|
| |
|
|
|
|
|
|
|
| |
date: 2006/01/15 20:30:13; author: csjp; state: Exp; lines: +5 -0
Validate that the supplied file is not empty before trying mmap(2) it
and access the pages associated with it.
Notes:
svn path=/stable/6/; revision=154746
|
| |
|
|
|
|
|
| |
Approved by: re
Notes:
svn path=/stable/6/; revision=151680
|
| |
|
|
|
|
|
|
| |
Submitted by: marcel
Approved by: re (implicit)
Notes:
svn path=/head/; revision=147736
|
| |
|
|
|
|
|
|
|
| |
the build.
Approved by: re
Notes:
svn path=/head/; revision=147678
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
returned an lseek offset in a "u_long *" value, which can't express >4GB
offsets on 32 bit machines (eg: PAE). Change to "off_t *" for all.
Support ELF crashdumps on i386 and amd64.
Support PAE crashdumps on i386. This is done by auto-detecting the
presence of the IdlePDPT which means that PAE is active.
I used Marcel's _kvm_pa2off strategy and ELF header reader for ELF support
on amd64. Paul Saab ported the amd64 changes to i386 and we implemented
the PAE support from there.
Note that gdb6 in the src tree uses whatever libkvm supports. If you want
to debug an old crash dump, you might want to keep an old libkvm.so handy
and use LD_PRELOAD or the like. This does not detect the old raw dump
format.
Approved by: re
Notes:
svn path=/head/; revision=147672
|
| |
|
|
|
|
|
| |
Approved by: re
Notes:
svn path=/head/; revision=147567
|
| |
|
|
|
|
|
|
| |
Reviewed by: gad
MFC after: 3 days
Notes:
svn path=/head/; revision=143871
|
| |
|
|
| |
Notes:
svn path=/head/; revision=143648
|
| |
|
|
| |
Notes:
svn path=/head/; revision=140505
|
| |
|
|
|
|
|
| |
Reviewed by: arch@
Notes:
svn path=/head/; revision=137907
|
| |
|
|
|
|
|
|
|
| |
called on is invalid and has no use.
Reviewed by: smkelly
Notes:
svn path=/head/; revision=137662
|
| |
|
|
|
|
|
|
|
| |
on /proc in order to operate correctly.
Reviewed by: simon@, wes@
Notes:
svn path=/head/; revision=137661
|
| |
|
|
|
|
|
|
|
|
| |
Extract the struct cdev pointer and the tty device from inside rather than
incorrectly casting the 'struct cdev *' pointer to a 'dev_t' int. Not
that this was particularly important since it was only used for reading
vmcore files.
Notes:
svn path=/head/; revision=136402
|
| |
|
|
|
|
|
|
|
|
| |
- Add a comment noting that the ru_[us]times values being read aren't
actually valid and need to be computed from the raw values.
Submitted by: many (1)
Notes:
svn path=/head/; revision=136195
|
| |
|
|
|
|
|
|
| |
bit-fields. Unify the PTE defines accordingly and update all
uses.
Notes:
svn path=/head/; revision=135590
|
| |
|
|
| |
Notes:
svn path=/head/; revision=135585
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
but with slightly cleaned up interfaces.
The KSE structure has become the same as the "per thread scheduler
private data" structure. In order to not make the diffs too great
one is #defined as the other at this time.
The KSE (or td_sched) structure is now allocated per thread and has no
allocation code of its own.
Concurrency for a KSEGRP is now kept track of via a simple pair of counters
rather than using KSE structures as tokens.
Since the KSE structure is different in each scheduler, kern_switch.c
is now included at the end of each scheduler. Nothing outside the
scheduler knows the contents of the KSE (aka td_sched) structure.
The fields in the ksegrp structure that are to do with the scheduler's
queueing mechanisms are now moved to the kg_sched structure.
(per ksegrp scheduler private data structure). In other words how the
scheduler queues and keeps track of threads is no-one's business except
the scheduler's. This should allow people to write experimental
schedulers with completely different internal structuring.
A scheduler call sched_set_concurrency(kg, N) has been added that
notifies teh scheduler that no more than N threads from that ksegrp
should be allowed to be on concurrently scheduled. This is also
used to enforce 'fainess' at this time so that a ksegrp with
10000 threads can not swamp a the run queue and force out a process
with 1 thread, since the current code will not set the concurrency above
NCPU, and both schedulers will not allow more than that many
onto the system run queue at a time. Each scheduler should eventualy develop
their own methods to do this now that they are effectively separated.
Rejig libthr's kernel interface to follow the same code paths as
linkse for scope system threads. This has slightly hurt libthr's performance
but I will work to recover as much of it as I can.
Thread exit code has been cleaned up greatly.
exit and exec code now transitions a process back to
'standard non-threaded mode' before taking the next step.
Reviewed by: scottl, peter
MFC after: 1 week
Notes:
svn path=/head/; revision=134791
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132935
|
| |
|
|
|
|
|
| |
predefined symbols on all SPARC platforms and FreeBSD follows the crowd.
Notes:
svn path=/head/; revision=132756
|
| |
|
|
| |
Notes:
svn path=/head/; revision=131504
|
| |
|
|
| |
Notes:
svn path=/head/; revision=131421
|
| |
|
|
|
|
|
| |
Submitted by: Cyrille Lefevre
Notes:
svn path=/head/; revision=130996
|
| |
|
|
|
|
|
| |
Submitted by: Cyrille Lefevre
Notes:
svn path=/head/; revision=130992
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ki_childutime, and ki_emul. Also uses the timeradd() macro to correct
the calculation of ki_childtime. That will correct the value returned
when ki_childtime.tv_usec > 1,000,000.
This also implements a new KERN_PROC_GID option for kvm_getprocs().
It also implements the KERN_PROC_RGID and KERN_PROC_SESSION options
which were added to sys/kern/kern_proc.c revision 1.203.
PR: bin/65803 (a very tiny piece of the PR)
Submitted by: Cyrille Lefevre
Notes:
svn path=/head/; revision=130728
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The big lines are:
NODEV -> NULL
NOUDEV -> NODEV
udev_t -> dev_t
udev2dev() -> findcdev()
Various minor adjustments including handling of userland access to kernel
space struct cdev etc.
Notes:
svn path=/head/; revision=130640
|
| |
|
|
| |
Notes:
svn path=/head/; revision=130552
|
| |
|
|
|
|
|
|
| |
Reviewed by: md5
Approved by: das (mentor)
Notes:
svn path=/head/; revision=130246
|
| |
|
|
|
|
|
| |
got a sample to test against.
Notes:
svn path=/head/; revision=129452
|
| |
|
|
| |
Notes:
svn path=/head/; revision=129207
|
| |
|
|
| |
Notes:
svn path=/head/; revision=127518
|
| |
|
|
|
|
|
|
| |
"corefile" argument, to access the running system via sysctl(3)
if possible, thus not requring special setgid privileges.
Notes:
svn path=/head/; revision=127439
|
| |
|
|
| |
Notes:
svn path=/head/; revision=127438
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126128
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126126
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This enable us to use /dev/fwmem* as a core file.
e.g.
ps -M /dev/fwmem0.0 -N kernel.debug
dmesg -M /dev/fwmem0.0 -N kernel.debug
gdb -k -c /dev/fwmem0.0 kernel.debug
You need to set target EUI64 in hw.firewire.fwmem.eui64_hi/lo before
opening the device. On the target arch, (PCI) bus address must be
equivalent to physical address.
(We cannot use this for sparc64 because of IOMMU.)
No objection in: -audit
Notes:
svn path=/head/; revision=121678
|
| |
|
|
|
|
|
| |
spaces before __P(()) outdented continuation lines to column 0.
Notes:
svn path=/head/; revision=121060
|
| |
|
|
| |
Notes:
svn path=/head/; revision=120501
|
| |
|
|
| |
Notes:
svn path=/head/; revision=120500
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119071
|
| |
|
|
|
|
|
|
|
| |
binaries in /bin and /sbin installed in /lib. Only the versioned files
reside in /lib, the .so symlink continues to live /usr/lib so the
toolchain doesn't need to be modified.
Notes:
svn path=/head/; revision=119017
|
| |
|
|
|
|
|
|
| |
These were probably not cleaned up back in whatever murky past these
files were split into separate files.
Notes:
svn path=/head/; revision=118284
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118283
|
| |
|
|
|
|
|
|
|
| |
layout is about to change.
The sysctl based method still returns correct information.
Notes:
svn path=/head/; revision=118282
|
| |
|
|
|
|
|
| |
the swap_pager layout.
Notes:
svn path=/head/; revision=118280
|
| |
|
|
| |
Notes:
svn path=/head/; revision=118276
|