Home | History | Annotate | Download | only in sysmon
History log of /src/sys/dev/sysmon/swsensor.c
RevisionDateAuthorComments
 1.20  10-Feb-2024  andvar Fix various typos in comments, log messages and documentation.
 1.19  31-Dec-2021  riastradh sysmon: Delete trailing whitespace. No functional change intended.
 1.18  11-Jun-2020  thorpej Update for proplib(3) API changes.
 1.17  08-Jun-2020  thorpej Update for proplib(3) API changes.
 1.16  16-Mar-2020  pgoyette Use the module subsystem's ability to process SYSCTL_SETUP() entries to
automate installation of sysctl nodes.

Note that there are still a number of device and pseudo-device modules
that create entries tied to individual device units, rather than to the
module itself. These are not changed.
 1.15  25-Apr-2015  pgoyette branches: 1.15.18;
Remove another debug printf() that snuck in.
 1.14  23-Apr-2015  pgoyette Update module dependencies for all the existing modules that depend on sysmon components.
 1.13  27-Aug-2012  pgoyette branches: 1.13.2; 1.13.16;
Add hw.swsensor.state variable for additional control capability.
 1.12  19-Jun-2011  pgoyette branches: 1.12.2; 1.12.8;
Use {...} to prevent premature exit from initialization function - this
lets the atf tests run again.

Move validation of current value vs min/max into the refresh routine
where it will get checked every time, not just at initialization.

While here, do a little more housekeeping:
- Retrieve numeric property value once
- Ensure that a numeric-specified sensor type is valid
- printout any unrecognized properties (DEBUG only)
 1.11  19-Jun-2011  pgoyette Use correct routine to retrieve string value from prop-dictionary
 1.10  19-Jun-2011  pgoyette Rather than requiring the user to know the internal encoding of sensor
types, allow the user to specify the type using the units description.

XXX Numeric specification is still permitted but will be removed soon.
 1.9  04-Jun-2011  pgoyette Remove ability to the value_avg since it no longer exists
 1.8  04-Jun-2011  pgoyette Enable creation of value_{max,min,avg} entries via the proplist, as well
as setting the ENVSYS_FPERCENT flag
 1.7  17-Dec-2010  pooka branches: 1.7.2; 1.7.6; 1.7.8;
use aprint
 1.6  16-Dec-2010  pgoyette Also allow specification of sensor's initial value when it is loaded,
using "-i value=<value>".

Suggested by njoly@
 1.5  11-Dec-2010  pgoyette Enhance the swsensor(4) pseudo-device's capabilities to emulate more
sensor types
 1.4  23-Oct-2010  pooka Revert 1.2 apart from incorrect comment. the devattach() routine
is of course still used by kernel&config pseudodev.

pointed out by jakllsch
 1.3  20-Oct-2010  pooka branches: 1.3.2;
Set sensor state to valid upon refresh to make things generally work.

pgoyette ok
 1.2  20-Oct-2010  pooka remove unused routine (per comment)
 1.1  19-Oct-2010  pgoyette Add a new software-only sensor device. This is intended for use as a
kernel module, and can be helpful to generate sysmon_envsys events
when creating/modifying powerd scripts. This will also be used in an
upcoming series of atf tests for sysmon_envsys itself.
 1.3.2.3  06-Nov-2010  uebayasi Sync with HEAD.
 1.3.2.2  22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.3.2.1  20-Oct-2010  uebayasi file swsensor.c was added on branch uebayasi-xip on 2010-10-22 07:22:17 +0000
 1.7.8.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.7.6.3  12-Jun-2011  rmind sync with head
 1.7.6.2  05-Mar-2011  rmind sync with head
 1.7.6.1  17-Dec-2010  rmind file swsensor.c was added on branch rmind-uvmplock on 2011-03-05 20:54:08 +0000
 1.7.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.12.8.1  17-Oct-2012  riz Pull up following revision(s) (requested by pgoyette in ticket #546):
sys/dev/sysmon/swsensor.c: revision 1.13
share/man/man4/swsensor.4: revision 1.11
share/man/man4/swsensor.4: revision 1.12
Add hw.swsensor.state variable for additional control capability.
Mention the new sysctl variable just created.
Drop trailing whitespace.
 1.12.2.1  30-Oct-2012  yamt sync with head
 1.13.16.1  06-Jun-2015  skrll Sync with HEAD
 1.13.2.1  03-Dec-2017  jdolecek update from HEAD
 1.15.18.1  08-Apr-2020  martin Merge changes from current as of 20200406

RSS XML Feed