aboutsummaryrefslogtreecommitdiff
path: root/lib/libprocstat/core.c
Commit message (Collapse)AuthorAgeFilesLines
* libprocstat: add knowledge about NT_PROCSTAT_KQUEUES core file sectionKonstantin Belousov2025-03-241-0/+4
| | | | | | | Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D49372
* libprocstat: constify psc_type_info[]Konstantin Belousov2025-03-241-1/+1
| | | | | | | | Suggested by: markj Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D49372
* libprocstat: change psc_type_info array to use designated initializersKonstantin Belousov2025-03-241-12/+48
| | | | | | | Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D49372
* lib: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | 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
* libprocstat: use elf_getphdrnum rather than deprecated elf_getphnumJohn Hein2023-09-221-1/+1
| | | | | PR: 273966 Reviewed by: emaste
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-121-1/+1
| | | | | | | | | 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
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified 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. Notes: svn path=/head/; revision=326219
* Add support for capturing 'struct ptrace_lwpinfo' for signalsTycho Nightingale2017-03-301-46/+90
| | | | | | | | | | | | resulting in a process dumping core in the corefile. Also extend procstat to view select members of 'struct ptrace_lwpinfo' from the contents of the note. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=316286
* Embed revision id in the library.Mikolaj Golub2013-04-211-2/+3
| | | | | | | MFC after: 29 days Notes: svn path=/head/; revision=249731
* Add procstat_getauxv function to retrieve a process auxiliary vector.Mikolaj Golub2013-04-201-0/+4
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=249681
* Extend libprocstat with functions to retrieve process command lineMikolaj Golub2013-04-201-0/+150
| | | | | | | | | | | arguments and environment variables. Suggested by: stas Reviewed by: jhb and stas (initial version) MFC after: 1 month Notes: svn path=/head/; revision=249679
* Add procstat_getosrel function to retrieve a process osrel info.Mikolaj Golub2013-04-201-0/+4
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=249677
* Add procstat_getrlimit function to retrieve a process resource limits info.Mikolaj Golub2013-04-201-0/+4
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=249674
* Add procstat_getumask function to retrieve a process umask.Mikolaj Golub2013-04-201-0/+4
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=249672
* Add procstat_getgroups function to retrieve process groups.Mikolaj Golub2013-04-201-0/+4
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=249670
* Make libprocstat(3) extract procstat notes from a process core file.Mikolaj Golub2013-04-201-0/+262
PR: kern/173723 Suggested by: jhb Glanced by: kib MFC after: 1 month Notes: svn path=/head/; revision=249666