Messages in this thread | | | Date | Thu, 25 Jun 2015 05:30:58 -0700 | From | Alexei Starovoitov <> | Subject | Re: [PATCH 06/17] perf probe: Add --range option to show a variable's location range |
| |
On Thu, May 14, 2015 at 07:37:58PM -0300, Arnaldo Carvalho de Melo wrote: > From: He Kuang <hekuang@huawei.com> > > It is not easy for users to get the accurate byte offset or the line > number where a local variable can be probed. > > With '--range' option, local variables in the scope of the probe point > are showed with a byte offset range, and can be added according to this > range information. ... > + while ((offset = dwarf_getlocations( > + &attr, offset, &base, > + &start, &end, &op, &nops)) > 0) {
dwarf_getlocations only exists in the new libdw, so perf stopped building with libdw from ubuntu 12.04. Yeah, it's old, but can we add a weak dwarf_getlocations(), so that we don't need to force everyone upgrading elfutils/libdw for that feature?
| |