History log of /netbsd/bin/ps/print.c (Results 1 – 25 of 138)
Revision Date Author Comments
# eed3c295 26-Jan-2022 andvar <andvar@NetBSD.org>

remove double t from targeted, add missing r to arbitrary
And fix few more typos along the way in comments and man pages.


# d92ffdbe 14-Sep-2021 christos <christos@NetBSD.org>

use emalloc and friends, add ktrace flag printing.


# 973821ef 14-Sep-2021 christos <christos@NetBSD.org>

Provide symbolic printing of some keywords by capitalizing them.


# e49e15dc 17-Apr-2021 maya <maya@NetBSD.org>

Remove SCCS workaround. No binary change.


# 96e84b1f 06-Apr-2021 christos <christos@NetBSD.org>

- dedup code
- add a safe_strftime() to handle error cases


# 7e983553 06-Apr-2021 simonb <simonb@NetBSD.org>

Fix the column width calculation for the lstart column if an empty
column header is specified.

Fixes bug pointed out by Ted Spradley in
https://mail-index.netbsd.org/netbsd-users/2021/04/05/msg02680

Fix the column width calculation for the lstart column if an empty
column header is specified.

Fixes bug pointed out by Ted Spradley in
https://mail-index.netbsd.org/netbsd-users/2021/04/05/msg026808.html .

show more ...


# fb307124 19-Jun-2019 kamil <kamil@NetBSD.org>

Add a fallback definition of LSDEAD in ps(1)

The symbol is no longer available in headers.

Requested by <mrg>


# 3aa9e486 18-Jun-2019 kamil <kamil@NetBSD.org>

Make LSDEAD usage conditional

LSDEAD is not used since NetBSD-5.0 and will be gone.

The same conditional usage is already in ps.c in the same program.


# b488e10e 19-Sep-2018 maxv <maxv@NetBSD.org>

Don't display l_wchan, either there is something in l_wmesg and we display
it, or there's nothing and we print "-".


# 71097a5a 11-Apr-2018 christos <christos@NetBSD.org>

use EXIT_FAILURE instead of 1


# 675d8f39 09-Dec-2017 kamil <kamil@NetBSD.org>

ps: Rename local routine name from uname to usrname

This removes symbol name routine clash with libc's uname(3).
This allows to build ps(1) against LLVM Sanitizers.

Sponsored by <The NetBSD Foundat

ps: Rename local routine name from uname to usrname

This removes symbol name routine clash with libc's uname(3).
This allows to build ps(1) against LLVM Sanitizers.

Sponsored by <The NetBSD Foundation>

show more ...


# d48ad37f 12-Dec-2016 christos <christos@NetBSD.org>

Handle functions that use the offset from either kinfo_proc2/kinfo_lwp properly.


# b82f6d00 02-Dec-2016 christos <christos@NetBSD.org>

provide a tree like display with -d, from FreeBSD


# ac2209ae 28-Nov-2016 rin <rin@NetBSD.org>

Calculate CPU usage (pcpu) once per process if it is required. This change
significantly improves performance for slow machines when output is sorted
by pcpu.

ok martin


# 50de9411 28-Nov-2016 rin <rin@NetBSD.org>

for donlist{,_sysctl}:
- obtain log_ccpu = log(ccpu) rather than ccpu itself
- use common default values and warn users appropriately when errors occur
ok martin


# d1cc86a2 15-Nov-2014 joerg <joerg@NetBSD.org>

Use l_wmesg if the string is not empty. Don't bother checking l_name for
nullness.


# a24701d6 20-Apr-2014 dholland <dholland@NetBSD.org>

Use an enum type for PRINTMODE vs. WIDTHMODE. Compiler output diffs have
been checked.


# 1878b5ee 15-Jan-2014 mlelstv <mlelstv@NetBSD.org>

Add an LTIME column that prints lwp cputime.


# 27323380 20-Mar-2012 matt <matt@NetBSD.org>

Use C89 function definitions


# b95ba84d 13-Feb-2012 wiz <wiz@NetBSD.org>

Remove unused variable.
From cppcheck via Henning Petersen in PR 46002.


# 1c35bc9e 13-Jun-2011 dholland <dholland@NetBSD.org>

When converting from pages to kilobytes, cast the return value of
getpagesize() to size_t. For some reason getpagesize() is defined to
return int, and several of the page counts we get come back from

When converting from pages to kilobytes, cast the return value of
getpagesize() to size_t. For some reason getpagesize() is defined to
return int, and several of the page counts we get come back from the
kernel as int32_t; in LP64 without the cast the byte count will be
computed in a 32-bit value and for large processes will overflow and
become negative... and then remain negative when divided by 1024 to
convert to kilobytes.

Fixes a problem I hit the other day where I saw negative RSS, which
turns out also to be PR 40642.

Note: other logic in here will break down when we first get >2TB
processes... and int32 page counts will break on >8TB processes. But
hopefully we won't see any of that for a few years yet.

show more ...


# 5083f15b 22-Jan-2011 christos <christos@NetBSD.org>

fix previous.


# f96bd3f9 22-Jan-2011 christos <christos@NetBSD.org>

Make printing of lwp flags similar to the process one, identifying (O)nproc
(K)ernel threads and scheduler (a)ctivations.


# c45af204 28-Jul-2010 njoly <njoly@NetBSD.org>

Do not check pcpu value against 100.0 but rather 99.95, to properly
deal with value rounding. From apb@.


# 0697f9d2 27-Jul-2010 njoly <njoly@NetBSD.org>

Make %cpu drop the decimal part when reaching 100%, to stay in the 5
expected columns.


123456