| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Notes:
svn path=/head/; revision=335598
|
|
|
|
|
|
|
|
| |
This avoids the need to have separate buffers and calls to sprintf for
various calls.
Notes:
svn path=/head/; revision=335591
|
|
|
|
|
|
|
|
|
|
| |
This also fixes -mio with 'T' set (thread-id instead of process-id).
This can go further by removing the existing sprintf, and using sbuf
directly. This will be done in a followup commit.
Notes:
svn path=/head/; revision=335590
|
|
|
|
| |
Notes:
svn path=/head/; revision=335589
|
|
|
|
|
|
|
|
|
|
|
| |
There is no documented reason for this not to be shown on the first run.
I can't find any good reason, and it breaks batch mode.
PR: 218889
Submitted by: "Jeremy C. Reed" <reed@reedmedia.net>
Notes:
svn path=/head/; revision=335576
|
|
|
|
|
|
|
|
|
|
| |
top(1) now builds without cast-qual warnings, so remove the exemption
for that.
Tested with clang, gcc7, gcc9
Notes:
svn path=/head/; revision=335552
|
|
|
|
|
|
|
|
| |
- remove a now-unused function
- remove needless indirection of handle type
Notes:
svn path=/head/; revision=335551
|
|
|
|
|
|
|
|
|
|
| |
On machines with more than 99 CPUs make room to display the entire
number.
Requested by: cperciva
Notes:
svn path=/head/; revision=335550
|
|
|
|
|
|
|
|
|
|
| |
When the load is "high" (an arbitrary value) top(1) previously moved the
cursor to the top-left of the screen as an acknowledgment. In practice,
on modern machines, even relatively slow ones, it looked more like a
glitch. Remove the logic.
Notes:
svn path=/head/; revision=335547
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current header formatting is a giant format string that changes
global state during the format process.
Make the following changes:
- use sbuf to build up the header rather than use the above
pseudo-dynamic one
- Change name length to 10
- Reduce size of RES and SIZE by making humanize more aggressive
- Restore a version number line to the copyright. This may be required
by the copyright (and may not be; its unclear)
This is also a pre-req to implementing TOPCOLOR from newer versions of
top(1)
Discussed with: allanjude, rpolka, danfe, rgrimes
Differential Revision: https://reviews.freebsd.org/D15801
Notes:
svn path=/head/; revision=335539
|
|
|
|
|
|
|
| |
Tested with full make universe
Notes:
svn path=/head/; revision=335535
|
|
|
|
|
|
|
| |
Show top itself by default, unless -t is specified.
Notes:
svn path=/head/; revision=335517
|
|
|
|
|
|
|
|
|
|
|
|
| |
We always install ELF Tool Chain's elfcopy as objcopy, so to avoid
confusion rename the src directory containing our reach-over Makefile
to match.
Requested by: jhb
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=335482
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=335469
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Many licenses on ar files contained small variations from the standard
FreeBSD license text. To avoid license proliferation switch to the usual
2-clause FreeBSD license after obtaining permission from all copyright
holders.
Approved by: jkoshy, kaiw, kientzle
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D14561
Notes:
svn path=/head/; revision=335454
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
LLD_BOOTSTRAP (build) is independent of LLD_IS_LD (installed) so they
should not be based on each other.
This is related to upcoming WITH_SYSTEM_LINKER work.
Reviewed by: emaste
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D15836
Notes:
svn path=/head/; revision=335447
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Observe:
printf "a\nb\nc\n" > /tmp/foo
# Next command results in no output
cat /tmp/foo | sort -m
# Next command results in proper output
cat /tmp/foo | sort -m -
# Also works:
sort -m /tmp/foo
Some const'ification was done to simplify the actual solution of adding "-"
explicitly to the file list if we didn't have any file arguments left over.
PR: 190099
MFC after: 1 week
Notes:
svn path=/head/; revision=335404
|
|
|
|
|
|
|
| |
I'm looking at sort(1) failures, for better or worse.
Notes:
svn path=/head/; revision=335403
|
|
|
|
| |
Notes:
svn path=/head/; revision=335397
|
|
|
|
|
|
|
| |
No functional change intended.
Notes:
svn path=/head/; revision=335395
|
|
|
|
| |
Notes:
svn path=/head/; revision=335390
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't call strerror on negative errnos
Reported by: Coverity
CID: 976708
Reviewed by: eadler
Differential Revision: https://reviews.freebsd.org/D15909
Notes:
svn path=/head/; revision=335381
|
|
|
|
|
|
|
|
|
|
| |
Three ar files have a non-standard variation of the BSD license, so
remove their SPDX tags.
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=335377
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Many licenses on ar files contained small variations from the standard
FreeBSD license text. To avoid license proliferation switch to the usual
standard 2-clause FreeBSD license for those files where I have obtained
permission from all of the listed copyright holders.
Approved by: jkoshy, kaiw
Differential Revision: https://reviews.freebsd.org/D14561
Notes:
svn path=/head/; revision=335376
|
|
|
|
| |
Notes:
svn path=/head/; revision=335360
|
|
|
|
|
|
|
|
|
|
| |
Fix an oversight from r334869 which made the same change, but only for
SMP systems. This avoids a segfault while D15801 is being reviewed.
Reviewed by: kevans
Notes:
svn path=/head/; revision=335359
|
|
|
|
|
|
|
| |
We already use caph library so this makes sense.
Notes:
svn path=/head/; revision=335312
|
|
|
|
|
|
|
|
| |
Rather than manually build signal masks use functions designed for that
reason. Also use sigprocmask instead of sigblock.
Notes:
svn path=/head/; revision=335310
|
|
|
|
|
|
|
|
|
| |
- prefer braces to abusing the `,` operator
- mark dead function as dead
- remove dead break
Notes:
svn path=/head/; revision=335265
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Aligns the build with the FreeBSD traditional approach to not build in
contrib/, and to track inter-dependencies between libraries.
With help from: bdrewery
Reviewed by: bdrewery, hselasky
Sponsored by: Mellanox Technologies
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D15648
Notes:
svn path=/head/; revision=335253
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We have an obsolete GNU objdump 2.17.50 in the base system, which will
be removed in the future. Suggest readelf(1) for examining ELF files
instead; for most use cases it is the preferred tool anyhow.
PR: 229046
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Notes:
svn path=/head/; revision=335213
|
|
|
|
| |
Notes:
svn path=/head/; revision=335188
|
|
|
|
|
|
|
| |
I wrote some, but not enough for the man page.
Notes:
svn path=/head/; revision=335134
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Broken in r334514
sysctlbyname("vfs.zfs.compressed_arc_enabled", ...) would return ENOMEM
while trying to read the sysctl (a boolean_t) into a bool, which is too small.
Reviewed by: jhb (on irc)
Sponsored by: Klara Systems
Notes:
svn path=/head/; revision=335099
|
|
|
|
|
|
|
|
|
|
|
|
| |
- remove __pure annotations I added earlier for some functions. One
writes to the the arguments as "out" pointers. The
other reads from an array, which while const within the function might
be mutated externally.
- total_change is modified to be at 1, if previously 0, so no if check
is needed.
Notes:
svn path=/head/; revision=335049
|
|
|
|
|
|
|
|
| |
- split return type from function name
- Sprinkle a __pure where possible.
Notes:
svn path=/head/; revision=335043
|
|
|
|
|
|
|
|
| |
At this point I've mucked enough with top(1) that all bugs should be
blamed on me rather than William LeFebvre.
Notes:
svn path=/head/; revision=335042
|
|
|
|
| |
Notes:
svn path=/head/; revision=335040
|
|
|
|
|
|
|
|
| |
Much of this should be inlined to the callsite, but leave it here for
now to make it easier to make it easier bisect later.
Notes:
svn path=/head/; revision=335039
|
|
|
|
|
|
|
|
| |
- Use humanize_number for format_k and format_k2
- Fix some style nits in format_time
Notes:
svn path=/head/; revision=335038
|
|
|
|
|
|
|
|
| |
For entries that are duplicates present them nicely rather than showing
two identical help entries. For ' ' present it as SPC
Notes:
svn path=/head/; revision=335037
|
|
|
|
|
|
|
|
|
|
|
| |
Continue my parade on introspection tools by fixing:
- failed to check for null after reallocf
- avoid the comma operator
- mark usage as dead
- correct size of len
Notes:
svn path=/head/; revision=335036
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- initialize all maybe uninitialized vars with bogus values. This shuts
up the compiler, and causes crashes if it changes later.
- mark noreturn as noreturn
- removed unused macro
- handle x_procstate as runtime rather than pre-processor
- avoid using void functions in condtionals
Tested with clang, gcc 7, gcc 9
Notes:
svn path=/head/; revision=335024
|
|
|
|
|
|
|
| |
CID: 1393352
Notes:
svn path=/head/; revision=335002
|
|
|
|
|
|
|
| |
CID: 1393351
Notes:
svn path=/head/; revision=335001
|
|
|
|
| |
Notes:
svn path=/head/; revision=334990
|
|
|
|
|
|
|
|
|
|
| |
- style(9)
- remove now-defunct comments
- remove getuid check for low delay
- expand range of format_k
Notes:
svn path=/head/; revision=334989
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This eliminates the difficult to follow mapping of a string list. It
moves numbers from "#define" into (more) debuggable enums. More
generally, it follows the trend of moving more data into a more central
mechanism.
The help output is a little worse: " " is not rendered well, and there
are duplicate entries, but that will be fixed in a followup.
Notes:
svn path=/head/; revision=334988
|
|
|
|
|
|
|
|
|
| |
Also update tests and the manpage.
GNU indent had the option earlier as -cs, let's not diverge unnecessarily.
Notes:
svn path=/head/; revision=334944
|
|
|
|
| |
Notes:
svn path=/head/; revision=334941
|