freebsd_amp_hwpstate/sys/kern
Peter Wemm 52c24af701 Some cleanups and optimizations:
- Use the system headers method for Elf32/Elf64 symbol compatability
- get rid of the UPRINTF debugging.
- check the ELF header for compatability much more completely
- optimize the section mapper.  Use the same direct VM interfaces that
  imgact_aout.c and kern_exec.c use.
- Check the return codes from the vm_* functions better.  Some return
  KERN_* results, not an errno.
- prefault the page tables to reduce startup faults on page tables like
  a.out does.
- reset the segment protection to zero for each loop, otherwise each
  segment could get progressively more privs. (eg: if the first was
  read/write/execute, and the second was meant to be read/execute, the
  bug would make the second r/w/x too.  In practice this was not a
  problem because executables are normally laid out with text first.)
- Don't impose arbitary limits.  Use the limits on headers imposed by
  the need to fit them into one page.
- Remove unused switch() cases now that the verbose debugging is gone.

I've been using an earlier version of this for a month or so.
This sped up ELF exec speed a bit for me but I found it hard to get
consistant benchmarks when I tested it last (a few weeks ago).
I'm still bothered by the page read out of order caused by the
transition from data to bss. This which requires either part filling the
transition page or clearing the remainder.
1998-10-18 15:55:12 +00:00
..
Make.tags.inc
Makefile
bus_if.m
device_if.m
imgact_aout.c
imgact_elf.c
imgact_gzip.c
imgact_shell.c
inflate.c
init_main.c
init_sysent.c
kern_acct.c
kern_clock.c
kern_conf.c
kern_descrip.c
kern_environment.c
kern_exec.c
kern_exit.c
kern_fork.c
kern_intr.c
kern_ktrace.c
kern_linker.c
kern_lkm.c
kern_lock.c
kern_lockf.c
kern_malloc.c
kern_mib.c
kern_module.c
kern_ntptime.c
kern_physio.c
kern_proc.c
kern_prot.c
kern_random.c
kern_resource.c
kern_shutdown.c
kern_sig.c
kern_subr.c
kern_synch.c
kern_sysctl.c
kern_tc.c
kern_threads.c
kern_time.c
kern_timeout.c
kern_xxx.c
ksched.c
link_aout.c
link_elf.c
link_elf_obj.c
makedevops.sh
makesyscalls.sh
md5c.c
p1003_1b.c
posix4_mib.c
subr_autoconf.c
subr_bus.c
subr_clist.c
subr_devstat.c
subr_disklabel.c
subr_diskmbr.c
subr_diskslice.c
subr_dkbad.c
subr_log.c
subr_module.c
subr_param.c
subr_prf.c
subr_prof.c
subr_rlist.c
subr_smp.c
subr_trap.c
subr_xxx.c
sys_generic.c
sys_pipe.c
sys_process.c
sys_socket.c
syscalls.c
syscalls.master
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c
tty.c
tty_compat.c
tty_conf.c
tty_cons.c
tty_pty.c
tty_snoop.c
tty_subr.c
tty_tb.c
tty_tty.c
uipc_domain.c
uipc_mbuf.c
uipc_proto.c
uipc_sockbuf.c
uipc_socket.c
uipc_socket2.c
uipc_syscalls.c
uipc_usrreq.c
vfs_aio.c
vfs_bio.c
vfs_cache.c
vfs_cluster.c
vfs_conf.c
vfs_default.c
vfs_export.c
vfs_extattr.c
vfs_init.c
vfs_lookup.c
vfs_mount.c
vfs_subr.c
vfs_syscalls.c
vfs_vnops.c
vnode_if.pl
vnode_if.sh
vnode_if.src