Commit Graph

24 Commits

Author SHA1 Message Date
dholland e3566c1bef Fix illegal snprintf usage noted in PR 47976 by simplifying it away:
instead of consing up a string and printing it to stdout, just print
to stdout. Not as compositionally tidy, but much simpler and perfectly
adequate here.
2014-07-27 04:46:48 +00:00
joerg bec77c5f43 Use __dead 2011-08-31 13:32:36 +00:00
jruoho 3ce23e1c1e Use a better width for the list. 2011-03-21 15:35:21 +00:00
rmind c873419d8f Skip LSIDL and LSZOMB threads when retrieving info. 2009-05-16 23:59:56 +00:00
lukem d877c4c3c0 Enable WARNS=4 by default, except for:
cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
lukem 3cafe960ea fix -Wsign-compare issues 2009-01-18 10:10:47 +00:00
rmind d5ea013e1d Disallow user priority adjustments for SCHED_OTHER policy, simplify
convert_pri().  Sync schedctl(8) with the change.  Closes PR/38009.
2008-10-18 03:40:18 +00:00
wiz ce55a7f589 Bump date for previous. 2008-06-22 14:51:45 +00:00
ad 44eb18fda8 Add a dumb, mostly Solaris-compatible psrset command. It's missing some
options. Without it there's no easy way to test or use processor sets.
2008-06-22 13:53:59 +00:00
rmind 481ae1556f - Add general cpuset macros.
- Use kcpuset name for kernel-only functions.
- Use cpuid_t to specify CPU ID.
- Unify all cpuset users.

API is expected to be stable now.
2008-06-16 01:41:20 +00:00
rmind 4f3b567e80 Sync with the latest cpuset changes. 2008-06-15 23:30:51 +00:00
ad 355c5b9e63 Fix busted test. 2008-05-29 11:32:07 +00:00
wiz 20eb39d315 Sort options in usage. 2008-05-26 08:15:37 +00:00
ad e25a4f7edc Allow starting a new process with the specified parameters. For example:
# schedctl -C SCHED_FIFO top
2008-05-25 23:22:16 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
ad 1f959cb4ab Use symbolic names for -C. 2008-04-28 16:52:17 +00:00
xtraeme 3ce1136f19 showcpuset: check the correct variable against NULL after calling malloc(3). 2008-03-24 10:33:17 +00:00
xtraeme fc83e8aa5f - Improve usage().
- Replace malloc+memset(foo, 0, ...) with calloc calls.
2008-03-24 10:22:41 +00:00
yamt 603e4b9abd update for _sched_{get,set}param changes. from rmind@. 2008-02-09 17:01:51 +00:00
rmind ef515ac1dc Use _SC_NPROCESSORS_CONF instead of MAXCPUS. 2008-01-26 17:52:08 +00:00
wiz a7f30b5c9c Sort options. Remove superfluous .Pp. Grammar improvements.
Simplify macro usage. Use more macros.
2008-01-26 14:27:42 +00:00
xtraeme 4ecda2ed63 Fixed two warnings:
- Missing .El directive.
	- Fix .Bl width argument.

Not being wizd yet, but I try...
2008-01-25 00:05:35 +00:00
rmind 75f3a93931 Add schedctl(8) manual page.
/etc/rc.d/wizd start
2008-01-24 19:34:05 +00:00
rmind 5c71a4d49f Implementation of processor-sets, affinity and POSIX real-time extensions.
Add schedctl(8) - a program to control scheduling of processes and threads.

Notes:
- This is supported only by SCHED_M2;
- Migration of LWP mechanism will be revisited;

Proposed on: <tech-kern>. Reviewed by: <ad>.
2008-01-15 03:37:10 +00:00