ucli
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
static int buffer_extract(void *buf, unsigned int len) {
|
||||
static int task_info_extract(void *buf, unsigned int len, void *) {
|
||||
int *et_type;
|
||||
variable_monitor_record *vm_record;
|
||||
variable_monitor_task *tsk_info;
|
||||
@@ -60,6 +60,10 @@ static int buffer_extract(void *buf, unsigned int len) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void do_extract(char *buf, int len) {
|
||||
extract_variant_buffer(buf, len, task_info_extract, NULL);
|
||||
}
|
||||
|
||||
static void do_dump(const char *arg) {
|
||||
static char variant_buf[50 * 1024 * 1024];
|
||||
int len;
|
||||
@@ -77,7 +81,7 @@ static void do_dump(const char *arg) {
|
||||
|
||||
ret = diag_call_ioctl(1, (long)&dump_param); // !todo arg -> #define
|
||||
if (ret == 0) {
|
||||
buffer_extract(variant_buf, len);
|
||||
do_extract(variant_buf, len);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user