summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/pigs.c
Commit message (Collapse)AuthorAgeFilesLines
* ANSIfy and remove register.delphij2008-01-161-10/+8
| | | | Resulting binary verified with strip(1)+md5(1).
* - Move all of the PS_ flags into either p_flag or td_flags.jeff2007-09-171-1/+1
| | | | | | | | | | | | | | - p_sflag was mostly protected by PROC_LOCK rather than the PROC_SLOCK or previously the sched_lock. These bugs have existed for some time. - Allow swapout to try each thread in a process individually and then swapin the whole process if any of these fail. This allows us to move most scheduler related swap flags into td_flags. - Keep ki_sflag for backwards compat but change all in source tools to use the new and more correct location of P_INMEM. Reported by: pho Reviewed by: attilio, kib Approved by: re (kensmith)
* - Stop computing %CPU for the imaginary idle process; we nowru2007-09-111-54/+6
| | | | | | | | | | | | have real idle processes for that. - Fix the display on SMP by not scaling the sum of %CPU down to 1. Instead, display raw data as computed by the kernel, like in top(1). Reviewed by: bde Approved by: re (bmah) MFC after: 1 week
* Consistently mark percentage scales as such.yar2006-11-271-1/+1
| | | | | PR: bin/101975 MFC after: 3 days
* Show the load average in the tcp display (it was already shown, perhapsbde2006-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | not very usefully, in all other displays). This was the original point of the PR. Move the load average up by 2 so that it starts in row 0 for all windows (2 lines above it were wasted for all other windows except vmstat). Move everything below it up by 2 or 3 (3 for icmp and icmp6 which had an extra blank line due from not compensating for the foot-shooting in note (3); only ip and ip6 compensated). Reduce the magic numbers related to this. Notes by the submitter: %%% 1. All the subwin() calls are identical using #define MAINWIN_ROW 3 (systat.h). 2. The load average is at the top of the window. 3. Each display starts on the fourth line. I made changes to those displays that shifted the start line (i.e., icmp). This entailed a lot of changes within the comments at the top of those displays. 4. For ip6, I shifted the "Input next-header histogram" column down one row to separate it from "IPv6 Output". I raised "bad scope packets" and "address selection failed" up one row to stay with "IPv6 Input" (valid?). They were down one row to probably line up at the bottom, but I think they should stick with their fellow items in a column. 5. I condensed ifstat a bit. It had a lot of empty rows. %%% Submitted by: Se=E1n Farley <sean-freebsd at farley dot org> PR: bin/81874
* Include systat.h for cmdtab, to make gcc4 happy.delphij2005-05-021-0/+1
|
* Include <sys/proc.h> for the definition of PS_INMEM instead ofbde2004-04-141-3/+2
| | | | | | depending on namespace pollution in <sys/user.h>. Reduced nearby include messes.
* Remove #include <sys/dkstat.h>phk2003-02-161-1/+0
|
* Remove previously unneeded and now incorrect cast of user_from_uid()dwmalone2002-04-131-7/+7
| | | | | to a char *. Fix up vendor ID.
* remove __Pimp2002-03-221-1/+1
|
* WARNS=2 fixes with NO_WERROR set, as there are some header issuesmarkm2001-12-121-21/+24
| | | | with namelists. use __FBSDID().
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-101-1/+0
|
* Compensate for header dethreading.markm2001-05-011-0/+1
|
* Catch up to new proc flags.jhb2001-01-241-1/+1
|
* Change the proc information returned from the kernel so that itmckusick2000-12-121-10/+6
| | | | | | | | | | | | no longer contains kernel specific data structures, but rather only scalar values and structures that are already part of the kernel/user interface, specifically rusage and rtprio. It no longer contains proc, session, pcred, ucred, procsig, vmspace, pstats, mtx, sigiolst, klist, callout, pasleep, or mdproc. If any of these changed in size, ps, w, fstat, gcore, systat, and top would all stop working. The new structure has over 200 bytes of unassigned space for future values to be added, yet is nearly 100 bytes smaller per entry than the structure that it replaced.
* fix another int/long type mismatch. This one was causing pigs togallatin2000-12-011-1/+1
| | | | die with an fpe on alpha because fscale wasn't properly initted
* o make systat/pigs.c use syctl() to retrieve cp_time, fscale, and ccpurwatson2000-11-251-27/+32
| | | | instead of using kmem.
* systat is way too comfortable with curses internals...peter1999-08-301-2/+2
|
* Fixed type mismatches which were fatal when sizeof(long) > sizeof(int).bde1998-07-061-2/+2
|
* o Use snprintf rather than sprintfimp1998-06-091-1/+1
| | | | | | | | | | | o Add more checks for buffer overflows o Use snprintf rather than strcat/cpy and have better checks for max length exceeded. Most of these changes are not exploitable buffer overruns, but it never hurts to be safe. Inspired by and obtained from: OpenBSD
* Fix: too many arguments for format in call to sprintf().jdp1997-11-181-1/+1
|
* Really eliminated includes of the "temporary" backwards compatibilitybde1996-09-241-1/+0
| | | | | header <sys/dir.h> in applications. My previous sweep didn't find the places that included it without needing it.
* #include <sys/user.h>phk1995-10-291-0/+1
|
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+245
OpenPOWER on IntegriCloud