/kernel_obj_finder

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

Primary LanguageShell

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.