All of lore.kernel.org
 help / color / mirror / Atom feed
* die__process_function: tag not supported (INVALID)!
@ 2015-07-09 16:21 Bruce Korb
       [not found] ` <559E9FA5.1090307-mXXj517/zsQ@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Bruce Korb @ 2015-07-09 16:21 UTC (permalink / raw)
  To: DWARVES

1. What is that message trying to say?

But also:

2. -D_IO and -x_IO fail to suppress structures with those prefixes.  What, then, are those options?

Thank you!
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: die__process_function: tag not supported (INVALID)!
       [not found] ` <559E9FA5.1090307-mXXj517/zsQ@public.gmane.org>
@ 2015-07-17 19:51   ` Hagen Paul Pfeifer
  2015-07-17 20:53     ` Bruce Korb
  2015-07-17 21:33     ` Mark Wielaard
  0 siblings, 2 replies; 9+ messages in thread
From: Hagen Paul Pfeifer @ 2015-07-17 19:51 UTC (permalink / raw)
  To: DWARVES, Bruce Korb



> On July 9, 2015 at 6:21 PM Bruce Korb <bkorb-mXXj517/zsQ@public.gmane.org> wrote:
> 
> 
> 1. What is that message trying to say?

Take a look here:

https://github.com/acmel/dwarves/blob/master/dwarf_loader.c#L1462

Two cases where tag__print_not_supported() is called -  you stumbled over
one of them.

Hagen
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: die__process_function: tag not supported (INVALID)!
  2015-07-17 19:51   ` Hagen Paul Pfeifer
@ 2015-07-17 20:53     ` Bruce Korb
       [not found]       ` <55A96B38.7050103-mXXj517/zsQ@public.gmane.org>
  2015-07-17 21:33     ` Mark Wielaard
  1 sibling, 1 reply; 9+ messages in thread
From: Bruce Korb @ 2015-07-17 20:53 UTC (permalink / raw)
  To: Hagen Paul Pfeifer, DWARVES

On 07/17/15 12:51, Hagen Paul Pfeifer wrote:
>
>
>> On July 9, 2015 at 6:21 PM Bruce Korb <bkorb-mXXj517/zsQ@public.gmane.org> wrote:
>>
>>
>> 1. What is that message trying to say?
>
> Take a look here:
>
> https://github.com/acmel/dwarves/blob/master/dwarf_loader.c#L1462
>
> Two cases where tag__print_not_supported() is called -  you stumbled over
> one of them.

Now that I've read the source, I don't know what to do.
I really did not mean to have a GNU_call_site in my code,
so is there something to do to make pahole happy?
(It's not C++, so I'm guessing it isn't the template thing...)
I assume that consideration was made to just ignore it,
but it didn't work out?  Is there a way to print tags?
"man readelf" didn't seem to get me anywhere.

Thank you!

--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: die__process_function: tag not supported (INVALID)!
       [not found]       ` <55A96B38.7050103-mXXj517/zsQ@public.gmane.org>
@ 2015-07-17 21:08         ` Hagen Paul Pfeifer
  2015-07-17 21:37           ` Bruce Korb
  0 siblings, 1 reply; 9+ messages in thread
From: Hagen Paul Pfeifer @ 2015-07-17 21:08 UTC (permalink / raw)
  To: DWARVES, bkorb

