| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Replace it with another one, selected from current in-tree uses.
MFC after: 1 day
Sponsored by: The FreeBSD Foundation
|
|
|
|
| |
Add information of where one may use this API.
|
| |
|
|
|
|
|
| |
MFC after: 3 days
Pull Request: https://github.com/freebsd/freebsd-src/pull/839
|
|
|
|
| |
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
|
|
|
|
|
|
|
| |
Was missing from c3220d0b6d72a1ed0ccfa188f0dfceef74421ab9.
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/719
|
|
|
|
|
|
|
|
|
|
| |
The sysctl man page cautions against negative-sense boolean sysctls
(foobar_disable), but it gets lost at the end of a large paragraph.
Move it to a separate paragraph in an attempt to make it more clear.
This man page could use a more holistic review and edit pass. This
change is simple and straightforward and I hope provides a small but
immediate benefit.
|
|
|
|
|
|
|
|
|
|
| |
- missing comma before name: Nm SYSCTL_UQUAD
- bad NAME section content: text
MFC after: 1 week
Notes:
svn path=/head/; revision=368798
|
|
|
|
| |
Notes:
svn path=/head/; revision=365062
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch is a follow-up to r344518.
Reported by: ngie
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D24165
Notes:
svn path=/head/; revision=359238
|
|
|
|
|
|
|
|
|
| |
I did not bump .Dd since there is no content change.
MFC after: 3 days
Notes:
svn path=/head/; revision=351224
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
New sysctl/tunables can now set the interval (in seconds) between
rate-limited crypto warnings. The new sysctls are:
- kern.cryptodev_warn_interval for /dev/crypto
- net.inet.ipsec.crypto_warn_interval for IPsec
- kern.kgssapi_warn_interval for KGSSAPI
Reviewed by: cem
MFC after: 1 month
Relnotes: yes
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D20555
Notes:
svn path=/head/; revision=348970
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This documents the behavior of sysctl_msec_to_ticks and
SYSCTL_{ADD,}_SBINTIME_[UM]SEC.
Reviewed by: cem
MFC after: 1 week
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D20596
Notes:
svn path=/head/; revision=348969
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From Jake:
The iflib core never modifies the isc_driver_version string. Allow
drivers to safely assign pointers to constant buffers by marking this
parameter const.
Submitted by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed by: erj@, gallatin@, jhb@
MFC after: 1 week
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D19577
Notes:
svn path=/head/; revision=345312
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the diff to include other missing sysctl types found in sysctl.h.
Some of these sysctls are already documented in other pages (e.g counter(9)
and ZONE(9)), but they should at least be mentioned here for completeness.
This patch now documents all of the following:
- SYSCTL_BOOL/SYSCTL_ADD_BOOL
- SYSCTL_COUNTER_U64/SYSCTL_ADD_COUNTER_U64
- SYSCTL_COUNTER_U64_ARRAY/SYSCTL_ADD_COUNTER_U64_ARRAY
- SYSCTL_SBINTIME_MSEC/SYSCTL_ADD_SBINTIME_MSEC
- SYSCTL_SBINTIME_USEC/SYSCTL_ADD_SBINTIME_USEC
- SYSCTL_UMA_CUR/SYSCTL_ADD_UMA_CUR
- SYSCTL_UMA_MAX/SYSCTL_ADD_UMA_MAX
Submitted by: mhorne063_gmail.com
Reviewed by: bcr, hselasky
Approved by: bcr (doc), hselasky (src)
Approved by: krion (mentor, implicit), mat (mentor, implicit)
Differential Revision: https://reviews.freebsd.org/D19272
Notes:
svn path=/head/; revision=344518
|
|
|
|
|
|
|
|
|
|
| |
instead of <sys/types.h>. (<sys/sysctl.h> includes NULL, which is defined
with <sys/param.h> and not <sys/types.h>.)
Sponsored by: Netflix
Notes:
svn path=/head/; revision=334490
|
|
|
|
| |
Notes:
svn path=/head/; revision=330372
|
|
|
|
| |
Notes:
svn path=/head/; revision=330368
|
|
|
|
|
|
|
|
|
| |
Reported by: Shawn Webb
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=324509
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I'm currently working on writing a metrics exporter for the Prometheus
monitoring system to provide access to sysctl metrics. Prometheus and
sysctl have some structural differences:
- sysctl is a tree of string component names.
- Prometheus uses a flat namespace for its metrics, but allows you to
attach labels with values to them, so that you can do aggregation.
An initial version of my exporter simply translated
hw.acpi.thermal.tz1.temperature
to
sysctl_hw_acpi_thermal_tz1_temperature_celcius
while we should ideally have
sysctl_hw_acpi_thermal_temperature_celcius{thermal_zone="tz1"}
allowing you to graph all thermal zones on a system in one go.
The change presented in this commit adds support for accomplishing this,
by providing the ability to attach labels to nodes. In the example I
gave above, the label "thermal_zone" would be attached to "tz1". As this
is a feature that will only be used very rarely, I decided to not change
the KPI too aggressively.
Discussed on: hackers@
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D8775
Notes:
svn path=/head/; revision=310051
|
|
|
|
| |
Notes:
svn path=/head/; revision=306450
|
|
|
|
|
|
|
| |
MFC after: 1 month
Notes:
svn path=/head/; revision=301590
|
|
|
|
|
|
|
|
|
| |
additional misspellings detected by igor.
MFC after: 1 week
Notes:
svn path=/head/; revision=298904
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add S8, S16, S32, and U32 types; add SYSCTL*() macros for them, as well
as for the existing 64-bit types. (While SYSCTL*QUAD and UQUAD macros
already exist, they do not take the same sort of 'val' parameter that
the other macros do.)
Clean up the documented "types" in the sysctl.9 document. (These are
macros and thus not real types, but the manual page documents intent.)
The sysctl_add_oid(9) arg2 has been bumped from intptr_t to intmax_t to
accommodate 64-bit types on 32-bit pointer architectures.
This is just the kernel support piece; the userspace sysctl(1) support
will follow in a later patch.
Submitted by: Ravi Pokala <rpokala@panasas.com>
Reviewed by: cem
Relnotes: no
Sponsored by: Panasas
Differential Revision: https://reviews.freebsd.org/D4091
Notes:
svn path=/head/; revision=290475
|
|
|
|
|
|
|
|
| |
Suggested by: ngie
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=289831
|
|
|
|
|
|
|
|
|
|
| |
precision. Update input as well. Add IK to the manual (it was missing
completely).
Differential Revision: https://reviews.freebsd.org/D3181
Notes:
svn path=/head/; revision=285994
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Wrong integer type was specified.
- Wrong or missing "access" specifier. The "access" specifier
sometimes included the SYSCTL type, which it should not, except for
procedural SYSCTL nodes.
- Logical OR where binary OR was expected.
- Properly assert the "access" argument passed to all SYSCTL macros,
using the CTASSERT macro. This applies to both static- and dynamically
created SYSCTLs.
- Properly assert the the data type for both static and dynamic
SYSCTLs. In the case of static SYSCTLs we only assert that the data
pointed to by the SYSCTL data pointer has the correct size, hence
there is no easy way to assert types in the C language outside a
C-function.
- Rewrote some code which doesn't pass a constant "access" specifier
when creating dynamic SYSCTL nodes, which is now a requirement.
- Updated "EXAMPLES" section in SYSCTL manual page.
MFC after: 3 days
Sponsored by: Mellanox Technologies
Notes:
svn path=/head/; revision=273377
|
|
|
|
|
|
|
|
| |
absolutely not documented, I see no reason in long descriptions
here.
Notes:
svn path=/head/; revision=271615
|
|
|
|
|
|
|
| |
- Sort sections
Notes:
svn path=/head/; revision=271314
|
|
|
|
|
|
|
|
| |
Suggested by: Garrett Cooper <yaneurabeya@gmail.com>
PR: 192101
Notes:
svn path=/head/; revision=269439
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SYSCTL code. Added description of new macros and functions.
- Merged dynamic and static SYSCTL related content into a single
manual page, hence parameters and functionality is very much the same.
- Uppercased all occurrences of "OID".
- Updated all SYSCTL examples.
PR: 192101
Notes:
svn path=/head/; revision=269344
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Clarify that exactly one of the "access" flags is required and
list the optional flags in a separate list. Prefer bundling
CTLFLAG_TUN into the access flag by not documenting it as an
optional flag to set.
Approved by: re (glebius)
MFC after: 1 week
Notes:
svn path=/head/; revision=255498
|
|
|
|
|
|
|
|
|
| |
PR: 168117
Submitted by: Nobuyuki Koganemaru (kogane&jp!freebsd!org)
MFC after: 3 days
Notes:
svn path=/head/; revision=235693
|
|
|
|
|
|
|
|
|
|
| |
system tunable has never been implemented. This flag is only used by sysctl(8)
to provide a helpful error message.
Discussed with: dwhite, kan
Notes:
svn path=/head/; revision=232321
|
|
|
|
|
|
|
| |
existing uses. Rename sysctl_handle_quad() to sysctl_handle_64().
Notes:
svn path=/head/; revision=217616
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reading. (This was already done for writing to a sysctl). This
requires all SYSCTL setups to specify a type. Most of them are now
checked at compile-time.
Remove SYSCTL_*X* sysctl additions as the print being in hex should be
controlled by the -x flag to sysctl(8).
Succested by: bde
Notes:
svn path=/head/; revision=217586
|
|
|
|
|
|
|
| |
Approved by: ed (mentor)
Notes:
svn path=/head/; revision=202443
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Notes:
svn path=/head/; revision=165213
|
|
|
|
|
|
|
| |
Discussed in: cvs-src (some time ago)
Notes:
svn path=/head/; revision=164560
|
|
|
|
| |
Notes:
svn path=/head/; revision=162877
|
|
|
|
|
|
|
| |
the same, except sysctl(8) will print out the values in hex.
Notes:
svn path=/head/; revision=161256
|
|
|
|
| |
Notes:
svn path=/head/; revision=161253
|
|
|
|
|
|
|
| |
Reviewed by: rwatson
Notes:
svn path=/head/; revision=158130
|
|
|
|
|
|
|
|
| |
MFC after: 1 month
Submitted by: Antoine Brodin <antoine dot brodin@laposte dot net>
Notes:
svn path=/head/; revision=158122
|
|
pages existed only for the dynamic sysctl interfaces. There's probably
more complete and accurate content, better advice, etc, that could be added
here.
Per scottl's suggest, add a small piece of moralizing text regarding the
fact that sysctl names quickly get embedded in system configuration files,
libraries, third party applications, and even books, so renaming and
removing names after they've been published is a tricky issue.
MFC after: 1 month
Notes:
svn path=/head/; revision=158110
|