diff --git a/man/man8/profile.8 b/man/man8/profile.8 index f44dd6896d6d..263320e97bce 100644 --- a/man/man8/profile.8 +++ b/man/man8/profile.8 @@ -52,7 +52,7 @@ Show stacks from kernel space only (no user space stacks). .TP \-\-stack-storage-size COUNT The maximum number of unique stack traces that the kernel will count (default -10240). If the sampled count exceeds this, a warning will be printed. +16384). If the sampled count exceeds this, a warning will be printed. .TP duration Duration to trace, in seconds. diff --git a/tools/profile.py b/tools/profile.py index 915ad6e03196..bf532ce484d4 100755 --- a/tools/profile.py +++ b/tools/profile.py @@ -99,7 +99,7 @@ def stack_id_err(stack_id): help="add _[k] annotations to kernel frames") parser.add_argument("-f", "--folded", action="store_true", help="output folded format, one line per stack (for flame graphs)") -parser.add_argument("--stack-storage-size", default=10240, +parser.add_argument("--stack-storage-size", default=16384, type=positive_nonzero_int, help="the number of unique stack traces that can be stored and " "displayed (default %(default)s)")