public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug uprobes/21241] New: build systemtap module fail for uprobe for target aarch64-android
@ 2017-03-13  2:48 ray.zheng at oceanwing dot com
  2017-03-13 13:26 ` [Bug uprobes/21241] " fche at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ray.zheng at oceanwing dot com @ 2017-03-13  2:48 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=21241

            Bug ID: 21241
           Summary: build systemtap module fail for uprobe for target
                    aarch64-android
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: uprobes
          Assignee: systemtap at sourceware dot org
          Reporter: ray.zheng at oceanwing dot com
  Target Milestone: ---

Hi,expert

I have a problem in uprobe.

my systemtap version is  (version 3.2/0.168, commit release-3.1-7-ged948abe57a1
+ changes)

my android kernel version is 3.18.24

I use the follow command to build the systemtap module for arm64-android.

sudo systemtap-ubuntu/bin/stap -g -vvvvvvvvvvvvvvv -a arm64 -B    
CROSS_COMPILE=/usr/bin/aarch64-linux-gnu- -r
~/work/project/platform/out/target/product/{product}/obj/KERNEL_OBJ/  -m
myprocess.ko msyprocess_call.stp.back

the context of msyprocess_call.stp.back show below

probe process("*").function("*") {
print_usyms(ubacktrace())
}

and the build is failed,and show the below log

derive-probes process("*").function("*")
semantic error: resolution failed in DWARF builder
   thrown from: elaborate.cxx:1092
semantic error: while resolving probe point: identifier 'process' at
msyprocess_call.stp.back:1:7
   thrown from: elaborate.cxx:1080
        source: probe process("*").function("*") {
                      ^

semantic error: no match
   thrown from: elaborate.cxx:1043
Pass 2: analyzed script: 0 probes, 0 functions, 0 embeds, 0 globals using
72536virt/46476res/5484shr/41528data kb, in 0usr/0sys/3real ms.
Pass 2: analysis failed.  [man error::pass2]


I don't know what I can do to resolve this problem, can you give me a help?

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug uprobes/21241] build systemtap module fail for uprobe for target aarch64-android
  2017-03-13  2:48 [Bug uprobes/21241] New: build systemtap module fail for uprobe for target aarch64-android ray.zheng at oceanwing dot com
@ 2017-03-13 13:26 ` fche at redhat dot com
  2017-03-14  4:47 ` ray.zheng at oceanwing dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2017-03-13 13:26 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=21241

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
You can use 

% stap -l 'process("...").function("*")'

to list available probe points of a given pattern.
I don't know why process("*") would have failed for you; maybe there were no
programs in your working directory at the time.  Try just one program to start
with.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug uprobes/21241] build systemtap module fail for uprobe for target aarch64-android
  2017-03-13  2:48 [Bug uprobes/21241] New: build systemtap module fail for uprobe for target aarch64-android ray.zheng at oceanwing dot com
  2017-03-13 13:26 ` [Bug uprobes/21241] " fche at redhat dot com
