#
5e3934b1 |
|
24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.bin: Automated cleanup of cdefs and other formatting Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
|
#
8f9f7b4a |
|
16-Oct-2023 |
Brooks Davis <brooks@FreeBSD.org> |
procstat auxv: widen COMM column to MAXCOMLEN For reasons unknown, procstat subcommands typically display the command in a 16+overflow column format. However, the command may be up to MAXCOMLEN (19) characters long causing the column to spill into the next one. Since there's plenty of room in the auxv case, bump the column width up to 19 to avoid this issue. While this is a format change 1) users who want to parse the data should use libxo output and 2) this makes it possible to parse reliably with cut. Reviewed by: markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D42202
|
#
1d386b48 |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
|
10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
|
#
1d280f21 |
|
15-Sep-2022 |
Konstantin Belousov <kib@FreeBSD.org> |
procstat(1): print AT_USRSTACKBASE and AT_USRSTACKLIM Reviewed by: brooks, imp (previous version) Discussed with: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D36540
|
#
01c77a43 |
|
11-Nov-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
Pass vdso address to userspace Reviewed by: emaste Discussed with: jrtc27 Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 month Differential revision: https://reviews.freebsd.org/D32960
|
#
0864ab3d |
|
13-Nov-2021 |
Konstantin Belousov <kib@FreeBSD.org> |
procstat auxv: print out FXRNG Sponsored by: The FreeBSD Foundation MFC after: 1 week
|
#
b65eb2f8 |
|
27-Sep-2020 |
Konstantin Belousov <kib@FreeBSD.org> |
Consistently use __FBSDID("FreeBSD") for ids in usr.bin/procstat. Submitted by: Juraj Lutter <juraj@lutter.sk> MFC after: 1 week Differential revision: https://reviews.freebsd.org/D26568
|
#
3780fcd9 |
|
15-Apr-2020 |
Brooks Davis <brooks@FreeBSD.org> |
Add procstat support for AT_ flags added in r359988. This includes argc, argv, envc, envv, and ps_strings. Reviewed by: kib Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D24407
|
#
944cf37b |
|
08-Feb-2020 |
Konstantin Belousov <kib@FreeBSD.org> |
Add AT_BSDFLAGS auxv entry. The intent is to provide bsd-specific flags relevant to interpreter and C runtime. I did not want to reuse AT_FLAGS which is common ELF auxv entry. Use bsdflags to report kernel support for sigfastblock(2). This allows rtld and libthr to safely infer the syscall presence without SIGSYS. The tunable kern.elf{32,64}.sigfastblock blocks reporting. Tested by: pho Disscussed with: cem, emaste, jilles Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D12773
|
#
8a250c75 |
|
10-Jun-2019 |
Mitchell Horne <mhorne@FreeBSD.org> |
procstat: Recognize HWCAP and HWCAP2 with auxv command The two most recent additions to the elf auxiliary vector are HWCAP and HWCAP2 which describe platform specific cpu capabilities. Make procstat recognize these fields so that they aren't displayed as UNKNOWN. Reviewed by: trociny, markj Approved by: markj (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D20582
|
#
6d7f9194 |
|
29-Oct-2018 |
John Baldwin <jhb@FreeBSD.org> |
Teach procstat -x about the AT_EHDRFLAGS ELF auxiliary vector. Submitted by: Shawn Webb <lattera@gmail.com> Reviewed by: brooks Obtained from: HardenedBSD (bb71e9889d1362df01c2e5162e84cd7a4fc029c8) MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D17067
|
#
1de7b4b8 |
|
27-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
various: general adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended.
|
#
2a243b95 |
|
14-Oct-2017 |
Brooks Davis <brooks@FreeBSD.org> |
Switch procstat from subcommand flags to verbs - Use an enumerated value instead of separate flags for commands - Look for a verb if no command flag is set - Lookup the "xocontainer" value based on the command - Document the new command verbs in the man-page Submitted by: kdrakehp@zoho.com Differential Revision: https://reviews.freebsd.org/D10916
|
#
dafe59a9 |
|
06-Sep-2015 |
Allan Jude <allanjude@FreeBSD.org> |
Fix inverted output re: stack protection no-execute flag in procstat(1) PR: 196110 Submitted by: Joerg Pernfuss <code.jpe@gmail.com> Approved by: bapt (mentor) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D3576
|
#
474b62b8 |
|
05-Sep-2015 |
Allan Jude <allanjude@FreeBSD.org> |
Introduce libxo to procstat(1) Reviewed by: rodrigc, bapt Approved by: marcel (mentor) Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D2446
|
#
61e1b7c6 |
|
20-Apr-2013 |
Mikolaj Golub <trociny@FreeBSD.org> |
Use libprocstat(3) to retrieve ELF auxiliary vector. MFC after: 1 month
|
#
2a438557 |
|
15-Sep-2012 |
Konstantin Belousov <kib@FreeBSD.org> |
Handle AT_TIMEKEEP in procstat(1) -x [1]. Remove the AT_COUNT switch case, since AT_COUNT is not an aux vector, it is the counter of total number of defined vectors. PR: bin/171662 [1] MFC after: 1 week
|
#
8d2393a0 |
|
29-Jan-2012 |
Mikolaj Golub <trociny@FreeBSD.org> |
Always return 0 if the sysctl failed. This fixes the bug: when procstat -xa was run and the sysctl for a process returned ESRCH or EPERM, for this process procstat output the result collected for the previous successful process.
|
#
cc1ff620 |
|
12-Dec-2011 |
Mikolaj Golub <trociny@FreeBSD.org> |
Make 64-bit procstat output ELF auxiliary vectors for 32-bit processes. Reviewed by: kib MFC after: 1 week
|
#
cc43fe5b |
|
05-Dec-2011 |
Mikolaj Golub <trociny@FreeBSD.org> |
Don't output a warning if kern.proc.auxv sysctl has returned EPERM. After r228288 this is rather a normal situation. MFC after: 1 week
|
#
6bfefd99 |
|
28-Nov-2011 |
Mikolaj Golub <trociny@FreeBSD.org> |
Cast a_val on printing. This fixes build on mips.
|
#
d3c10c52 |
|
27-Nov-2011 |
Mikolaj Golub <trociny@FreeBSD.org> |
Make proctstat -x output more readable. This also fixes the issue, spotted by mdf, with values that were printed as decimal and had hex prefixes. Discussed with: kib, rwatson MFC after: 2 weeks
|
#
72943219 |
|
23-Nov-2011 |
Mikolaj Golub <trociny@FreeBSD.org> |
Fix build, hopefully. Reviewed by: kib
|
#
e99272c7 |
|
22-Nov-2011 |
Mikolaj Golub <trociny@FreeBSD.org> |
Add new options, -e and -x, to display process environment variables and ELF auxiliary vectors. MFC after: 2 weeks
|