Skip to content

Add f_pos,dentry d_parent offset #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions skso.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,22 @@ int struct_file__dentry__sum_offset(void)
f_path) + offsetof(typeof(struct path), dentry);
}

int struct_file__f_pos__offset(void)
{
return offsetof(typeof(struct file), f_pos);
}

int struct_dentry_name__sum__offset(void)
{
return offsetof(typeof(struct dentry),
d_name) + offsetof(typeof(struct qstr), name);
}

int struct_dentry__d_parent__offset(void)
{
return offsetof(typeof(struct dentry), d_parent);
}

int struct_sock_common__skc_family_offset(void)
{
return offsetof(typeof(struct sock_common), skc_family);
Expand Down