@ 2017-03-14  4:47 ` ray.zheng at oceanwing dot com
  2017-03-14  5:23 ` ray.zheng at oceanwing dot com
  2017-03-15  6:31 ` ray.zheng at oceanwing dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ray.zheng at oceanwing dot com @ 2017-03-14  4:47 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=21241

--- Comment #2 from ray <ray.zheng at oceanwing dot com> ---
Hi,expert

I use systemtap module in android target,so I need to compile it to module.

I use gdb to trace, found that it enter the dwarf_builder::build,
and after it return to derive_probes, found the condition in line 1041&1042 is
right,so it throw the no match error. 

1039           unsigned num_atend = dps.size();
1040 
1041           if (! (loc->optional||parent_optional) && // something required,
but
1042               num_atbegin == num_atend) // nothing new derived!
1043             throw SEMANTIC_ERROR (_("no match"));

but it do not know what happen in the dwarf_builder::build.

what can I do next to check the reason of this problem?

back trace show below:

#0  dwarf_builder::build (this=0x30628e0, sess=..., base=0x2fa1060,
location=0xf64ba0, parameters=std::map with 2 elements = {...},
finished_results=std::vector of length 0, capacity 0) at tapsets.cxx:802
4
#1  0x000000000047fc74 in match_node::find_and_build (this=0x3067a50, s=...,
p=p@entry=0x2fa1060, loc=loc@entry=0xf64ba0, pos=pos@entry=2,
results=std::vector of length 0, capacity 0, builders=std::set wi
th 0 elements) at elaborate.cxx:474
#2  0x00000000004807c5 in match_node::find_and_build (this=0x2f798d0, s=...,
p=p@entry=0x2fa1060, loc=loc@entry=0xf64ba0, pos=pos@entry=1,
results=std::vector of length 0, capacity 0, builders=std::set wi
th 0 elements) at elaborate.cxx:648
#3  0x00000000004807c5 in match_node::find_and_build (this=0x8a3240, s=...,
p=p@entry=0x2fa1060, loc=loc@entry=0xf64ba0, pos=pos@entry=0,
results=std::vector of length 0, capacity 0, builders=std::set wit
h 0 elements) at elaborate.cxx:648
#4  0x000000000048170d in derive_probes (s=..., p=0x2fa1060, dps=std::vector of
length 0, capacity 0, optional=optional@entry=false,
rethrow_errors=rethrow_errors@entry=false) at elaborate.cxx:1022
#5  0x00000000004836a7 in semantic_pass_symbols (s=...) at elaborate.cxx:1883
#6  0x00000000004959ba in semantic_pass (s=...) at elaborate.cxx:2420
#7  0x0000000000412cd5 in passes_0_4 (s=...) at main.cxx:898
#8  0x000000000040b4e5 in main (argc=<optimized out>, argv=<optimized out>) at
main.cxx:1333

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug uprobes/21241] build systemtap module fail for uprobe for target aarch64-android
  2017-03-13  2:48 [Bug uprobes/21241] New: build systemtap module fail for uprobe for target aarch64-android ray.zheng at oceanwing dot com
  2017-03-13 13:26 ` [Bug uprobes/21241] " fche at redhat dot com
  2017-03-14  4:47 ` ray.zheng at oceanwing dot com
@ 2017-03-14  5:23 ` ray.zheng at oceanwing dot com
  2017-03-15  6:31 ` ray.zheng at oceanwing dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ray.zheng at oceanwing dot com @ 2017-03-14  5:23 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=21241

--- Comment #3 from ray <ray.zheng at oceanwing dot com> ---
Oh,sorry,

I forgot to thanks for your replay!

thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

* [Bug uprobes/21241] build systemtap module fail for uprobe for target aarch64-android
  2017-03-13  2:48 [Bug uprobes/21241] New: build systemtap module fail for uprobe for target aarch64-android ray.zheng at oceanwing dot com
                   ` (2 preceding siblings ...)
  2017-03-14  5:23 ` ray.zheng at oceanwing dot com
@ 2017-03-15  6:31 ` ray.zheng at oceanwing dot com
  3 siblings, 0 replies; 5+ messages in thread
From: ray.zheng at oceanwing dot com @ 2017-03-15  6:31 UTC (permalink / raw)
  To: systemtap

https://sourceware.org/bugzilla/show_bug.cgi?id=21241

ray <ray.zheng at oceanwing dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #4 from ray <ray.zheng at oceanwing dot com> ---
close

-- 
You are receiving this mail because:
You are the assignee for the bug.

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

end of thread, other threads:[~2017-03-15  6:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-13  2:48 [Bug uprobes/21241] New: build systemtap module fail for uprobe for target aarch64-android ray.zheng at oceanwing dot com
2017-03-13 13:26 ` [Bug uprobes/21241] " fche at redhat dot com
2017-03-14  4:47 ` ray.zheng at oceanwing dot com
2017-03-14  5:23 ` ray.zheng at oceanwing dot com
2017-03-15  6:31 ` ray.zheng at oceanwing dot com

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).