diff options
Diffstat (limited to 'source/ucli/ucli.h')
| -rw-r--r-- | source/ucli/ucli.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/ucli/ucli.h b/source/ucli/ucli.h index 56416ce..e5370f6 100644 --- a/source/ucli/ucli.h +++ b/source/ucli/ucli.h @@ -11,6 +11,9 @@ // ioctl #define IOCTL_WATCH_VARIABLE 0 #define IOCTL_DUMP_LOG 1 +#define IOCTL_MAGIC_NUMBER 'k' +#define IOCTL_PID _IOWR(IOCTL_MAGIC_NUMBER, 2, int) +#define IOCTL_TGID _IOWR(IOCTL_MAGIC_NUMBER, 3, int) // dump type #define VARIABLE_MONITOR_RECORD_TYPE 0x0 @@ -31,8 +34,12 @@ #define MAX_NAME_LEN (127) // max name length #define TIMER_MAX_WATCH_NUM (32) // A timer max watch number at once time +#define VARIABLE_MONITOR_BUFFER_SIZE 256 * 1024 * 1024 // 256MB + #define DIAG_USER_STACK_SIZE (16 * 1024) +extern unsigned long run_in_host; + typedef struct { pid_t task_id; // current process id char name[MAX_NAME_LEN + 1]; // name @@ -146,6 +153,4 @@ void diag_printf_raw_stack(int pid, int ns_pid, const char *comm, void diag_printf_kern_stack(kern_stack_detail *kern_stack); void diag_printf_proc_chains(proc_chains_detail *proc_chains); -std::string state_str(int __state); - #endif /* UAPI_H */
\ No newline at end of file |
