254133
commit 578e60102871d11ed8c18d36f6286f3a96258d8f
254133
Author: Ryan Goldberg <rgoldber@redhat.com>
254133
Date:   Thu Dec 1 16:15:44 2022 -0500
254133
254133
    PR29676: Wildcard expansion fix for labels
254133
    
254133
    PR29676, introduced an bug where function symbols from the symbol
254133
    table were expanded in the function component resulting in wildcards
254133
    not being expanded in labels. This fix, removes the issue by restricting
254133
    the symbol table query to probes which don't need further debuginfo to
254133
    expand.
254133
254133
diff --git a/tapsets.cxx b/tapsets.cxx
254133
index 0ec71ebda..46b10f26e 100644
254133
--- a/tapsets.cxx
254133
+++ b/tapsets.cxx
254133
@@ -1256,7 +1256,11 @@ dwarf_query::handle_query_module()
254133
   // in the symbol table but not in dwarf and minidebuginfo is
254133
   // located in the gnu_debugdata section, alias_dupes checking
254133
   // is done before adding any probe points
254133
-  if(!pending_interrupts)
254133
+  // PR29676.   Some probes require additional debuginfo
254133
+  // to expand wildcards (ex. .label, .callee). Since the debuginfo is
254133
+  // not available, don't bother looking in the symbol table for these results.
254133
+  // This can result in 0 results, if there is no dwarf info present
254133
+  if(!pending_interrupts && !(has_label || has_callee || has_callees_num))
254133
     query_module_symtab();
254133
 }
254133
 
254133