public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug libdw/22252] New: Parallel parsing of CU's DIEs from libdw
@ 2017-10-04 18:23 woodard at redhat dot com
  2020-09-09 13:38 ` [Bug libdw/22252] " mark at klomp dot org
  2020-11-13  0:00 ` woodard at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: woodard at redhat dot com @ 2017-10-04 18:23 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=22252

            Bug ID: 22252
           Summary: Parallel parsing of CU's DIEs from libdw
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libdw
          Assignee: unassigned at sourceware dot org
          Reporter: woodard at redhat dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

To speed up the processing of large ELF files which are common in HPC please
resolve the data races which prevent parallel parsing of CU's DIEs within ELF
files. We'd like to do something like:

 for(Dwarf_Off cu_off = 0;
            dwarf_next_unit(dbg(), cu_off, &next_cu_header, &cu_header_length,
                NULL, &abbrev_offset, &addr_size, &offset_size,
                &type_signaturep, NULL) == 0;
            cu_off = next_cu_header)
    {
        if(!dwarf_offdie_types(dbg(), cu_off + cu_header_length,
&current_cu_die))
            continue;
// Modified for parallelism: rather than a single DwarfWalker holding state,
// create a new context and clone before we spawn a thread
        push();
        DwarfWalker mod_walker(*this);
        pop();
        bool ret = cilk_spawn mod_walker.parseModule(false, fixUnknownMod);
//        bool ret = parseModule(false, fixUnknownMod);
        if(!ret) {
            cilk_sync;
            return false;
        }
        compile_offset = next_cu_header;
    }
    cilk_sync;

Code similar to this is being worked on for dyninst http://www.dyninst.org/

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug libdw/22252] Parallel parsing of CU's DIEs from libdw
  2017-10-04 18:23 [Bug libdw/22252] New: Parallel parsing of CU's DIEs from libdw woodard at redhat dot com
@ 2020-09-09 13:38 ` mark at klomp dot org
  2020-11-13  0:00 ` woodard at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: mark at klomp dot org @ 2020-09-09 13:38 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=22252

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
I believe this has been resolved since elfutils Version 0.178

libdw: Abbrevs and DIEs can now be read concurrently by multiple
       threads through the same Dwarf handle.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug libdw/22252] Parallel parsing of CU's DIEs from libdw
  2017-10-04 18:23 [Bug libdw/22252] New: Parallel parsing of CU's DIEs from libdw woodard at redhat dot com
  2020-09-09 13:38 ` [Bug libdw/22252] " mark at klomp dot org
@ 2020-11-13  0:00 ` woodard at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: woodard at redhat dot com @ 2020-11-13  0:00 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=22252

Ben Woodard <woodard at redhat dot com> changed:

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

--- Comment #2 from Ben Woodard <woodard at redhat dot com> ---
Yea done.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2020-11-13  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-04 18:23 [Bug libdw/22252] New: Parallel parsing of CU's DIEs from libdw woodard at redhat dot com
2020-09-09 13:38 ` [Bug libdw/22252] " mark at klomp dot org
2020-11-13  0:00 ` woodard 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).