From owner-svn-src-user@FreeBSD.ORG Sun Nov 20 14:51:27 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6050C106566B; Sun, 20 Nov 2011 14:51:27 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 507EA8FC15; Sun, 20 Nov 2011 14:51:27 +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 pAKEpRau096963; Sun, 20 Nov 2011 14:51:27 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pAKEpRkW096961; Sun, 20 Nov 2011 14:51:27 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201111201451.pAKEpRkW096961@svn.freebsd.org> From: Attilio Rao Date: Sun, 20 Nov 2011 14:51:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227754 - user/attilio/vmcontention/sys/vm X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Nov 2011 14:51:27 -0000 Author: attilio Date: Sun Nov 20 14:51:27 2011 New Revision: 227754 URL: http://svn.freebsd.org/changeset/base/227754 Log: Add more KTR points for failure in vm_radix_insert(). Modified: user/attilio/vmcontention/sys/vm/vm_radix.c Modified: user/attilio/vmcontention/sys/vm/vm_radix.c ============================================================================== --- user/attilio/vmcontention/sys/vm/vm_radix.c Sun Nov 20 14:45:42 2011 (r227753) +++ user/attilio/vmcontention/sys/vm/vm_radix.c Sun Nov 20 14:51:27 2011 (r227754) @@ -288,8 +288,12 @@ vm_radix_insert(struct vm_radix *rtree, */ if (root == NULL || root->rn_count != 0) { rnode = vm_radix_node_get(); - if (rnode == NULL) + if (rnode == NULL) { + CTR4(KTR_VM, +"insert: tree %p, root %p, index: %d, level: %d failed to allocate a new node", + rtree, root, index, level); return (ENOMEM); + } /* * Store the new pointer with a memory barrier so * that it is visible before the new root. @@ -311,8 +315,13 @@ vm_radix_insert(struct vm_radix *rtree, /* Add the required intermidiate nodes. */ if (rnode->rn_child[slot] == NULL) { rnode->rn_child[slot] = vm_radix_node_get(); - if (rnode->rn_child[slot] == NULL) + if (rnode->rn_child[slot] == NULL) { + CTR5(KTR_VM, +"insert: tree %p, index %jd, level %d, slot %d, child %p failed to populate", + rtree, index, level, slot, + rnode->rn_child[slot]); return (ENOMEM); + } rnode->rn_count++; } CTR5(KTR_VM,