perf probe: Add --no-inlines option to avoid searching inline functions
[firefly-linux-kernel-4.4.55.git] / tools / perf / util / probe-finder.c
index f4f5eed00c7d1c60c7a66402b38b4afe86324198..1713421112f873a4dd8e1e6875aa04696d9e77bc 100644 (file)
@@ -943,7 +943,7 @@ static int probe_point_search_cb(Dwarf_Die *sp_die, void *data)
                        /* TODO: Check the address in this function */
                        param->retval = call_probe_finder(sp_die, pf);
                }
-       } else
+       } else if (!probe_conf.no_inlines)
                /* Inlined function: search instances */
                param->retval = die_walk_instances(sp_die,
                                        probe_point_inline_cb, (void *)pf);