public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/2475] Inlines don't match filenames correctly
       [not found] <20060322005515.2475.jistone@redhat.com>
@ 2009-05-14  1:01 ` jistone at redhat dot com
  2009-08-25  1:33 ` jistone at redhat dot com
  1 sibling, 0 replies; 2+ messages in thread
From: jistone at redhat dot com @ 2009-05-14  1:01 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From jistone at redhat dot com  2009-05-14 01:01 -------
I've been refactoring our dwarf code recently, and I think I've tracked down
what's happening here.  For each compilation unit, we're matching the file
pattern against all of the files in that CU.  If there are any matches, then we
proceed to search the entire CU for the function pattern.

So in the OP, stap found every CU that happened to include "include/linux/mm.h",
and then probed all inline instances in those CUs, regardless of where each
inline was defined.

We'll probably just have to match the decl_file against the pattern again for
each candidate function...

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2475

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/2475] Inlines don't match filenames correctly
       [not found] <20060322005515.2475.jistone@redhat.com>
  2009-05-14  1:01 ` [Bug translator/2475] Inlines don't match filenames correctly jistone at redhat dot com
@ 2009-08-25  1:33 ` jistone at redhat dot com
  1 sibling, 0 replies; 2+ messages in thread
From: jistone at redhat dot com @ 2009-08-25  1:33 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From jistone at redhat dot com  2009-08-25 01:33 -------
Fixed in commit bd25380, PR2475: Filter filenames against the decl_file

All listed functions are now from the correct file:

$ ./run-stap -l 'kernel.function("*@include/linux/mm.h").inline'
kernel.function("lowmem_page_address@include/linux/mm.h:605").inline
kernel.function("init_page_count@include/linux/mm.h:328").inline
kernel.function("page_mapped@include/linux/mm.h:696").inline
kernel.function("pgtable_page_dtor@include/linux/mm.h:973").inline
kernel.function("pgtable_page_ctor@include/linux/mm.h:967").inline
kernel.function("get_page@include/linux/mm.h:311").inline
kernel.function("compound_head@include/linux/mm.h:299").inline
kernel.function("page_count@include/linux/mm.h:306").inline
kernel.function("pud_alloc@include/linux/mm.h:932").inline
kernel.function("pmd_alloc@include/linux/mm.h:938").inline
kernel.function("get_unmapped_area@include/linux/mm.h:1150").inline
kernel.function("vma_pages@include/linux/mm.h:1241").inline
kernel.function("page_zone@include/linux/mm.h:549").inline
kernel.function("page_to_nid@include/linux/mm.h:543").inline
kernel.function("zone_to_nid@include/linux/mm.h:531").inline
kernel.function("get_page_unless_zero@include/linux/mm.h:273").inline
kernel.function("page_mapping@include/linux/mm.h:647").inline
kernel.function("put_page_testzero@include/linux/mm.h:263").inline
kernel.function("set_compound_order@include/linux/mm.h:363").inline
kernel.function("page_zone_id@include/linux/mm.h:526").inline
kernel.function("page_mapcount@include/linux/mm.h:688").inline
kernel.function("set_compound_page_dtor@include/linux/mm.h:345").inline
kernel.function("compound_order@include/linux/mm.h:356").inline
kernel.function("page_index@include/linux/mm.h:671").inline
kernel.function("vma_nonlinear_insert@include/linux/mm.h:1102").inline
kernel.function("round_hint_to_min@include/linux/mm.h:591").inline
kernel.function("find_vma_intersection@include/linux/mm.h:1232").inline
kernel.function("PageAnon@include/linux/mm.h:662").inline
kernel.function("reset_page_mapcount@include/linux/mm.h:683").inline
kernel.function("do_mmap@include/linux/mm.h:1163").inline


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=2475

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-25  1:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20060322005515.2475.jistone@redhat.com>
2009-05-14  1:01 ` [Bug translator/2475] Inlines don't match filenames correctly jistone at redhat dot com
2009-08-25  1:33 ` jistone at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).