afb41b16f9
Simplifying options processing by using just pair of cu and class iterators and using the list we were building just for --total_structure_stats for all options, this way we don't print multiple times structures that are defined in more than one object file when processing a multi-object file. With this in place all the options will check if a struct definition in one object file somehow doesn't matches the same struct definition in some other object file, more checks will be put in place in the upcoming csets. And, to show that this besides simplifying reduces the code size, lets use codiff: [acme@newtoy pahole]$ codiff build/pahole.before build/pahole /home/acme/pahole/pahole.c: structures__add | -143 class__filter | +147 main | -263 3 functions changed, 147 bytes added, 406 bytes removed [acme@newtoy pahole]$ Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com> |
||
---|---|---|
cmake/modules | ||
classes.c | ||
classes.h | ||
CMakeLists.txt | ||
codiff.c | ||
list.h | ||
pahole.c | ||
pfunct.c | ||
prefcnt.c | ||
README |
Build instructions: 1. install cmake 2. mkdir build 3. cd build 4. cmake .. 5. make