This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [BUG?] semantic error: failed to retrieve location attribute for local


Jan Blunck <jblunck@suse.de> writes:

> I have the following simple probe:
> probe kernel.inline("real_lookup")
> {
>         printf("%s - %s(%s): %s\n", thread_indent(0), probefunc(),
>                    kernel_string($parent->d_name->name),
>                    kernel_string($name->name))
> }

Welcome to the list!

> The full error message is as follows:
> [...]
> querying entrypc c0170197 of instance of inline 'real_lookup'
> probe real_lookup@fs/namei.c:447 kernel section=.text pc=0xc0170197
> finding location for local 'parent' near address c0170197, module bias 0
> finding location for local 'name' near address c0170197, module bias 0
> [...]
> semantic error: failed to retrieve location attribute for local 'name'
> (dieoffset: 85127198053): identifier '$name' at real_lookup.stp:9:20
> [...]
> Is this a bug?

Problems such as this tend to be limitations of gcc debugging
information quality.  One frequently-hit bug is that few actual
parameters get proper debugging information emitted, even if they are
used by the inlined function body.

- FChE


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]