| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
SYSCTL_QUAD()
SYSCTL_ADD_QUAD()
TUNABLE_QUAD()
TUNABLE_QUAD_FETCH()
Now we can use 64bit tunables on 32bit systems.
Notes:
svn path=/head/; revision=180661
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
variables and sysctl nodes.
- In reset walk the children of kern_sched_stats and reset the counters
via the oid_arg1 pointer. This allows us to add arbitrary counters to
the tree and still reset them properly.
- Define a set of switch types to be passed with flags to mi_switch().
These types are named SWT_*. These types correspond to SCHED_STATS
counters and are automatically handled in this way.
- Make the new SWT_ types more specific than the older switch stats.
There are now stats for idle switches, remote idle wakeups, remote
preemption ithreads idling, etc.
- Add switch statistics for ULE's pickcpu algorithm. These stats include
how much migration there is, how often affinity was successful, how
often threads were migrated to the local cpu on wakeup, etc.
Sponsored by: Nokia
Notes:
svn path=/head/; revision=178272
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rqindex back in struct thread.
- Compile kern_switch.c independently again and stop #include'ing it from
schedulers.
- Remove the ts_thread backpointers and convert most code to go from
struct thread to struct td_sched.
- Cleanup the ts_flags #define garbage that was causing us to sometimes
do things that expanded to td->td_sched->ts_thread->td_flags in 4BSD.
- Export the kern.sched sysctl node in sysctl.h
Notes:
svn path=/head/; revision=177435
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
feature is represented by a node in the new 'kern.features' sysctl node.
A feature is present if the corresponding node is present and evaluates to
true.
A FEATURE() wrapper macro is added which takes the sysctl node name and
a description of the feature as the sole arguments and creates a read-only
sysctl node with a value of 1.
Discussed on: arch
Notes:
svn path=/head/; revision=175019
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
support its -k argument:
kern.proc.kstack - dump the kernel stack of a process, if debugging
is permitted.
This sysctl is present if either "options DDB" or "options STACK" is
compiled into the kernel. Having support for tracing the kernel
stacks of processes from user space makes it much easier to debug
(or understand) specific wmesg's while avoiding the need to enter
DDB in order to determine the path by which a process came to be
blocked on a particular wait channel or lock.
Notes:
svn path=/head/; revision=174197
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
its -f and -v arguments:
kern.proc.filedesc - dump file descriptor information for a process, if
debugging is permitted, including socket addresses, open flags, file
offsets, file paths, etc.
kern.proc.vmmap - dump virtual memory mapping information for a process,
if debugging is permitted, including layout and information on
underlying objects, such as the type of object and path.
These provide a superset of the information historically available
through the now-deprecated procfs(4), and are intended to be exported
in an ABI-robust form.
Notes:
svn path=/head/; revision=174167
|
|
|
|
|
|
|
|
| |
when unit numbers are changed, the sysctl devinfo tree gets out of sync
and duplicate trees are attempted to be attached with the original name.
Notes:
svn path=/head/; revision=174113
|
|
|
|
| |
Notes:
svn path=/head/; revision=172702
|
|
|
|
|
|
|
|
| |
Requested by: phk
Discussed on: cvs-all
Notes:
svn path=/head/; revision=172674
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit includes the following core components:
* sample configuration file for sensorsd
* rc(8) script and glue code for sensorsd(8)
* sysctl(3) doc fixes for CTL_HW tree
* sysctl(3) documentation for hardware sensors
* sysctl(8) documentation for hardware sensors
* support for the sensor structure for sysctl(8)
* rc.conf(5) documentation for starting sensorsd(8)
* sensor_attach(9) et al documentation
* /sys/kern/kern_sensors.c
o sensor_attach(9) API for drivers to register ksensors
o sensor_task_register(9) API for the update task
o sysctl(3) glue code
o hw.sensors shadow tree for sysctl(8) internal magic
* <sys/sensors.h>
* HW_SENSORS definition for <sys/sysctl.h>
* sensors display for systat(1), including documentation
* sensorsd(8) and all applicable documentation
The userland part of the framework is entirely source-code
compatible with OpenBSD 4.1, 4.2 and -current as of today.
All sensor readings can be viewed with `sysctl hw.sensors`,
monitored in semi-realtime with `systat -sensors` and also
logged with `sensorsd`.
Submitted by: Constantine A. Murenin <cnst@FreeBSD.org>
Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors)
Mentored by: syrinx
Tested by: many
OKed by: kensmith
Obtained from: OpenBSD (parts)
Notes:
svn path=/head/; revision=172631
|
|
|
|
| |
Notes:
svn path=/head/; revision=170288
|
|
|
|
|
|
|
|
|
| |
magic value.
Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
Notes:
svn path=/head/; revision=169727
|
|
|
|
|
|
|
| |
Reviewed by: mlaier, rink, brooks, rwatson
Notes:
svn path=/head/; revision=168545
|
|
|
|
|
|
|
|
|
|
|
| |
with other commonly used sysctl name spaces, rather than declaring them
all over the place.
MFC after: 1 month
Sponsored by: nCircle Network Security, Inc.
Notes:
svn path=/head/; revision=162383
|
|
|
|
|
|
|
| |
eliminate their declarations from various source files.
Notes:
svn path=/head/; revision=161492
|
|
|
|
|
|
|
| |
the same, except sysctl(8) will print out the values in hex.
Notes:
svn path=/head/; revision=161256
|
|
|
|
|
|
|
|
|
|
|
|
| |
the sysctls. This saves a lot of space in the resulting kernel which is
important for embedded systems. This change was done in a ABI compatible
way. The pointer is still there, it just points to an empty string instead
of the description.
MFC After: 3 days
Notes:
svn path=/head/; revision=160469
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Move sonewconn(), which creates new sockets for incoming connections on
listen sockets, so that all socket allocate code is together in
uipc_socket.c.
- Move 'maxsockets' and associated sysctls to uipc_socket.c with the
socket allocation code.
- Move kern.ipc sysctl node to uipc_socket.c, add a SYSCTL_DECL() for it
to sysctl.h and remove lots of scattered implementations in various
IPC modules.
- Sort sodealloc() after soalloc() in uipc_socket.c for dependency order
reasons. Statisticize soalloc() and sodealloc() as they are now
required only in uipc_socket.c, and are internal to the socket
implementation.
After this change, socket allocation and deallocation is entirely
centralized in one file, and uipc_socket2.c consists entirely of socket
buffer manipulation and default protocol switch functions.
MFC after: 1 month
Notes:
svn path=/head/; revision=159481
|
|
|
|
|
|
|
|
|
| |
kern_mib.c can easily add regression sysctls.
MFC after: 1 month
Notes:
svn path=/head/; revision=157157
|
|
|
|
|
|
|
|
|
|
| |
of being private to tcp_timer.c.
Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days
Notes:
svn path=/head/; revision=155758
|
|
|
|
|
|
|
|
| |
This information is needed by things like `gdb -p' and Sun's javac,
and previously it could only be obtained via procfs
Notes:
svn path=/head/; revision=145216
|
|
|
|
|
|
|
|
|
| |
subr_bus.c doesn't need to peek inside struct resource.
OK from: imp
Notes:
svn path=/head/; revision=144071
|
|
|
|
|
|
|
|
| |
Submitted by: Nicko Dehaine <nicko@stbernard.com>
MFC after: 1 day
Notes:
svn path=/head/; revision=142834
|
|
|
|
| |
Notes:
svn path=/head/; revision=141433
|
|
|
|
| |
Notes:
svn path=/head/; revision=139825
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sysctl routines and state. Add some code to use it for signalling the need
to downconvert a data structure to 32 bits on a 64 bit OS when requested by
a 32 bit app.
I tried to do this in a generic abi wrapper that intercepted the sysctl
oid's, or looked up the format string etc, but it was a real can of worms
that turned into a fragile mess before I even got it partially working.
With this, we can now run 'sysctl -a' on a 32 bit sysctl binary and have
it not abort. Things like netstat, ps, etc have a long way to go.
This also fixes a bug in the kern.ps_strings and kern.usrstack hacks.
These do matter very much because they are used by libc_r and other things.
Notes:
svn path=/head/; revision=136404
|
|
|
|
|
|
|
| |
cast as a value.
Notes:
svn path=/head/; revision=132784
|
|
|
|
|
|
|
| |
Submitted by: Cyrille Lefevre
Notes:
svn path=/head/; revision=130725
|
|
|
|
|
|
|
| |
Bump __FreeBSD_version accordingly.
Notes:
svn path=/head/; revision=130585
|
|
|
|
|
|
|
| |
Submitted by: Cyrille Lefevre
Notes:
svn path=/head/; revision=129597
|
|
|
|
|
|
|
|
|
| |
per letter dated July 22, 1999.
Approved by: core
Notes:
svn path=/head/; revision=127976
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
set it to avoid the need for a bunch of code that tests whether or
not the lock member is set to REQ_WIRED in order to determine which
length member should be used.
Fix another bug in the oldlen return value code.
Fix a potential wired memory leak if a sysctl handler uses
sysctl_wire_old_buffer() and returns an EAGAIN error to trigger
a retry.
Notes:
svn path=/head/; revision=127052
|
|
|
|
| |
Notes:
svn path=/head/; revision=126319
|
|
|
|
| |
Notes:
svn path=/head/; revision=126293
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the syscall arguments and does the suser() permission check, and
kern_mlock(), which does the resource limit checking and calls
vm_map_wire(). Split munlock() in a similar way.
Enable the RLIMIT_MEMLOCK checking code in kern_mlock().
Replace calls to vslock() and vsunlock() in the sysctl code with
calls to kern_mlock() and kern_munlock() so that the sysctl code
will obey the wired memory limits.
Nuke the vslock() and vsunlock() implementations, which are no
longer used.
Add a member to struct sysctl_req to track the amount of memory
that is wired to handle the request.
Modify sysctl_wire_old_buffer() to return an error if its call to
kern_mlock() fails. Only wire the minimum of the length specified
in the sysctl request and the length specified in its argument list.
It is recommended that sysctl handlers that use sysctl_wire_old_buffer()
should specify reasonable estimates for the amount of data they
want to return so that only the minimum amount of memory is wired
no matter what length has been specified by the request.
Modify the callers of sysctl_wire_old_buffer() to look for the
error return.
Modify sysctl_old_user to obey the wired buffer length and clean up
its implementation.
Reviewed by: bms
Notes:
svn path=/head/; revision=126253
|
|
|
|
|
|
|
| |
and pid.
Notes:
svn path=/head/; revision=126125
|
|
|
|
| |
Notes:
svn path=/head/; revision=122707
|
|
|
|
|
|
|
|
|
|
|
| |
sysctl that a given variable is tunable.
Also added is CTLFLAG_RDTUN, which is CTLFLAG_RD|CTLFLAG_TUN; TUN does
not always imply read-only, so RDTUN should be used where RD was used
before.
Notes:
svn path=/head/; revision=121305
|
|
|
|
|
|
|
| |
replace them with more meaningful defines.
Notes:
svn path=/head/; revision=120781
|
|
|
|
|
|
|
| |
Reminded by: ru
Notes:
svn path=/head/; revision=119212
|
|
|
|
|
|
|
|
| |
land applications by introducing the KERN_PROC_SV_NAME sysctl node,
which is searchable by PID.
Notes:
svn path=/head/; revision=117464
|
|
|
|
| |
Notes:
svn path=/head/; revision=116261
|
|
|
|
| |
Notes:
svn path=/head/; revision=116105
|
|
|
|
|
|
|
| |
Requested by: phk
Notes:
svn path=/head/; revision=116090
|
|
|
|
|
|
|
|
|
|
|
|
| |
userland, and the kernel. In the kernel by way of the 'ident[]' variable
akin to all the other stuff generated by newvers.sh. In userland it is
available to sysctl consumers via KERN_IDENT or 'kern.ident'. It is exported
by uname(1) by the -i flag.
Reviewed by: hackers@
Notes:
svn path=/head/; revision=116085
|
|
|
|
| |
Notes:
svn path=/head/; revision=112744
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in addition to secure level 1. The mask supports up to a secure level of 8
but only add defines through CTLFLAG_SECURE3 for now.
As per the missif in the log entry for 1.11 of ip_fw2.c which added the
secure flag to the IPFW sysctl's in the first place, change the secure
level requirement from 1 to 3 now that we have support for it.
Reviewed by: imp
With Design Suggestions by: imp
Notes:
svn path=/head/; revision=109246
|
|
|
|
|
|
|
|
|
|
| |
the children of a sysctl node, so that the arguments to the SYSCTL_NODE
macro can themselves be macros. It would be nice to use __CONCAT throughout
this file, but the macros are so large that it quickly becomes unweildly,
(4 nested __CONCATs).
Notes:
svn path=/head/; revision=108649
|
|
|
|
|
|
|
| |
This is a purely stylistic change.
Notes:
svn path=/head/; revision=105582
|
|
|
|
| |
Notes:
svn path=/head/; revision=104624
|