summaryrefslogtreecommitdiffstats
path: root/sys/sys/pmc.h
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-11-26 20:56:08 +0000
committeremaste <emaste@FreeBSD.org>2014-11-26 20:56:08 +0000
commit20daa3d1576cb812f0d14006a839f8511dcc45aa (patch)
tree83894866357d8c6d12b1469f241c79e004dc6e6c /sys/sys/pmc.h
parent915575c811d504592e2856eb7ec20c6023830db9 (diff)
downloadFreeBSD-src-20daa3d1576cb812f0d14006a839f8511dcc45aa.zip
FreeBSD-src-20daa3d1576cb812f0d14006a839f8511dcc45aa.tar.gz
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
Diffstat (limited to 'sys/sys/pmc.h')
-rw-r--r--sys/sys/pmc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index 23405ea..a846975 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -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 "."
OpenPOWER on IntegriCloud