From owner-svn-src-stable@FreeBSD.ORG Mon Mar 19 21:33:24 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E5101065674; Mon, 19 Mar 2012 21:33:24 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5F5378FC27; Mon, 19 Mar 2012 21:33:24 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q2JLXOGK087223; Mon, 19 Mar 2012 21:33:24 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q2JLXOnl087219; Mon, 19 Mar 2012 21:33:24 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201203192133.q2JLXOnl087219@svn.freebsd.org> From: John Baldwin Date: Mon, 19 Mar 2012 21:33:24 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r233205 - stable/9/usr.bin/kdump X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2012 21:33:24 -0000 Author: jhb Date: Mon Mar 19 21:33:23 2012 New Revision: 233205 URL: http://svn.freebsd.org/changeset/base/233205 Log: MFC 232072: Pretty-print the advice constants passed to posix_fadvise(2). Modified: stable/9/usr.bin/kdump/kdump.c stable/9/usr.bin/kdump/kdump_subr.h stable/9/usr.bin/kdump/mksubr Directory Properties: stable/9/usr.bin/kdump/ (props changed) Modified: stable/9/usr.bin/kdump/kdump.c ============================================================================== --- stable/9/usr.bin/kdump/kdump.c Mon Mar 19 21:29:57 2012 (r233204) +++ stable/9/usr.bin/kdump/kdump.c Mon Mar 19 21:33:23 2012 (r233205) @@ -935,6 +935,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/9/usr.bin/kdump/kdump_subr.h ============================================================================== --- stable/9/usr.bin/kdump/kdump_subr.h Mon Mar 19 21:29:57 2012 (r233204) +++ stable/9/usr.bin/kdump/kdump_subr.h Mon Mar 19 21:33:23 2012 (r233205) @@ -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/9/usr.bin/kdump/mksubr ============================================================================== --- stable/9/usr.bin/kdump/mksubr Mon Mar 19 21:29:57 2012 (r233204) +++ stable/9/usr.bin/kdump/mksubr Mon Mar 19 21:33:23 2012 (r233205) @@ -351,6 +351,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:]]+[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"