From: David Smith Date: Thu, 3 May 2012 14:36:28 +0000 (-0500) Subject: Remove more unused semaphore code from dwarf_derived_probe class. X-Git-Tag: release-1.8~140 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=571f9643b5a82a189d045571b986e17d7f263386;p=systemtap.git Remove more unused semaphore code from dwarf_derived_probe class. * tapsets.cxx (dwarf_derived_probe::join_group): Remove semaphore code. (dwarf_derived_probe::emit_probe_local_init): Ditto. (dwarf_derived_probe_group::emit_module_decls): Ditto. --- diff --git a/tapsets.cxx b/tapsets.cxx index 44e39594f..b882107d8 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -4097,9 +4097,6 @@ dwarf_derived_probe::join_group (systemtap_session& s) if (! s.dwarf_derived_probes) s.dwarf_derived_probes = new dwarf_derived_probe_group (); s.dwarf_derived_probes->enroll (this); - - if (sdt_semaphore_addr != 0) - enable_task_finder(s); } @@ -4626,8 +4623,6 @@ dwarf_derived_probe::emit_probe_local_init(translator_output * o) void dwarf_derived_probe_group::enroll (dwarf_derived_probe* p) { - if (p->sdt_semaphore_addr != 0) - throw runtime_error(_("No dwarf kprobe semaphore support")); probes_by_module.insert (make_pair (p->module, p)); // XXX: probes put at the same address should all share a @@ -4756,31 +4751,6 @@ dwarf_derived_probe_group::emit_module_decls (systemtap_session& s) s.op->line() << " .module=\"" << p->module << "\","; s.op->line() << " .section=\"" << p->section << "\","; s.op->line() << " .probe=" << common_probe_init (p) << ","; - if (p->sdt_semaphore_addr != 0) - { - s.op->line() << " .sdt_sem_offset=(unsigned long)0x" << hex << p->sdt_semaphore_addr << dec << "ULL,"; - s.op->line() << " .sdt_sem_address=0,"; - if (p->has_library) - { - s.op->line() << " .finder={"; - s.op->line() << " .pid=0,"; - s.op->line() << " .procname=\"" << p->user_path << "\","; - s.op->line() << " .mmap_callback=&stap_kprobe_mmap_found,"; - s.op->line() << " },"; - s.op->line() << " .pathname=\"" << p->user_lib << "\","; - } - else - { - s.op->line() << " .finder={"; - s.op->line() << " .pid=0,"; - s.op->line() << " .procname=\"" << p->user_path << "\","; - s.op->line() << " .callback=&stap_kprobe_process_found,"; - s.op->line() << " },"; - s.op->line() << " .pathname=\"" << p->user_path << "\","; - } - - } - s.op->line() << " },"; }