> On July 17, 2015 at 10:53 PM Bruce Korb <bkorb-mXXj517/zsQ@public.gmane.org> wrote:
>
> Now that I've read the source, I don't know what to do.
> I really did not mean to have a GNU_call_site in my code,
> so is there something to do to make pahole happy?
> (It's not C++, so I'm guessing it isn't the template thing...)
> I assume that consideration was made to just ignore it,
> but it didn't work out?  Is there a way to print tags?
> "man readelf" didn't seem to get me anywhere.

Can you post a minimal example and your exact build environment including
compiler flags? This would speed up the process ...

Hagen
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: die__process_function: tag not supported (INVALID)!
  2015-07-17 19:51   ` Hagen Paul Pfeifer
  2015-07-17 20:53     ` Bruce Korb
@ 2015-07-17 21:33     ` Mark Wielaard
       [not found]       ` <20150717213300.GA2352-iA3+RHPOETwf7BdofF/totBPR1lH4CV8@public.gmane.org>
  1 sibling, 1 reply; 9+ messages in thread
From: Mark Wielaard @ 2015-07-17 21:33 UTC (permalink / raw)
  To: Hagen Paul Pfeifer; +Cc: DWARVES, Bruce Korb

On Fri, Jul 17, 2015 at 09:51:03PM +0200, Hagen Paul Pfeifer wrote:
> > On July 9, 2015 at 6:21 PM Bruce Korb <bkorb-mXXj517/zsQ@public.gmane.org> wrote:
> > 
> > 1. What is that message trying to say?
> 
> Take a look here:
> 
> https://github.com/acmel/dwarves/blob/master/dwarf_loader.c#L1462

Note that as far as I know the github repository is old and not
up to date. I believe the repository to use is:
https://git.kernel.org/cgit/devel/pahole/pahole.git/

Cheers,

Mark
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: die__process_function: tag not supported (INVALID)!
  2015-07-17 21:08         ` Hagen Paul Pfeifer
@ 2015-07-17 21:37           ` Bruce Korb
  0 siblings, 0 replies; 9+ messages in thread
From: Bruce Korb @ 2015-07-17 21:37 UTC (permalink / raw)
  To: Hagen Paul Pfeifer, DWARVES

On 07/17/15 14:08, Hagen Paul Pfeifer wrote:
>> On July 17, 2015 at 10:53 PM Bruce Korb <bkorb-mXXj517/zsQ@public.gmane.org> wrote:
>>
>> Now that I've read the source, I don't know what to do.

> Can you post a minimal example and your exact build environment including
> compiler flags? This would speed up the process ...

Compiler flags?  Easy.  Minimal example?  Not so easy.  It's a 20KLOC program with lots of moving parts.
I tried pahole on all the .o and .a files (and .o files rolled into .a files), but the problems
rears it head only on the final executable.  If that means it is too hard, then it's too hard
and I'll have to forget about it and just say, "thank you for trying."

 >bash> cc -std=gnu99 -I. -Icommon/include -Ievt/include -Ifcd/include -Iftl/include -Iplatform/include \
	-Isch/include -Itests/include -MD -MP -MF_b/tests/main/dep-tests-opts.c -ggdb3 -gdwarf-2 -O0 \
	-DDEBUG_BUILD=1 -Wall -Werror -Wcast-align -Wpointer-arith -Wshadow -Wwrite-strings \
	-Wno-format-contains-nul -fno-strict-aliasing -Wstrict-aliasing=3 -Wextra -Wno-cast-qual \
	-Wmissing-prototypes -Wstrict-prototypes -o _b/tests/main/tests-opts.o -c tests/main/tests-opts.c
 >bash> cc -std=gnu99 -ggdb3 -gdwarf-2 -O0  -Wall -Werror -Wcast-align -Wpointer-arith \
	-Wshadow -Wwrite-strings -Wno-format-contains-nul -fno-strict-aliasing -Wstrict-aliasing=3 \
	-Wextra -Wno-cast-qual -fno-exceptions  -o _b/project_tests \
         _b/tests/main/test_registry.o _b/tests/main/tests.o _b/tests/main/tests_run.o \
	_b/tests/main/tests-opts.o _b/tests-common.a _b/tests-sch.a _b/tests-ftl.a \
	_b/libftl.a _b/sch-sim.a _b/sch-util.a _b/libevt.a _b/common.a _b/common-util.a \
	-lpthread -lopts -lffi

--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: die__process_function: tag not supported (INVALID)!
       [not found]       ` <20150717213300.GA2352-iA3+RHPOETwf7BdofF/totBPR1lH4CV8@public.gmane.org>
@ 2015-07-17 23:01         ` Bruce Korb
       [not found]           ` <55A98954.8080202-mXXj517/zsQ@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Bruce Korb @ 2015-07-17 23:01 UTC (permalink / raw)
  To: Mark Wielaard, Hagen Paul Pfeifer; +Cc: DWARVES

On 07/17/15 14:33, Mark Wielaard wrote:
> On Fri, Jul 17, 2015 at 09:51:03PM +0200, Hagen Paul Pfeifer wrote:
>>> On July 9, 2015 at 6:21 PM Bruce Korb <bkorb-mXXj517/zsQ@public.gmane.org> wrote:
>>>
>>> 1. What is that message trying to say?
>>
>> Take a look here:
>>
>> https://github.com/acmel/dwarves/blob/master/dwarf_loader.c#L1462
>
> Note that as far as I know the github repository is old and not
> up to date. I believe the repository to use is:
> https://git.kernel.org/cgit/devel/pahole/pahole.git/

Does this help any?  Should I go down to frame 6 and poke around?

Breakpoint 1, die__process_function (die=0x7fffffffb670, ftype=0x629b90,
     lexblock=0x629bc8, cu=0x60b430) at /u/bkorb/tools/pahole/dwarf_loader.c:1464
1464            if (!dwarf_haschildren(die) || dwarf_child(die, &child) != 0)
(gdb) bt
#0  die__process_function (die=0x7fffffffb670, ftype=0x629b90,
     lexblock=0x629bc8, cu=0x60b430) at /u/bkorb/tools/pahole/dwarf_loader.c:1464
#1  0x00007ffff7bcffdd in die__create_new_function (die=0x7fffffffb670,
     cu=0x60b430) at /u/bkorb/tools/pahole/dwarf_loader.c:1544
#2  0x00007ffff7bd0136 in __die__process_tag (die=0x7fffffffb670, cu=0x60b430,
     top_level=1, fn=0x7ffff7bd5680 <__FUNCTION__.7998> "die__process_unit")
     at /u/bkorb/tools/pahole/dwarf_loader.c:1583
#3  0x00007ffff7bd0209 in die__process_unit (die=0x7fffffffb670, cu=0x60b430)
     at /u/bkorb/tools/pahole/dwarf_loader.c:1612
#4  0x00007ffff7bd1076 in die__process (die=0x7fffffffb730, cu=0x60b430)
     at /u/bkorb/tools/pahole/dwarf_loader.c:2037
#5  0x00007ffff7bd10fb in die__process_and_recode (die=0x7fffffffb730,
     cu=0x60b430) at /u/bkorb/tools/pahole/dwarf_loader.c:2052
#6  0x00007ffff7bd1968 in cus__load_module (cus=0x608060,
     conf=0x607320 <conf_load>, mod=0x609e10, dw=0x609f90, elf=0x6080f0,
     filename=0x7fffffffe162 "skyhawk_tests")
     at /u/bkorb/tools/pahole/dwarf_loader.c:2276
#7  0x00007ffff7bd1aa6 in cus__process_dwflmod (dwflmod=0x609e10,
     userdata=0x609e20, name=0x609f50 "skyhawk_tests", base=4194304,
     arg=0x7fffffffd970) at /u/bkorb/tools/pahole/dwarf_loader.c:2324
#8  0x00007ffff73e85e1 in dwfl_getmodules () from /usr/lib64/libdw.so.1
#9  0x00007ffff7bd1b66 in cus__process_file (cus=0x608060,
     conf=0x607320 <conf_load>, fd=3, filename=0x7fffffffe162 "skyhawk_tests")
     at /u/bkorb/tools/pahole/dwarf_loader.c:2377
#10 0x00007ffff7bd1be2 in dwarf__load_file (cus=0x608060,
     conf=0x607320 <conf_load>, filename=0x7fffffffe162 "skyhawk_tests")
     at /u/bkorb/tools/pahole/dwarf_loader.c:2394
#11 0x00007ffff7bc1a8c in cus__load_file (cus=0x608060,
     conf=0x607320 <conf_load>, filename=0x7fffffffe162 "skyhawk_tests")
     at /u/bkorb/tools/pahole/dwarves.c:1476
#12 0x00007ffff7bc1b06 in cus__load_files (cus=0x608060,
     conf=0x607320 <conf_load>, filenames=0x7fffffffdbb0)
     at /u/bkorb/tools/pahole/dwarves.c:1490
#13 0x000000000040436c in main (argc=2, argv=0x7fffffffdba8)
     at /u/bkorb/tools/pahole/pahole.c:1250

--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: die__process_function: tag not supported (INVALID)!
       [not found]           ` <55A98954.8080202-mXXj517/zsQ@public.gmane.org>
@ 2015-07-19 19:16             ` Bruce Korb
  2015-07-19 19:18             ` Bruce Korb
  1 sibling, 0 replies; 9+ messages in thread
From: Bruce Korb @ 2015-07-19 19:16 UTC (permalink / raw)
  To: bkorb-mXXj517/zsQ, Mark Wielaard, Hagen Paul Pfeifer; +Cc: DWARVES


I would happily step through the code -- if I knew what to look for and
where to set break points.  But I don't.  The first call to die__process_and_recode
didn't die, so I don't know what I'm looking for.

> Does this help any?  Should I go down to frame 6 and poke around?
>
> Breakpoint 1, die__process_function (die=0x7fffffffb670, ftype=0x629b90,
>      lexblock=0x629bc8, cu=0x60b430) at /u/bkorb/tools/pahole/dwarf_loader.c:1464
> 1464            if (!dwarf_haschildren(die) || dwarf_child(die, &child) != 0)
> (gdb) bt
> #0  die__process_function (die=0x7fffffffb670, ftype=0x629b90,
>      lexblock=0x629bc8, cu=0x60b430) at /u/bkorb/tools/pahole/dwarf_loader.c:1464
> #1  0x00007ffff7bcffdd in die__create_new_function (die=0x7fffffffb670,
>      cu=0x60b430) at /u/bkorb/tools/pahole/dwarf_loader.c:1544
> #2  0x00007ffff7bd0136 in __die__process_tag (die=0x7fffffffb670, cu=0x60b430,
>      top_level=1, fn=0x7ffff7bd5680 <__FUNCTION__.7998> "die__process_unit")
>      at /u/bkorb/tools/pahole/dwarf_loader.c:1583
> #3  0x00007ffff7bd0209 in die__process_unit (die=0x7fffffffb670, cu=0x60b430)
>      at /u/bkorb/tools/pahole/dwarf_loader.c:1612
> #4  0x00007ffff7bd1076 in die__process (die=0x7fffffffb730, cu=0x60b430)
>      at /u/bkorb/tools/pahole/dwarf_loader.c:2037
> #5  0x00007ffff7bd10fb in die__process_and_recode (die=0x7fffffffb730,
>      cu=0x60b430) at /u/bkorb/tools/pahole/dwarf_loader.c:2052
> #6  0x00007ffff7bd1968 in cus__load_module (cus=0x608060,
>      conf=0x607320 <conf_load>, mod=0x609e10, dw=0x609f90, elf=0x6080f0,
>      filename=0x7fffffffe162 "skyhawk_tests")
>      at /u/bkorb/tools/pahole/dwarf_loader.c:2276
> #7  0x00007ffff7bd1aa6 in cus__process_dwflmod (dwflmod=0x609e10,
>      userdata=0x609e20, name=0x609f50 "skyhawk_tests", base=4194304,
>      arg=0x7fffffffd970) at /u/bkorb/tools/pahole/dwarf_loader.c:2324
> #8  0x00007ffff73e85e1 in dwfl_getmodules () from /usr/lib64/libdw.so.1
> #9  0x00007ffff7bd1b66 in cus__process_file (cus=0x608060,
>      conf=0x607320 <conf_load>, fd=3, filename=0x7fffffffe162 "skyhawk_tests")
>      at /u/bkorb/tools/pahole/dwarf_loader.c:2377
> #10 0x00007ffff7bd1be2 in dwarf__load_file (cus=0x608060,
>      conf=0x607320 <conf_load>, filename=0x7fffffffe162 "skyhawk_tests")
>      at /u/bkorb/tools/pahole/dwarf_loader.c:2394
> #11 0x00007ffff7bc1a8c in cus__load_file (cus=0x608060,
>      conf=0x607320 <conf_load>, filename=0x7fffffffe162 "skyhawk_tests")
>      at /u/bkorb/tools/pahole/dwarves.c:1476
> #12 0x00007ffff7bc1b06 in cus__load_files (cus=0x608060,
>      conf=0x607320 <conf_load>, filenames=0x7fffffffdbb0)
>      at /u/bkorb/tools/pahole/dwarves.c:1490
> #13 0x000000000040436c in main (argc=2, argv=0x7fffffffdba8)
>      at /u/bkorb/tools/pahole/pahole.c:1250
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: die__process_function: tag not supported (INVALID)!
       [not found]           ` <55A98954.8080202-mXXj517/zsQ@public.gmane.org>
  2015-07-19 19:16             ` Bruce Korb
