25 lines
630 B
C
25 lines
630 B
C
#ifndef UAPI_H
|
|
#define UAPI_H
|
|
|
|
#include <cstddef> // size_t
|
|
|
|
#include "../module/monitor_trace.h"
|
|
|
|
#define DEVICE "/dev/variable_monitor"
|
|
|
|
struct diag_ioctl_dump_param {
|
|
int *user_ptr_len;
|
|
size_t user_buf_len;
|
|
void *user_buf;
|
|
};
|
|
|
|
long diag_call_ioctl(unsigned long request, unsigned long arg);
|
|
|
|
// all print fun
|
|
void printk_task_brief(task_detail *detail);
|
|
void diag_printf_raw_stack(int pid, int ns_pid, const char *comm,
|
|
raw_stack_detail *raw_stack);
|
|
void diag_printf_kern_stack(kern_stack_detail *kern_stack);
|
|
void diag_printf_proc_chains(proc_chains_detail *proc_chains);
|
|
|
|
#endif /* UAPI_H */ |