svn commit: r233206 - stable/8/usr.bin/kdump
John Baldwin
jhb at FreeBSD.org
Mon Mar 19 21:33:36 UTC 2012
Author: jhb
Date: Mon Mar 19 21:33:35 2012
New Revision: 233206
URL: http://svn.freebsd.org/changeset/base/233206
Log:
MFC 232072: Pretty-print the advice constants passed to posix_fadvise(2).
Modified:
stable/8/usr.bin/kdump/kdump.c
stable/8/usr.bin/kdump/kdump_subr.h
stable/8/usr.bin/kdump/mksubr
Directory Properties:
stable/8/usr.bin/kdump/ (props changed)
Modified: stable/8/usr.bin/kdump/kdump.c
==============================================================================
--- stable/8/usr.bin/kdump/kdump.c Mon Mar 19 21:33:23 2012 (r233205)
+++ stable/8/usr.bin/kdump/kdump.c Mon Mar 19 21:33:35 2012 (r233206)
@@ -939,6 +939,14 @@ ktrsyscall(struct ktr_syscall *ktr, u_in
kldunloadfflagsname ((int)*ip);
ip++;
narg--;
+ } else if (ktr->ktr_code == 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--;
}
}
while (narg > 0) {
Modified: stable/8/usr.bin/kdump/kdump_subr.h
==============================================================================
--- stable/8/usr.bin/kdump/kdump_subr.h Mon Mar 19 21:33:23 2012 (r233205)
+++ stable/8/usr.bin/kdump/kdump_subr.h Mon Mar 19 21:33:35 2012 (r233206)
@@ -32,6 +32,7 @@ void whencename (int);
void rlimitname (int);
void shutdownhowname (int);
void prioname (int);
+void fadvisebehavname (int);
void madvisebehavname (int);
void msyncflagsname (int);
void schedpolicyname (int);
Modified: stable/8/usr.bin/kdump/mksubr
==============================================================================
--- stable/8/usr.bin/kdump/mksubr Mon Mar 19 21:33:23 2012 (r233205)
+++ stable/8/usr.bin/kdump/mksubr Mon Mar 19 21:33:35 2012 (r233206)
@@ -349,6 +349,7 @@ auto_switch_type "whencename" "SEEK_[A-Z
auto_switch_type "rlimitname" "RLIMIT_[A-Z]+[[:space:]]+[0-9]+" "sys/resource.h"
auto_switch_type "shutdownhowname" "SHUT_[A-Z]+[[:space:]]+0x[0-9]+" "sys/socket.h"
auto_switch_type "prioname" "PRIO_[A-Z]+[[:space:]]+[0-9]" "sys/resource.h"
+auto_switch_type "fadvisebehavname" "POSIX_FADV_[A-Z]+[[:space:]]+[0-9]+" "sys/fcntl.h"
auto_switch_type "madvisebehavname" "_?MADV_[A-Z]+[[:space:]]+[0-9]+" "sys/mman.h"
auto_switch_type "msyncflagsname" "MS_[A-Z]+[[:space:]]+0x[0-9]+" "sys/mman.h"
auto_switch_type "schedpolicyname" "SCHED_[A-Z]+[[:space:]]+[0-9]+" "sched.h"
More information about the svn-src-all
mailing list