diff options
author | emaste <emaste@FreeBSD.org> | 2015-02-19 02:56:34 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2015-02-19 02:56:34 +0000 |
commit | 7f01a931aa846c504c5d11a349cabc28983bcf12 (patch) | |
tree | 2b4e9466e07323e4bfae48c6de759fa0c00cc174 | |
parent | c0ca6257a68a40f3e05c0b4bad5b74ec48921b2d (diff) | |
download | FreeBSD-src-7f01a931aa846c504c5d11a349cabc28983bcf12.zip FreeBSD-src-7f01a931aa846c504c5d11a349cabc28983bcf12.tar.gz |
MFC r275140: 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.
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/sys/pmc.h | 4 |
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 "." |