aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/procstat/procstat_files.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-12-23 14:17:44 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-12-27 10:57:27 +0000
commit67af9aba6b144789734289443a5f90a3ca716dbe (patch)
treea637702cee998fad632005bcc7d4b3da71f87770 /usr.bin/procstat/procstat_files.c
parent6d075fd9a5d339c6d178968d7be86ba128b6dc7b (diff)
downloadsrc-67af9aba6b144789734289443a5f90a3ca716dbe.tar.gz
src-67af9aba6b144789734289443a5f90a3ca716dbe.zip
Decode and report native eventfd descriptors from libprocstat and procstat.
Submitted by: greg@unrelenting.technology Reviewed by: markj (previous version) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D26668
Diffstat (limited to 'usr.bin/procstat/procstat_files.c')
-rw-r--r--usr.bin/procstat/procstat_files.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/procstat/procstat_files.c b/usr.bin/procstat/procstat_files.c
index 74c6e48eab01..1d7b419b3f4a 100644
--- a/usr.bin/procstat/procstat_files.c
+++ b/usr.bin/procstat/procstat_files.c
@@ -414,6 +414,11 @@ procstat_files(struct procstat *procstat, struct kinfo_proc *kipp)
xo_emit("{eq:fd_type/dev}");
break;
+ case PS_FST_TYPE_EVENTFD:
+ str = "E";
+ xo_emit("{eq:fd_type/eventfd}");
+ break;
+
case PS_FST_TYPE_NONE:
str = "?";
xo_emit("{eq:fd_type/none}");