summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sysctl.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not provide the KERN_EMUL, KERN_EVCOUNT, KERN_INTRCNT, KERN_PROC* andmiod2004-12-241-3/+21
| | | | | HW_SENSORS sysctl trees if option SMALL_KERNEL. ok deraadt@
* Kill __HAVE_EVCOUNT, now that all architectures provide them.miod2004-11-261-43/+1
|
* a more reasonable limit for the stackgap_random; found by openbsd@hunger.humickey2004-10-141-2/+2
|
* change KERN_INTRCNT_CNT to return a quad; ok teduderaadt2004-09-231-2/+2
|
* Check for num < 0 in sysctl_sensors(); from Patrick Latifi.grange2004-09-151-2/+2
| | | | ok millert@
* This touches only MI code, and adds new time keeping code. Thetholo2004-07-281-1/+12
| | | | | | | | | | | | | | | code is all conditionalized on __HAVE_TIMECOUNTER, and not enabled on any platforms. adjtime(2) support exists, courtesy of nordin@, sysctl(2) support and a concept of quality for each time source attached exists. High quality time sources exists for PIIX4 ACPI timer as well as some AMD power management chips. This will have to be redone once we actually add ACPI support (at that time we need to use the ACPI interfaces to get at these clocks). ok art@ ken@ miod@ jmc@ and many more
* Add new, generic ``evcount'' event counter API to the kernel. From art@,aaron2004-06-281-1/+16
| | | | | with modifications from me. Includes code for generic interrupt counter fetching via sysctl. deraadt@ tholo@ drahn@ millert@ ok
* Instead of accessing ci_dev (that's an MI field), provide a marco thatart2004-06-251-2/+2
| | | | | | translates a cpu_info structure into a human-readable cpu number. drahn@ deraadt@ ok
* Remove the 8 page limit for sysctl_proc_args after discussing with Theo.millert2004-06-241-7/+9
| | | | | Add trivial support for passing a NULL pointer for the argv buffer; currently just returns ARG_MAX for KERN_PROC_ARGV and KERN_PROC_ENV.
* Another merge error from smp branch.art2004-06-201-2/+2
| | | | | Found by otto@drijf.net deraadt@ ok
* export cpu# instead of apid#; art okderaadt2004-06-161-2/+2
|
* debranch SMP, have funniklas2004-06-131-1/+20
|
* Merge in a piece of the SMP branch into HEAD.art2004-06-091-1/+5
| | | | | | | | | | | Introduce the cpu_info structure, p_cpu field in struct proc and global scheduling context and various changed code to deal with this. At the moment no architecture uses this stuff yet, but it will allow us slow and controlled migration to the new APIs. All new code is ifdef:ed out. ok deraadt@ niklas@
* pull ncpus support from smp tree into main branch.marc2004-06-081-2/+2
| | | | | remove alpha specific definition of ncpus. OK (and tested on alpha) deraadt@
* apm restores perflevel after resume; some cpus are forgetful.tedu2004-05-271-7/+6
| | | | | update cpu even with 100 -> 100 setperf changes, in case saved value has gotten out of sync. from grange@ ok deraadt@ grange@
* bad stuff escaped by accidenttedu2004-05-231-5/+6
|
* according to fork1(9), retval is optional. make it so.tedu2004-05-231-6/+5
| | | | from form@pdp-11.org.ru via mpech. ok millert
* introduce a new km_page allocator that gets pages from kernel_map usingtedu2004-04-191-1/+8
| | | | | | | | | | | | an interrupt safe thread. use this as the new backend for mbpool and mclpool, eliminating the mb_map. introduce a sysctl kern.maxclusters which controls the limit of clusters allocated. testing by many people, works everywhere but m68k. ok deraadt@ this essentially deprecates the NMBCLUSTERS option, don't use it. this should reduce pressure on the kmem_map and the uvm reserve of static map entries.
* rework access to emulations slightly in an effort to both merge andtedu2004-04-151-4/+6
| | | | | | separate exec format from emulation. consistent naming of freebsd emuls. not much in the way of functional changes yet. testing and ok deraadt@ and others along the way.
* Check for negative numbers.weingart2004-02-291-1/+3
| | | | ok grange@
* Move setperf_prio to the machdep code, requested by deraadt@grange2004-02-271-2/+1
| | | | ok deraadt@
* Introduce simple priorities mechanism so that concurrentgrange2004-02-271-1/+2
| | | | | | | hw.setperf handlers don't override each other. Problem reported and tested by danh@. ok tedu@ deraadt@
* add sysctl_int_arr() API similar to BSD/OS; ok itojun, deraadt, miod, henningmarkus2004-02-151-1/+21
|
* new arg to disk_unbusy, to record separate read/write statistics.tedu2004-02-151-5/+13
| | | | | looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
* Simplify hw.{cpuspeed,setperf} api moving all the sysctl stuffgrange2004-02-141-5/+19
| | | | | | | from the underlying callbacks. Testing hppa mickey@, ppc drahn@ Ok markus@ tedu@
* Add p_rlim_rss_cur for ps "lim" field. OK deraadt@millert2004-01-071-1/+3
|
* no kern_watchdog for SMALL_KERNEL; ok deraadt@markus2004-01-071-1/+3
|
* Unbreak KERN_PROC_KTHREAD. Explicitly list KERN_PROC_KTHREAD inmillert2004-01-071-1/+4
| | | | | the sysctl_doproc() switch so it does not match the default case (EINVAL). deraadt@ OK.
* Add p_emul to kinfo_proc2 for psmillert2004-01-071-1/+2
|
* Implement KERN_PROC2 sysctl from NetBSD. This will allow us tomillert2004-01-071-33/+239
| | | | | have ps and friends be independent of changes in struct proc et al in the kernel. OK deraadt@
* add new hw sysctls, cpuspeed and setperf to control cpu frequency.tedu2003-12-181-1/+12
| | | | | | convert longrun support to use new sysctls. add enhanced speedstep support, based on code by Michael Eriksson. idea, help testing & ok deraadt@
* Check correct array index KERN_VNODE; from Alistair Kerrmillert2003-11-231-2/+2
| | | | Closes PR 3571 as per on icb.
* per deraadt@ request, don't permit insanely large stackgap values.tedu2003-10-261-2/+2
|
* refactor stackgap sysctl. prompted by a bug report from Michael Coulter.tedu2003-10-241-11/+10
| | | | ok deraadt@ markus@
* remove native emulations from emulsw. you can't change them and probablytedu2003-08-231-10/+6
| | | | aren't interested, so keep them out of the sysctl. ok deraadt
* knfderaadt2003-08-231-3/+3
|
* allow disabling a emul after enabling it; tedu@ ok.fgsch2003-08-231-2/+2
|
* emulation is now controlled by sysctl. changes:tedu2003-08-211-1/+43
| | | | | | | | | add e_flags to struct emul. this stores on/off and native flags. check for emul enabled in check_exec(). gather all the emuls into a emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation into init_main so it cleans up sys_execve codepath. teach sysctl utility to grok kern.emul hierarchy. requested and ok deraadt@ some comments from mickey@
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-2/+2
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* Remove some double semicolons (hmm, do two semis equal a maxi?).millert2003-08-061-2/+2
| | | | I've skipped the GNU stuff for now. From Patrick Latifi.
* debug0 and debug1 are defined elsewhere -- make 'em extern heremickey2003-06-101-2/+3
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* string fixes; tedu okderaadt2003-05-031-2/+3
|
* sysctl front-end for the hardware monitoring sensors. This addsgrange2003-04-251-3/+32
| | | | | | | | new node hw.sensors; information from the sensors can be obtained via hw.sensors.n, where n is a sensor number. All values are read only for now. Documentation and back-end drivers are comming. Tested by henning@ and millert@. Four oks from henning@ and one from millert@.
* add kern.watchdog sysctl and generic watchdog interface;markus2003-01-211-1/+5
| | | | | based on feedback and discussions with mickey, henric, fgsch and jakob. ok art@, mickey@, jakob@, henric@
* Fix two minor nits; deraadt@ OKmillert2003-01-151-3/+3
| | | | | o Avoid taking the address of an array when we just want a pointer o Use &array[1] not array + 1
* Sysctls for fetching intrcnt.art2003-01-131-1/+43
|
* Make SysV-style shared memory and semaphore limits sysctl'able.millert2002-12-171-8/+37
| | | | | | | | | | | | Instead of allocating a static amount of memory for the data structures via valloc() in allocsys(), allocate things dynamically using pool(9) when possible and malloc(9) when not. The various members of struct seminfo and struct shminfo are in kern.seminfo and kern.shminfo respectively (not all members of kern.seminfo are changable). The data structures used still leave something to be desired but things are not made worse in that respect by this commit.
* Oppsie. Remove my debugging code.art2002-09-011-2/+1
| | | | noted by tdeval@
* Use LIST_ macros for the list of all struct file.art2002-08-231-2/+2
|