From 96139f8e02f2b57c3129614dfcb931a3a3769969 Mon Sep 17 00:00:00 2001 From: John Doe Date: Fri, 1 Dec 2023 07:52:45 +0000 Subject: [PATCH] buff to 500M --- source/module/monitor_kernel_lib.c | 3 ++- source/ucli/ucli.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/module/monitor_kernel_lib.c b/source/module/monitor_kernel_lib.c index de8eb8c..bc6b616 100644 --- a/source/module/monitor_kernel_lib.c +++ b/source/module/monitor_kernel_lib.c @@ -205,7 +205,8 @@ int monitor_init(void) { ret = init_orig_fun(); // init orig_X if (ret) return ret; - ret = init_buffer(50 * 1024 * 1024); // 50M + //!todo + ret = init_buffer(500 * 1024 * 1024); // 50M if (ret) return -1; return 0; diff --git a/source/ucli/ucli.cc b/source/ucli/ucli.cc index 94b5b0d..1a2d1be 100644 --- a/source/ucli/ucli.cc +++ b/source/ucli/ucli.cc @@ -68,7 +68,7 @@ static void do_extract(char *buf, int len) { } static void do_dump(const char *arg) { - static char variant_buf[50 * 1024 * 1024]; + static char variant_buf[500 * 1024 * 1024]; int len; int ret = 0; @@ -78,7 +78,7 @@ static void do_dump(const char *arg) { struct diag_ioctl_dump_param dump_param = { .user_ptr_len = &len, - .user_buf_len = 50 * 1024 * 1024, + .user_buf_len = 500 * 1024 * 1024, .user_buf = variant_buf, };