Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1471052
| From | Masami Hiramatsu <mhiramat@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 2/2] perf uprobe: Skip prologue if program compiled without optimization |
| Date | 2016-08-27 02:30 +0200 |
| Message-ID | <sazFv-5RO-9@gated-at.bofh.it> (permalink) |
| References | <s20bU-i1-9@gated-at.bofh.it> <s20lA-AN-5@gated-at.bofh.it> <saviy-2VG-25@gated-at.bofh.it> <savBT-3hs-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, 26 Aug 2016 16:54:52 -0300 Arnaldo Carvalho de Melo <acme@kernel.org> wrote: > Em Fri, Aug 26, 2016 at 04:30:27PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Wed, Aug 03, 2016 at 02:28:45PM +0530, Ravi Bangoria escreveu: > > > +++ b/tools/perf/util/probe-finder.c > > > @@ -892,6 +892,169 @@ static int find_probe_point_lazy(Dwarf_Die *sp_die, struct probe_finder *pf) > > > return die_walk_lines(sp_die, probe_point_lazy_walker, pf); > > > } > > > > > +static bool var_has_loclist(Dwarf_Die *die) > > > > So, the variable 'die' cause the build to fail in multiple systems, I'm > > renaming it to 'cu_die', there are some more problems when cross compiling it > > to some arches, I'm trying to fix them all now: > > Fixed, please check: > > http://git.kernel.org/cgit/linux/kernel/git/acme/linux.git/commit/?h=perf/urgent&id=3866e3762da3291613dfb8b193885a8ed3836669 Hmm I think var_has_loclist(cu_die) should be vr_die(means Variable DIE) not cu_die (Compile Unit DIE == object file itself) since user must pass the DIE for local variable. And revisiting on the code, it seems this has several generic dwarf related functions, which can be put into dwarf-aux.c/.h as other APIs. But anyway it is a trivial & cleanup thing. At first we should fix this bug for helping users ASAP. So I'm OK. Thank you! -- Masami Hiramatsu <mhiramat@kernel.org>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH v2 2/2] perf uprobe: Skip prologue if program compiled without optimization Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-26 21:50 +0200
Re: [PATCH v2 2/2] perf uprobe: Skip prologue if program compiled without optimization Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-08-26 22:10 +0200
Re: [PATCH v2 2/2] perf uprobe: Skip prologue if program compiled without optimization Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-27 02:30 +0200
[PATCH] perf probe: Move dwarf specific functions to dwarf-aux.c Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2016-08-29 17:20 +0200
Re: [PATCH] perf probe: Move dwarf specific functions to dwarf-aux.c Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-30 01:00 +0200
[PATCH v2] perf probe: Move dwarf specific functions to dwarf-aux.c Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2016-08-30 10:50 +0200
Re: [PATCH v2] perf probe: Move dwarf specific functions to dwarf-aux.c Masami Hiramatsu <mhiramat@kernel.org> - 2016-08-30 16:30 +0200
[tip:perf/core] perf probe: Move dwarf specific functions to dwarf-aux.c tip-bot for Ravi Bangoria <tipbot@zytor.com> - 2016-09-05 15:30 +0200
Re: [PATCH v2 2/2] perf uprobe: Skip prologue if program compiled without optimization Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2016-08-29 10:10 +0200
Re: [PATCH v2 2/2] perf uprobe: Skip prologue if program compiled without optimization Ravi Bangoria <ravi.bangoria@linux.vnet.ibm.com> - 2016-08-29 10:10 +0200
csiph-web