#![allow(non_snake_case, dead_code, non_camel_case_types)]
use isr_macros::{offsets, symbols, Field};
symbols! {
#[derive(Debug)]
pub struct Symbols {
_text: u64,
init_task: u64,
entry_SYSCALL_64: u64,
pcpu_hot: u64,
__bad_area_nosemaphore: u64,
}
}
offsets! {
#[derive(Debug)]
pub struct Offsets {
struct pcpu_hot {
current_task: Field,
}
struct fs_struct {
root: Field,
pwd: Field,
}
struct mm_struct {
mm_mt: Field,
pgd: Field,
exe_file: Field,
}
struct vm_area_struct {
vm_start: Field,
vm_end: Field,
vm_page_prot: Field,
vm_flags: Field,
vm_file: Field,
}
struct task_struct {
flags: Field,
tasks: Field,
mm: Field,
active_mm: Field,
pid: Field,
tgid: Field,
comm: Field,
fs: Field,
}
struct dentry {
d_name: Field,
d_parent: Field,
}
struct file {
f_path: Field,
}
struct path {
dentry: Field,
mnt: Field,
}
struct vfsmount {
mnt_root: Field,
}
struct qstr {
name: Field,
len: Field,
}
struct maple_tree {
ma_flags: Field, ma_root: Field, }
struct maple_node {
parent: Field,
slot: Field,
mr64: Field,
ma64: Field,
}
struct maple_range_64 {
pivot: Field, slot: Field, }
struct maple_arange_64 {
pivot: Field, slot: Field, }
}
}