diff options
| author | zy <[email protected]> | 2023-12-12 04:05:56 -0500 |
|---|---|---|
| committer | zy <[email protected]> | 2023-12-12 04:05:56 -0500 |
| commit | 69bf4c8c69c3f0d2cbd43a73c4f14a4e44ee869a (patch) | |
| tree | 4dd8f31d73aaf7c1bd8c2aa6f3c58173408970c0 /source/module/monitor_kernel.h | |
| parent | 96462422ce52424e5a1e77a7232efdb4889ed83a (diff) | |
do_dump_sa
- module
- ucli
Diffstat (limited to 'source/module/monitor_kernel.h')
| -rw-r--r-- | source/module/monitor_kernel.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/module/monitor_kernel.h b/source/module/monitor_kernel.h index a7c6aa5..759d1ad 100644 --- a/source/module/monitor_kernel.h +++ b/source/module/monitor_kernel.h @@ -12,6 +12,7 @@ #define IOCTL_DUMP_LOG 1 #define IOCTL_PID _IOWR(IOCTL_MAGIC_NUMBER, 2, int) #define IOCTL_TGID _IOWR(IOCTL_MAGIC_NUMBER, 3, int) +#define IOCTL_DUMP_LOG_SA _IOWR(IOCTL_MAGIC_NUMBER, 4, int) // default value extern int def_interval_ns; @@ -19,7 +20,9 @@ extern int dump_reset_sec; extern mm_tree mm_tree_struct; extern struct diag_variant_buffer load_monitor_variant_buffer; // global buffer -#define VARIABLE_MONITOR_BUFFER_SIZE 256 * 1024 * 1024 // 256MB +#define VARIABLE_MONITOR_BUFFER_SIZE 256 * 1024 * 1024 // 256MB +extern struct diag_variant_buffer stand_alone_buffer; // buffer for single work +#define STAND_ALONE_BUFFER_SIZE 50 * 1024 * 1024 // 50 MB int monitor_init(void); // monitor init void monitor_exit(void); // monitor exit @@ -30,5 +33,5 @@ void clear_watch(pid_t pid); // for release enum hrtimer_restart check_variable_cb(struct hrtimer *timer); // hrtimer callback -int diag_pid(int id); // for test +int diag_pid(int id); // for test int diag_tgid(int id); // for test
\ No newline at end of file |
