summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2012-02-23 21:08:21 +0000
committerjhb <jhb@FreeBSD.org>2012-02-23 21:08:21 +0000
commite0767df0f54988a0318ed477d972e3e493e2a019 (patch)
tree6e1b12620e2cc9529fa8854a17a1c655f183092e /usr.bin/kdump
parentf315a59476bc5812458ae81c8b4eb4c37f8a3aea (diff)
downloadFreeBSD-src-e0767df0f54988a0318ed477d972e3e493e2a019.zip
FreeBSD-src-e0767df0f54988a0318ed477d972e3e493e2a019.tar.gz
Pretty-print the advice constants passed to posix_fadvise(2).
MFC after: 2 weeks
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/kdump.c9
-rw-r--r--usr.bin/kdump/mksubr1
2 files changed, 10 insertions, 0 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index ba09170..9ee5827 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1014,6 +1014,15 @@ ktrsyscall(struct ktr_syscall *ktr, u_int flags)
}
capname(arg);
break;
+ case SYS_posix_fadvise:
+ print_number(ip,narg,c);
+ print_number(ip,narg,c);
+ print_number(ip,narg,c);
+ (void)putchar(',');
+ fadvisebehavname((int)*ip);
+ ip++;
+ narg--;
+ break;
}
}
while (narg > 0) {
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr
index 75846ee..99dd80f 100644
--- a/usr.bin/kdump/mksubr
+++ b/usr.bin/kdump/mksubr
@@ -340,6 +340,7 @@ auto_or_type "accessmodename" "[A-Z]_OK[[:space:]]+0?x?[0-9A-Fa-f]+"
auto_switch_type "acltypename" "ACL_TYPE_[A-Z4_]+[[:space:]]+0x[0-9]+" "sys/acl.h"
auto_or_type "capname" "CAP_[A-Z]+[[:space:]]+0x[01248]{16}ULL" "sys/capability.h"
auto_switch_type "extattrctlname" "EXTATTR_NAMESPACE_[A-Z]+[[:space:]]+0x[0-9]+" "sys/extattr.h"
+auto_switch_type "fadvisebehavname" "POSIX_FADV_[A-Z]+[[:space:]]+[0-9]+" "sys/fcntl.h"
auto_or_type "flagsname" "O_[A-Z]+[[:space:]]+0x[0-9A-Fa-f]+" "sys/fcntl.h"
auto_or_type "flockname" "LOCK_[A-Z]+[[:space:]]+0x[0-9]+" "sys/fcntl.h"
auto_or_type "getfsstatflagsname" "MNT_[A-Z]+[[:space:]]+[1-9][0-9]*" "sys/mount.h"
OpenPOWER on IntegriCloud