27 lines
701 B
C
27 lines
701 B
C
#include "monitor_kallsyms.h"
|
|
#include "monitor_mem.h"
|
|
#include "monitor_proc.h"
|
|
#include "monitor_timer.h"
|
|
#include "monitor_trace.h"
|
|
|
|
// ioctl
|
|
#define IOCTL_WATCH_VARIABLE 0
|
|
#define IOCTL_DUMP_LOG 1
|
|
|
|
// default value
|
|
extern int def_interval_ns;
|
|
extern int dump_reset_sec;
|
|
|
|
extern mm_tree mm_tree_struct;
|
|
extern struct diag_variant_buffer load_monitor_variant_buffer; // global buffer
|
|
|
|
int monitor_init(void); // monitor init
|
|
void monitor_exit(void); // monitor exit
|
|
|
|
int start_watch_variable(watch_arg warg); // for open
|
|
void clear_watch(pid_t pid); // for release
|
|
|
|
enum hrtimer_restart
|
|
check_variable_cb(struct hrtimer *timer); // hrtimer callback
|
|
|
|
int diag_test(int nid); // for test
|