• Stars
    star
    102
  • Rank 333,014 (Top 7 %)
  • Language
    Shell
  • Created almost 2 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple script to find kernel objects of a certain size in the Linux kernel

kernel_obj_finder

Simple script to find objects of a certain size in the Linux kernel

Requirements

Needs pahole v1.22 and above.

Usage

./obj_finder.sh /path/to/vmlimux size1 size2

where size1 and size2 represent the bounds for the range of sizes in bytes to search for (in decimal)

Outputs obj_list.txt which lists all the structures matching the size, and obj_defs.txt which contains their full definitions.

Plan to improve this in the future and and add a search for function pointers, etc.