From owner-freebsd-hackers@FreeBSD.ORG Sat May 9 03:32:19 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB0C96A8 for ; Sat, 9 May 2015 03:32:19 +0000 (UTC) Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com [IPv6:2607:f8b0:400d:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9A6411894 for ; Sat, 9 May 2015 03:32:19 +0000 (UTC) Received: by qku63 with SMTP id 63so60150598qku.3 for ; Fri, 08 May 2015 20:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9O3+qJKjie2atfQohANgrdTa+eX84jnDcZwZ7bg2C44=; b=VjBohtiLKPDzWyudKSwrPSFU1vmxra6AgZWhGrw1++9ruYzPZeiigmMrglEyLYWgan AR6PDUPF63uF+gDsVTC4rj+IhCAEu1MPR4pbsS23WdpXRGAJ0ihdwCIO/SeNHdZQDcAr v60edh+GZOcPOz19t5Wqd4ocd9mW15FBTO/7RbKetkRCH/1GSPyq9gLQJ4/LoRNjDRek mT4z6J9A3RCricMMJgsr/jlmR0JtIUKYtDnDjQW5i1ZAeZsew6R0KxzjR9/i1DywoFFc djAhSWmEaqXPUKf0A1KvDyk4OSyynU77EPx9wX3dyIe7Eiq5IpEpyX0nFNlxe4n4OWAp 7zQg== MIME-Version: 1.0 X-Received: by 10.140.235.68 with SMTP id g65mr1392053qhc.96.1431142338650; Fri, 08 May 2015 20:32:18 -0700 (PDT) Received: by 10.140.98.66 with HTTP; Fri, 8 May 2015 20:32:18 -0700 (PDT) Date: Fri, 8 May 2015 20:32:18 -0700 Message-ID: Subject: Parsing debug.witness.badstacks From: NGie Cooper To: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2015 03:32:19 -0000 Hi all, Some of the automation at $work was broken when moving from an earlier version of FreeBSD to a later version of FreeBSD with witness (mostly dealing with LORs from lockmgr), so I disabled printing out LORs on the console and use debug.witness.badstacks instead to gather LOR info. I've written up a quick and dirty tool for doing this: https://github.com/yaneurabeya/scratch/blob/master/bayonetta/scratch/scripts/freebsd/parse_badstacks.py . I was wondering if anyone else would be interested in having a similar tool in FreeBSD and/or if it made sense to instead output the badstacks output [from the kernel] in a different, easier format to digest (json, xml, etc). Thanks! -NGie