Simple script to find objects of a certain size in the Linux kernel
Needs pahole v1.22 and above.
./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.