Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Mar 2015 14:12:41 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r280035 - head/sys/cddl/dev/profile
Message-ID:  <201503151412.t2FECfAo077258@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rwatson
Date: Sun Mar 15 14:12:40 2015
New Revision: 280035
URL: https://svnweb.freebsd.org/changeset/base/280035

Log:
  Replace the completely arbitrary '3' with '9' for the number of frames to
  skip using the DTrace 'profile' provider on ARM.  This causes stack traces
  to skip various driver-and callout-related things as they do on x86, where
  the likewise arbitrary values are '6' (32-bit) and '10' (64-bit) for
  similar sorts of reasons.
  
  MFC after:	3 days
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/cddl/dev/profile/profile.c

Modified: head/sys/cddl/dev/profile/profile.c
==============================================================================
--- head/sys/cddl/dev/profile/profile.c	Sun Mar 15 14:05:55 2015	(r280034)
+++ head/sys/cddl/dev/profile/profile.c	Sun Mar 15 14:12:40 2015	(r280035)
@@ -135,7 +135,7 @@ struct profile_probe_percpu;
 
 #ifdef __arm__
 /* bogus */
-#define	PROF_ARTIFICIAL_FRAMES	3
+#define	PROF_ARTIFICIAL_FRAMES	9
 #endif
 
 typedef struct profile_probe {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503151412.t2FECfAo077258>