Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2014 20:56:09 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r275140 - head/sys/sys
Message-ID:  <201411262056.sAQKu97d061902@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Wed Nov 26 20:56:08 2014
New Revision: 275140
URL: https://svnweb.freebsd.org/changeset/base/275140

Log:
  Increase default and maximum callchain depths
  
  Bump the default from 16 to 32, to accommodate kernel flamegraphs.
  Bump the maximum from 32 to 128, to accommodate deep user stacks.
  
  Reviewed by:	gnn
  MFC after:	1 month
  Sponsored by:	The FreeBSD Foundation
  Differential Revision: https://reviews.freebsd.org/D1203

Modified:
  head/sys/sys/pmc.h

Modified: head/sys/sys/pmc.h
==============================================================================
--- head/sys/sys/pmc.h	Wed Nov 26 20:44:54 2014	(r275139)
+++ head/sys/sys/pmc.h	Wed Nov 26 20:56:08 2014	(r275140)
@@ -349,7 +349,7 @@ enum pmc_ops {
 #define	PMC_F_NEEDS_LOGFILE	0x00020000 /*needs log file */
 #define	PMC_F_ATTACH_DONE	0x00040000 /*attached at least once */
 
-#define	PMC_CALLCHAIN_DEPTH_MAX	32
+#define	PMC_CALLCHAIN_DEPTH_MAX	128
 
 #define	PMC_CC_F_USERSPACE	0x01	   /*userspace callchain*/
 
@@ -605,7 +605,7 @@ struct pmc_op_getdyneventinfo {
 #define	PMC_LOG_BUFFER_SIZE			4
 #define	PMC_NLOGBUFFERS				1024
 #define	PMC_NSAMPLES				1024
-#define	PMC_CALLCHAIN_DEPTH			16
+#define	PMC_CALLCHAIN_DEPTH			32
 
 #define PMC_SYSCTL_NAME_PREFIX "kern." PMC_MODULE_NAME "."
 



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