Go to file
Arnaldo Carvalho de Melo 286c7740fd pahole: Use the new progressive processing scheme
So that we can, for instance, go from:

[acme@doppio pahole]$ time pahole -C sk_buff
/usr/lib/debug/lib/modules/2.6.27.19-170.2.35.fc10.x86_64/vmlinux | head
-3
struct sk_buff {
	struct sk_buff *  next;      /*     0     8 */
	struct sk_buff *  prev;      /*     8     8 */

real	0m11.071s
user	0m10.627s
sys	0m0.359s
[acme@doppio pahole]$

To a mere:

[acme@doppio pahole]$ time pahole -C sk_buff
/usr/lib/debug/lib/modules/2.6.27.19-170.2.35.fc10.x86_64/vmlinux | head
-3
struct sk_buff {
	struct sk_buff *  next;      /*     0     8 */
	struct sk_buff *  prev;      /*     8     8 */

real	0m1.464s
user	0m1.431s
sys	0m0.016s
[acme@doppio pahole]$

And also results go appearing much quicker for other options, etc.

The other tools will be converted too, but the old way of working will
always be there, as it is possible that we may need all the types in
memory for some future tool.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2009-03-13 15:05:19 -03:00
cmake/modules cmake: check if in RHEL and ask for the same packages as in fedora if so 2008-11-20 13:55:05 -02:00
lib [LICENSE]: Add COPYING file and add missing license info on some files 2007-12-17 14:15:42 -02:00
man-pages man-pages: Fixup typo 2009-03-03 15:32:47 -03:00
ostra [OSTRA]: Change ostra-cg license to GPLv2 2007-12-24 12:25:17 -02:00
rpm/SPECS rpm: Own %{_datadir}/dwarves/ 2009-02-16 11:04:49 -03:00
CMakeLists.txt all: Add the --version 2009-02-13 10:57:23 -02:00
COPYING [LICENSE]: Add COPYING file and add missing license info on some files 2007-12-17 14:15:42 -02:00
MANIFEST pahole: finally the beginnings of a man page 2009-02-11 12:19:46 -02:00
NEWS [NEWS]: Update entry about the --separator new option 2007-05-23 16:27:33 -03:00
README [CMAKE]: Make the default install prefix be /usr/local 2007-04-19 18:01:47 -03:00
README.ctracer ctracer: update README.ctracer, f9 has the dwarves 2008-10-29 08:54:53 -02:00
codiff.c dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00
config.h.cmake [DWARVES] Fixes a FIXME relating to a missing elf (libdw) symbol check. 2008-02-12 21:08:49 -02:00
ctf.h libctf: Use the same coding style as the dwarves 2008-09-25 16:01:26 -03:00
ctf_loader.c dwarves: Allow the apps to steal compile units as they are created 2009-03-13 14:59:32 -03:00
ctf_loader.h dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00
ctracer.c dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00
dtagnames.c dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00
dutil.c [DUTIL]: Generalise fstrlist 2007-12-16 14:55:50 -02:00
dutil.h dwarves: remove now unused 'cu' argument to {type,class}__name 2009-03-06 10:57:41 -03:00
dwarf_loader.c dwarves: Allow the apps to steal compile units as they are created 2009-03-13 14:59:32 -03:00
dwarf_loader.h dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00
dwarves.c dwarves: Introduce cu__find_struct_by_sname 2009-03-13 14:57:53 -03:00
dwarves.h dwarves: Allow the apps to steal compile units as they are created 2009-03-13 14:59:32 -03:00
dwarves_emit.c dwarves: find holes when adding a fresh compile unit 2009-03-06 11:48:33 -03:00
dwarves_emit.h dwarves: remove now unused 'cu' argument to {type,class}__name 2009-03-06 10:57:41 -03:00
dwarves_reorganize.c reorganize: Fix bug in cu__find_base_type_of_size alternate type names 2009-03-07 16:35:17 -03:00
dwarves_reorganize.h [DWARVES_REORGANIZE]: Adopt class__add_offsets_from and class__fixup_alignment from ctracer 2008-01-12 12:26:06 -02:00
gobuffer.c gobuffer: Move the non string specific bits 2008-10-02 17:06:01 -03:00
gobuffer.h gobuffer: Move the non string specific bits 2008-10-02 17:06:01 -03:00
hash.h [DWARVES]: Use a hash table for the tags in a CU 2008-02-11 11:47:17 -02:00
libctf.c libctf: The constructor should load only if a buffer is passed 2008-09-25 16:25:06 -03:00
libctf.h libctf: Use the same coding style as the dwarves 2008-09-25 16:01:26 -03:00
list.h list: Introduce a handy list_first_entry macro 2008-06-28 09:59:54 -03:00
pahole.c pahole: Use the new progressive processing scheme 2009-03-13 15:05:19 -03:00
pdwtags.c dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00
pfunct.c dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00
pglobal.c dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00
prefcnt.c dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00
strings.c strings: Add strings__find and strings__cmp 2008-10-24 14:20:37 -02:00
strings.h strings: Add strings__find and strings__cmp 2008-10-24 14:20:37 -02:00
syscse.c dwarves: Rename cus__loadfl with cus__load_files 2009-03-13 10:49:01 -03:00

README

Build instructions:

1. install cmake
2. mkdir build
3. cd build
4. cmake -D__LIB=lib ..
5. make install

Default is to be installed on /usr/local, see rpm spec file for
installing on other places.

Known to work scenarios:

Mandriva Cooker:

cmake 2.4.5-1mdv2007.1
libelfutils1-devel 0.123-1mdv2007.1

Debian Unstable:

cmake 2.4.5-1
libdw-dev 0.123-2

Fedora Core 6:

cmake 2.4.5-2.fc6
elfutils-devel 0.126-1.fc6