@ 2015-07-19 19:18             ` Bruce Korb
  1 sibling, 0 replies; 9+ messages in thread
From: Bruce Korb @ 2015-07-19 19:18 UTC (permalink / raw)
  To: bkorb-mXXj517/zsQ, Mark Wielaard, Hagen Paul Pfeifer; +Cc: DWARVES

OK, never mind.  I set the breakpoints to print and continue and all went well.
I need to use the git version, not the released version of pahole.  Thank you.
--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-19 19:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09 16:21 die__process_function: tag not supported (INVALID)! Bruce Korb
     [not found] ` <559E9FA5.1090307-mXXj517/zsQ@public.gmane.org>
2015-07-17 19:51   ` Hagen Paul Pfeifer
2015-07-17 20:53     ` Bruce Korb
     [not found]       ` <55A96B38.7050103-mXXj517/zsQ@public.gmane.org>
2015-07-17 21:08         ` Hagen Paul Pfeifer
2015-07-17 21:37           ` Bruce Korb
2015-07-17 21:33     ` Mark Wielaard
     [not found]       ` <20150717213300.GA2352-iA3+RHPOETwf7BdofF/totBPR1lH4CV8@public.gmane.org>
2015-07-17 23:01         ` Bruce Korb
     [not found]           ` <55A98954.8080202-mXXj517/zsQ@public.gmane.org>
2015-07-19 19:16             ` Bruce Korb
2015-07-19 19:18             ` Bruce Korb

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.