buff to 500M

This commit is contained in:
John Doe
2023-12-01 07:52:45 +00:00
parent 4b5c8b2582
commit 96139f8e02
2 changed files with 4 additions and 3 deletions

View File

@@ -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;

View File

@@ -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,
};