From: "K.Prasad" <prasad@linux.vnet.ibm.com>
To: Mark Wielaard <mjw@redhat.com>
Cc: systemtap@sourceware.org, Stan Cox <scox@redhat.com>, dsmith@redhat.com
Subject: Re: Failures with exelib.exp testcase (was Re: minutes 2010-08-19)
Date: Wed, 19 Jan 2011 12:01:00 -0000 [thread overview]
Message-ID: <20110119120045.GA2431@in.ibm.com> (raw)
In-Reply-To: <1295362573.5442.18.camel@springer.wildebeest.org>
[-- Attachment #1: Type: text/plain, Size: 1858 bytes --]
On Tue, Jan 18, 2011 at 03:56:13PM +0100, Mark Wielaard wrote:
> On Tue, 2011-01-18 at 20:04 +0530, K.Prasad wrote:
> > It appears that the probe is placed on top of the stack...
>
> What do you mean by that?
>
I think I missed out a few words when pruning the sentence....kindly
ignore.
> > pasting the relevant log here (while complete screen logs are attached).
> >
> > selected function print_hw
> > prologue searching function 'print_hw' 0x10000530-0x10000570@/home/prasadkr/helloworld.c:4
> > checking line record 0x10000530@/home/prasadkr/helloworld.c:5
> > prologue found function 'print_hw' (naked) = 0x10000530
> > probe print_hw@/home/prasadkr/helloworld.c:4 process=/home/prasadkr/helloworld reloc=.absolute pc=0x10000530
>
> So, we actually are putting the probe at address 0x10000530, and uaddr()
> does return that address from within the probe context. Good. But our
> translation table doesn't contain "print_hw" at that address.
>
> Could you check some things?
> - Can you run it under gdb and put a breakpoint at print_hw,
> which address does that give?
> - What is the output of eu-readelf -s helloworld?
>
> Thanks,
>
> Mark
>
# gdb helloworld
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/prasadkr/helloworld...done.
(gdb) break print_hw
Breakpoint 1 at 0x10000544: file helloworld.c, line 6.
(gdb) q
I'm attaching the output of eu-readelf to this mail.
Thanks,
K.Prasad
[-- Attachment #2: eu_readelf.output --]
[-- Type: text/plain, Size: 5914 bytes --]
Symbol table [ 5] '.dynsym' contains 3 entries:
1 local symbol String table: [ 6] '.dynstr'
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF
1: 0000000000000000 0 FUNC GLOBAL DEFAULT UNDEF puts@GLIBC_2.3 (2)
2: 0000000000000000 0 FUNC GLOBAL DEFAULT UNDEF __libc_start_main@GLIBC_2.3 (2)
Symbol table [37] '.symtab' contains 75 entries:
56 local symbols String table: [38] '.strtab'
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UNDEF
1: 0000000010000200 0 SECTION LOCAL DEFAULT 1
2: 0000000010000214 0 SECTION LOCAL DEFAULT 2
3: 0000000010000234 0 SECTION LOCAL DEFAULT 3
4: 0000000010000258 0 SECTION LOCAL DEFAULT 4
5: 0000000010000278 0 SECTION LOCAL DEFAULT 5
6: 00000000100002c0 0 SECTION LOCAL DEFAULT 6
7: 00000000100002ec 0 SECTION LOCAL DEFAULT 7
8: 00000000100002f8 0 SECTION LOCAL DEFAULT 8
9: 0000000010000318 0 SECTION LOCAL DEFAULT 9
10: 0000000010000348 0 SECTION LOCAL DEFAULT 10
11: 0000000010000390 0 SECTION LOCAL DEFAULT 11
12: 0000000010000740 0 SECTION LOCAL DEFAULT 12
13: 0000000010000768 0 SECTION LOCAL DEFAULT 13
14: 00000000100007a4 0 SECTION LOCAL DEFAULT 14
15: 00000000100007c8 0 SECTION LOCAL DEFAULT 15
16: 0000000010010848 0 SECTION LOCAL DEFAULT 16
17: 0000000010010858 0 SECTION LOCAL DEFAULT 17
18: 0000000010010868 0 SECTION LOCAL DEFAULT 18
19: 0000000010010870 0 SECTION LOCAL DEFAULT 19
20: 00000000100109e0 0 SECTION LOCAL DEFAULT 20
21: 00000000100109e8 0 SECTION LOCAL DEFAULT 21
22: 0000000010010a20 0 SECTION LOCAL DEFAULT 22
23: 0000000010010ac8 0 SECTION LOCAL DEFAULT 23
24: 0000000010010ac8 0 SECTION LOCAL DEFAULT 24
25: 0000000010010b08 0 SECTION LOCAL DEFAULT 25
26: 0000000010010b50 0 SECTION LOCAL DEFAULT 26
27: 0000000000000000 0 SECTION LOCAL DEFAULT 27
28: 0000000000000000 0 SECTION LOCAL DEFAULT 28
29: 0000000000000000 0 SECTION LOCAL DEFAULT 29
30: 0000000000000000 0 SECTION LOCAL DEFAULT 30
31: 0000000000000000 0 SECTION LOCAL DEFAULT 31
32: 0000000000000000 0 SECTION LOCAL DEFAULT 32
33: 0000000000000000 0 SECTION LOCAL DEFAULT 33
34: 0000000000000000 0 SECTION LOCAL DEFAULT 34
35: 0000000000000000 0 SECTION LOCAL DEFAULT 35
36: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
37: 0000000010010848 0 OBJECT LOCAL DEFAULT 16 __CTOR_LIST__
38: 0000000010010858 0 OBJECT LOCAL DEFAULT 17 __DTOR_LIST__
39: 0000000010010868 0 OBJECT LOCAL DEFAULT 18 __JCR_LIST__
40: 0000000010010b50 1 OBJECT LOCAL DEFAULT 26 completed.6897
41: 0000000010010b58 8 OBJECT LOCAL DEFAULT 26 dtor_idx.6899
42: 0000000010010a50 0 FUNC LOCAL DEFAULT 22 __do_global_dtors_aux
43: 0000000010010a60 0 FUNC LOCAL DEFAULT 22 frame_dummy
44: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c
45: 0000000010010850 0 OBJECT LOCAL DEFAULT 16 __CTOR_END__
46: 0000000010000840 0 OBJECT LOCAL DEFAULT 15 __FRAME_END__
47: 0000000010010868 0 OBJECT LOCAL DEFAULT 18 __JCR_END__
48: 0000000010010ab0 0 FUNC LOCAL DEFAULT 22 __do_global_ctors_aux
49: 0000000000000000 0 FILE LOCAL DEFAULT ABS helloworld.c
50: 00000000100003a8 0 NOTYPE LOCAL DEFAULT 11 00000011.plt_call.__libc_start_main@@GLIBC_2.3+0
51: 00000000100006f8 0 NOTYPE LOCAL DEFAULT 11 __glink_PLTresolve
52: 0000000010010844 0 NOTYPE LOCAL DEFAULT 16 __init_array_end
53: 0000000010010844 0 NOTYPE LOCAL DEFAULT 16 __init_array_start
54: 0000000010010870 0 OBJECT LOCAL DEFAULT 19 _DYNAMIC
55: 0000000010000390 0 NOTYPE LOCAL DEFAULT 11 00000011.plt_call.puts@@GLIBC_2.3+0
56: 00000000100109e0 0 NOTYPE WEAK DEFAULT 20 data_start
57: 0000000010010a90 16 FUNC GLOBAL DEFAULT 22 __libc_csu_fini
58: 0000000010010a20 60 FUNC GLOBAL DEFAULT 22 _start
59: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF __gmon_start__
60: 0000000000000000 0 NOTYPE WEAK DEFAULT UNDEF _Jv_RegisterClasses
61: 0000000010010a70 64 FUNC GLOBAL DEFAULT 22 print_hw
62: 0000000010010a40 0 FUNC GLOBAL DEFAULT 22 _fini
63: 0000000010000788 4 OBJECT GLOBAL DEFAULT 13 _IO_stdin_used
64: 00000000100109e0 0 NOTYPE GLOBAL DEFAULT 20 __data_start
65: 0000000010000790 0 OBJECT GLOBAL HIDDEN 13 __dso_handle
66: 0000000010010860 0 OBJECT GLOBAL HIDDEN 17 __DTOR_END__
67: 0000000010010aa0 192 FUNC GLOBAL DEFAULT 22 __libc_csu_init
68: 0000000000000000 0 FUNC GLOBAL DEFAULT UNDEF puts@@GLIBC_2.3
69: 0000000010010b08 0 NOTYPE GLOBAL DEFAULT ABS __bss_start
70: 0000000010010b60 0 NOTYPE GLOBAL DEFAULT ABS _end
71: 0000000010010b08 0 NOTYPE GLOBAL DEFAULT ABS _edata
72: 0000000010010a80 64 FUNC GLOBAL DEFAULT 22 main
73: 0000000010010a30 0 FUNC GLOBAL DEFAULT 22 _init
74: 0000000000000000 0 FUNC GLOBAL DEFAULT UNDEF __libc_start_main@@GLIBC_2.3
next prev parent reply other threads:[~2011-01-19 12:01 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20100826194353.GC3185@redhat.com>
[not found] ` <20100827092840.GA4129@in.ibm.com>
[not found] ` <20100830032810.GA5213@in.ibm.com>
[not found] ` <1283152139.2362.2.camel@hermans.wildebeest.org>
[not found] ` <20100830111805.GA4115@in.ibm.com>
[not found] ` <1283169285.15128.20.camel@springer.wildebeest.org>
[not found] ` <20101111121023.GA2597@in.ibm.com>
[not found] ` <1289485749.2470.5.camel@hermans.wildebeest.org>
[not found] ` <20110117145437.GA4251@in.ibm.com>
[not found] ` <1295278356.2998.47.camel@springer.wildebeest.org>
2011-01-18 13:09 ` K.Prasad
2011-01-18 13:30 ` Mark Wielaard
2011-01-18 14:35 ` K.Prasad
2011-01-18 14:56 ` Mark Wielaard
2011-01-19 12:01 ` K.Prasad [this message]
2011-01-19 23:24 ` Mark Wielaard
2011-01-20 1:19 ` Roland McGrath
2011-01-20 11:11 ` Mark Wielaard
2011-01-20 18:53 ` Roland McGrath
2011-01-21 23:16 ` Mark Wielaard
2011-02-02 12:24 ` K.Prasad
2011-02-02 12:59 ` Mark Wielaard
2011-02-03 5:04 ` K.Prasad
2011-02-03 10:16 ` Mark Wielaard
2011-02-03 12:34 ` K.Prasad
2011-02-03 12:44 ` Mark Wielaard
2011-02-03 18:59 ` Roland McGrath
2011-02-08 13:13 ` Mark Wielaard
2011-02-08 18:45 ` Roland McGrath
2011-02-08 19:51 ` Mark Wielaard
2011-02-08 19:57 ` Roland McGrath
2011-02-14 16:50 ` K.Prasad
2011-02-14 20:33 ` Mark Wielaard
2011-03-04 7:13 ` K.Prasad
2011-03-04 15:06 ` Mark Wielaard
2011-03-17 9:05 ` K.Prasad
2011-03-17 13:04 ` Mark Wielaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110119120045.GA2431@in.ibm.com \
--to=prasad@linux.vnet.ibm.com \
--cc=dsmith@redhat.com \
--cc=mjw@redhat.com \
--cc=scox@redhat.com \
--cc=systemtap@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).