CVS log for src/usr.sbin/envstat/config.c
Up to [cvs.NetBSD.org] / src / usr.sbin / envstat
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Oct 6 19:08:34 2024 UTC (3 months, 1 week ago) by rillig
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +12 -14
lines
envstat: remove redundant local variables
This fixes the lint warnings about "effectively discards 'const'".
No binary change.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Nov 14 09:11:55 2020 UTC (4 years, 2 months ago) by mlelstv
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +80 -3
lines
For raw output (-x) allow to extract individual properties like drvctl -p.
E.g.
# envstat -x /vcmbox0/0/cur-value
328150000
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jun 7 00:51:48 2020 UTC (4 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +32 -31
lines
Update for proplib(3) API changes.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Aug 31 13:32:36 2011 UTC (13 years, 4 months ago) by joerg
Branches: MAIN
CVS tags: yamt-pagecache-tag8,
yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
yamt-pagecache,
tls-maxphys-base,
tls-maxphys,
tls-earlyentropy-base,
tls-earlyentropy,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
phil-wifi-base,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-localcount-base,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-localcount,
pgoyette-compat-merge-20190127,
pgoyette-compat-base,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
pgoyette-compat,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-8-base,
netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1,
netbsd-8,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7,
netbsd-6-base,
netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
netbsd-6,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus,
localcount-20160914,
is-mlppp-base,
is-mlppp,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
agc-symver-base,
agc-symver
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -3
lines
Use __dead
Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:46 2011 UTC (13 years, 6 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +6 -8
lines
Catchup with rmind-uvmplock merge.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jun 8 16:11:25 2011 UTC (13 years, 7 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -8
lines
Instead of relying on the want-percent attribute, use the sensor
type to restrict value-based limits from Battery-capacity sensors.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Oct 5 05:03:49 2010 UTC (14 years, 3 months ago) by pgoyette
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231,
cherry-xenmp-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: cherry-xenmp
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -3
lines
Apply proper conversion (which is _no_ conversion) when setting limit
values for sensors of type ENVSYS_INTEGER.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Feb 15 22:37:14 2010 UTC (14 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +58 -2
lines
Update userland envstat(8) to handle new {high,maximum}-capacity limits.
Revision 1.7.6.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:30:04 2008 UTC (16 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +61 -2
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Aug 22 11:27:50 2008 UTC (16 years, 5 months ago) by pgoyette
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2,
netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
netbsd-5,
matt-premerge-20091211,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b,
matt-mips64-base2,
jym-xensuspend-nbase,
jym-xensuspend-base,
jym-xensuspend
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +61 -2
lines
1. provide for warning-min and warning-max alarm levels in addition to
critical-min and critical-max; also, a battery warning-capacity is
added in addition to a critical-capacity.
2. usr.sbin/envstat is modified to introduce a -W command line switch to
display the warning-* values instead of the critical-* values, and
envstat(8) and envsys.conf(5) man pages are updated appropriately.
3. Treat user-defined limits as a single continuum and generate a single
event regardless of how many boundaries a change in sensor value
crosses; ditto for driver-defined limits.
Fixes my PR/39021
Fixes my PR/39022
OK'd by christos@ bouyer@ cube@
Revision 1.5.2.4: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:50:06 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.5.2.3: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.3: +11 -8
lines
sync with HEAD
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Feb 2 01:44:04 2008 UTC (16 years, 11 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-pf42-base,
yamt-pf42,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-nbase,
hpcarm-cleanup-base
Branch point for: wrstuden-revivesa
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -8
lines
Fix a bug in the 'refresh-timeout' device property that was giving
the same value to all devices even if the configuration file was
changed.
Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 9 02:01:58 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.5.2.2: preferred, colored
Changes since revision 1.5.2.2: +113 -15
lines
sync with HEAD
Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Nov 16 08:01:37 2007 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
CVS tags: matt-armv6-base,
cube-autoconf-base,
cube-autoconf
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +113 -15
lines
Implement the 'refresh-timeout' property in device blocks for the
configuration files. This sets the timeout value that will be used
to check for critical limits.
The value can be viewed by the 'envstat -D' command.
Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:36:23 2007 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.5.2.1: preferred, colored
Changes since revision 1.5.2.1: +511 -0
lines
sync with HEAD
Revision 1.5.2.1
Tue Oct 9 08:00:46 2007 UTC (17 years, 3 months ago) by matt
Branches: matt-armv6
FILE REMOVED
Changes since revision 1.5: +0 -511
lines
file config.c was added on branch matt-armv6 on 2007-11-06 23:36:23 +0000
Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Oct 9 08:00:46 2007 UTC (17 years, 3 months ago) by xtraeme
Branches: MAIN
Branch point for: matt-armv6
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +36 -3
lines
- Do not allow a 'critical-{max,min}' property in battery
sensors (those that contain the 'want-percentage' object on its
dictionary), the 'critical-capacity' prop must be used instead.
- When setting a 'critical-{max,min}' property check if the value is
higher than the 'max-value' or lower than the 'min-value' on its
dictionary, raise an error if it's true.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Oct 9 02:29:37 2007 UTC (17 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -3
lines
Fix a typo that prevented a 'critical-capacity' property to
be added.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Oct 7 16:22:37 2007 UTC (17 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -4
lines
If a critical-capacity property is found, make sure that the
'monitoring-supported' object is true.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Oct 7 13:48:03 2007 UTC (17 years, 3 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +16 -9
lines
Use two global dictionaries rather than only one:
- use one for temporary sensor dictionaries.
- use one as the dictionary that will be returned to send_dictionary().
This fixes multiple settings in multiple devices.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Oct 7 04:16:47 2007 UTC (17 years, 3 months ago) by xtraeme
Branches: MAIN
New configuration file format for the envsys framework:
foo0 {
#
# CPU Temperature
#
sensor0 {
critical-max = 70C;
critical-min = 20C;
}
...
}
...
Removed the -m flag that was previously used to set properties for
sensors. Now the -c flag will process all properties specified in
the file (accepted as argument).
To remove all properties that were set, the new -S flag can be used.
This will restore default values for all devices.
CVSweb <webmaster@jp.NetBSD.org>