summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/common.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <mhiramat@redhat.com>2008-04-30 11:52:32 -0400
committerMasami Hiramatsu <mhiramat@redhat.com>2008-04-30 11:52:32 -0400
commit453b58eda7e347076a7df00ce9d15bb0e92f6d66 (patch)
treefa72419fe0b620f311e1e988f64ce00cb9f85324 /runtime/staprun/common.c
parent3b5ab982d758481ccd5003348391bea0b775d34b (diff)
downloadsystemtap-steved-453b58eda7e347076a7df00ce9d15bb0e92f6d66.tar.gz
systemtap-steved-453b58eda7e347076a7df00ce9d15bb0e92f6d66.tar.xz
systemtap-steved-453b58eda7e347076a7df00ce9d15bb0e92f6d66.zip
PR6008: Increase the limitation of the buffer size to 4095MB.
Diffstat (limited to 'runtime/staprun/common.c')
-rw-r--r--runtime/staprun/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/staprun/common.c b/runtime/staprun/common.c
index b716d27f..93da51d8 100644
--- a/runtime/staprun/common.c
+++ b/runtime/staprun/common.c
@@ -58,8 +58,8 @@ void parse_args(int argc, char **argv)
break;
case 'b':
buffer_size = (unsigned)atoi(optarg);
- if (buffer_size < 1 || buffer_size > 64) {
- err("Invalid buffer size '%d' (should be 1-64).\n", buffer_size);
+ if (buffer_size < 1 || buffer_size > 4095) {
+ err("Invalid buffer size '%d' (should be 1-4095).\n", buffer_size);
usage(argv[0]);
}
break;
@@ -130,7 +130,7 @@ void usage(char *prog)
err("-o FILE Send output to FILE.\n");
err("-b buffer size The systemtap module specifies a buffer size.\n");
err(" Setting one here will override that value. The\n");
- err(" value should be an integer between 1 and 64\n");
+ err(" value should be an integer between 1 and 4095 \n");
err(" which be assumed to be the buffer size in MB.\n");
err(" That value will be per-cpu in bulk mode.\n");
err("-L Load module and start probes, then detach.\n");