NetBSD Problem Report #49939

From dholland@netbsd.org  Sun May 31 08:50:51 2015
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id F1321A654B
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 31 May 2015 08:50:50 +0000 (UTC)
Message-Id: <20150531085050.82A3414A23D@mail.netbsd.org>
Date: Sun, 31 May 2015 08:50:50 +0000 (UTC)
From: dholland@netbsd.org
Reply-To: dholland@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: ktrace/kdump doesn't decode sysctls
X-Send-Pr-Version: 3.95

>Number:         49939
>Category:       bin
>Synopsis:       ktrace/kdump doesn't decode sysctls
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun May 31 08:55:00 +0000 2015
>Originator:     David A. Holland
>Release:        NetBSD 7.0_BETA (20150529)
>Organization:
>Environment:
System: NetBSD bantha 7.0_BETA NetBSD 7.0_BETA (BANTHA) #4: Fri May 29 23:52:33 EDT 2015  root@bantha:/usr/src/sys/arch/i386/compile/BANTHA i386
Architecture: i386
Machine: i386
>Description:

ktrace/kdump doesn't decode sysctls; it just prints the pointer
arguments of __sysctl(2).

  3916      1 w        CALL  __sysctl(0xbfbfdd3c,2,0xbbbd54bc,0xbfbfdd38,0,0)
  3916      1 w        RET   __sysctl 0

The average process issues a lot of sysctls and if one is trying to
debug something related to one, it's hard to be sure you've found the
one you're interested in.

Therefore, it would be nice if we could get at least the numeric mibs
and ideally the symbolic name. (This might require adding a new trace
record type.)

>How-To-Repeat:

ktrace w; kdump

>Fix:
to be argued over

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.