Date: Thu, 16 Mar 2017 20:55:01 +0000 (UTC) From: Steven Hartland <smh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315423 - head/lib/libsysdecode Message-ID: <201703162055.v2GKt1rL037420@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: smh Date: Thu Mar 16 20:55:00 2017 New Revision: 315423 URL: https://svnweb.freebsd.org/changeset/base/315423 Log: Fix libsysdecode vmprot flag decoding Fix the regex used to find vmprot table entries and add the missing include. This fixes kdumps output of PFLT arguments which would previously look like: 5202 101546 ktrace PFLT 0x5ae000 0x2<><invalid>2 They now display correctly: 5202 101546 ktrace PFLT 0x5ac000 0x2<VM_PROT_WRITE> MFC after: 1 week Modified: head/lib/libsysdecode/flags.c head/lib/libsysdecode/mktables Modified: head/lib/libsysdecode/flags.c ============================================================================== --- head/lib/libsysdecode/flags.c Thu Mar 16 20:39:31 2017 (r315422) +++ head/lib/libsysdecode/flags.c Thu Mar 16 20:55:00 2017 (r315423) @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include <netinet/udp.h> #include <nfsserver/nfs.h> #include <ufs/ufs/quota.h> +#include <vm/vm.h> #include <vm/vm_param.h> #include <aio.h> #include <fcntl.h> Modified: head/lib/libsysdecode/mktables ============================================================================== --- head/lib/libsysdecode/mktables Thu Mar 16 20:39:31 2017 (r315422) +++ head/lib/libsysdecode/mktables Thu Mar 16 20:55:00 2017 (r315423) @@ -135,7 +135,7 @@ gen_table "sockoptudp" "UDP_[[:alnu gen_table "socktype" "SOCK_[A-Z]+[[:space:]]+[1-9]+[0-9]*" "sys/socket.h" gen_table "thrcreateflags" "THR_[A-Z]+[[:space:]]+0x[0-9]+" "sys/thr.h" gen_table "umtxop" "UMTX_OP_[[:alnum:]_]+[[:space:]]+[0-9]+" "sys/umtx.h" -gen_table "vmprot" "VM_PROT_[A-Z]+[[:space:]]+\(\(vm_prot_t\)\)" "vm/vm.h" +gen_table "vmprot" "VM_PROT_[A-Z]+[[:space:]]+\(\(vm_prot_t\)[[:space:]]+0x[0-9]+\)" "vm/vm.h" gen_table "vmresult" "KERN_[A-Z]+[[:space:]]+[0-9]+" "vm/vm_param.h" gen_table "wait6opt" "W[A-Z]+[[:space:]]+[0-9]+" "sys/wait.h" gen_table "seekwhence" "SEEK_[A-Z]+[[:space:]]+[0-9]+" "sys/unistd.h"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703162055.v2GKt1rL037420>