4 Jul 22:00
pahole --contains explained
From: Arnaldo Carvalho de Melo <acme@...>
Subject: pahole --contains explained
Newsgroups: gmane.comp.debugging.dwarves
Date: 2008-07-04 20:00:16 GMT
Subject: pahole --contains explained
Newsgroups: gmane.comp.debugging.dwarves
Date: 2008-07-04 20:00:16 GMT
Em Fri, Jul 04, 2008 at 09:54:12AM +0200, Dennis Lubert escreveu: > Am Donnerstag, den 03.07.2008, 14:08 -0300 schrieb Arnaldo Carvalho de Melo: > > > - There could be some glob or regexp style substring match for types. > > > >From the --help I thought that -i was for this, but I could not get it > > > to match even on substrings... Am I maybe doing something wrong? > > Regexps not supported yet, just prefixes: > > [acme <at> doppio pahole]$ pahole --sizes --separator=, build/pahole | grep arg > > argp_child,32,1 > > argp,56,0 > > argp_state,96,1 > > argp_option,48,2 > > [acme <at> doppio pahole]$ pahole --sizes --separator=, --exclude arg build/pahole | grep arg > > [acme <at> doppio pahole]$ > Ah ok, just overlooked -y/-x ... but then I am a bit confused on what -i > means. Giving it parts of the class, prefixes or even the whole name > leads to no result here... -i == --contains [acme <at> doppio pahole]$ pahole -i tag build/pahole parameter ftype lexblock class_member array_type base_type namespace(Continue reading)
codiff doesn't makes that much tag lookups, so we didn't got
much improvements there, but I'm doing experiments on dead tag elimination
that probably will help a lot there, but for that I have first to grok
Ulrich Drepper's libdisasm to find out what are the tags that are really
used by looking at accesses to register indexed memory areas that use as
a base pointer what is in local/global variables and function
parameters.
This also will provide the basis for detecting access patterns
that will ultimatelly allow libdwarves_reorganize to do struct
reorganizations to improve locality of reference, etc.
Please take a look at v1.6 that I pushed today and tell me your
impressions.
Regards,
- Arnaldo
RSS Feed