Date: Tue, 18 Mar 2014 00:55:20 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r263283 - stable/10/sys/kern Message-ID: <201403180055.s2I0tKmj049261@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Tue Mar 18 00:55:19 2014 New Revision: 263283 URL: http://svnweb.freebsd.org/changeset/base/263283 Log: MFC r262325: Print a backtrace if the SDT(9) stub gets called so that there's at least some hope of figuring out how it happened. Modified: stable/10/sys/kern/kern_sdt.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/kern_sdt.c ============================================================================== --- stable/10/sys/kern/kern_sdt.c Tue Mar 18 00:38:36 2014 (r263282) +++ stable/10/sys/kern/kern_sdt.c Tue Mar 18 00:55:19 2014 (r263283) @@ -29,6 +29,7 @@ #include <sys/param.h> #include <sys/systm.h> +#include <sys/kdb.h> #include <sys/sdt.h> SDT_PROVIDER_DEFINE(sdt); @@ -49,5 +50,6 @@ sdt_probe_stub(uint32_t id, uintptr_t ar uintptr_t arg2, uintptr_t arg3, uintptr_t arg4) { - printf("sdt_probe_stub: Why did this get called?\n"); + printf("sdt_probe_stub: unexpectedly called\n"); + kdb_backtrace(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403180055.s2I0tKmj049261>