public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Semantic error while accessing a function parameter with linux 2.6.29   ppc64
@ 2009-03-26 22:58 Sridhar Samudrala
  2009-03-27  9:22 ` Frank Ch. Eigler
  0 siblings, 1 reply; 3+ messages in thread
From: Sridhar Samudrala @ 2009-03-26 22:58 UTC (permalink / raw)
  To: systemtap

The following simple one line script is failing with a semantic error
on linux 2.6.29 ppc64 .
The same script works fine on linux 2.6.28.
Is there any new config option that needs to be enabled with 2.6.29?

stap -e 'probe kernel.function("tcp_transmit_skb") { printf("skb:%p \n",$skb) }'

semantic error: not accessible at this address: identifier '$skb' at
<input>:1:64
        source: probe kernel.function("tcp_transmit_skb") {
printf("skb:%p \n",$skb) }
                                                                               ^
Pass 2: analysis failed.  Try again with another '--vp 01' option.

Here is the output with more verbose debug information

# ./stap -v -v -v -e 'probe kernel.function("tcp_transmit_skb") {
printf("skb:%p \n",$skb) }'
SystemTap translator/driver (version 0.9/0.137 commit bc02f409)
Copyright (C) 2005-2009 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: ppc64 release: 2.6.29
Created temporary directory "/tmp/stap6kvFMd"
Searched '/home/sridhar/git/systemtap//share/systemtap/tapset/ppc64/*.stp',
found 2
Searched '/home/sridhar/git/systemtap//share/systemtap/tapset/*.stp', found 47
Pass 1: parsed user script and 49 library script(s) in 400usr/0sys/418real ms.
parsed 'tcp_transmit_skb' -> func 'tcp_transmit_skb'
blacklist regexps:
blfn: ^(atomic_notifier_call_chain|default_do_nmi|__die|die_nmi|do_debug|do_general_protection|do_int3|do_IRQ|do_page_fault|do_sparc64_fault|do_trap|dummy_nmi_callback|flush_icache_range|ia64_bad_break|ia64_do_page_fault|ia64_fault|io_check_error|mem_parity_error|nmi_watchdog_tick|notifier_call_chain|oops_begin|oops_end|program_check_exception|single_step_exception|sync_regs|unhandled_fault|unknown_nmi_error|.*raw_.*lock.*|.*read_.*lock.*|.*write_.*lock.*|.*spin_.*lock.*|.*rwlock_.*lock.*|.*rwsem_.*lock.*|.*mutex_.*lock.*|raw_.*|.*seq_.*lock.*|atomic_.*|atomic64_.*|get_bh|put_bh|.*apic.*|.*APIC.*|.*softirq.*|.*IRQ.*|.*_intr.*|__delay|.*kernel_text.*|get_current|current_.*|.*exception_tables.*|.*setup_rt_frame.*|.*preempt_count.*|preempt_schedule)$
blfn_ret: ^(do_exit|sys_exit|sys_exit_group)$
blfile: ^(kernel/kprobes.c|arch/.*/kernel/kprobes.c|include/asm/io.h|include/asm/bitops.h|arch/.*/include/asm/io.h|arch/.*/include/asm/bitops.h|drivers/ide/ide-iops.c)$
focused on module 'kernel = [0xc000000000000000-0xc000000000b08840,
bias 0x0] file /boot/vmlinux-2.6.29 ELF machine ppc64 (code 21)
focused on module 'kernel'
selected function tcp_transmit_skb
probe tcp_transmit_skb@net/ipv4/tcp_output.c:597 kernel reloc=.dynamic
section=.text pc=0xc0000000003e7e70
finding location for local 'skb' near address 0xc0000000003e7e70,
module bias 0x0
Eliding side-effect-free singleton block operator '{' at <input>:1:43
Resolution problem with probe probe_1427
printf("skb:%p \\n", $skb)
semantic error: not accessible at this address: identifier '$skb' at
<input>:1:64
        source: probe kernel.function("tcp_transmit_skb") {
printf("skb:%p \n",$skb) }
                                                                               ^
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0
global(s) in 420usr/1000sys/1443real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.
Running rm -rf /tmp/stap6kvFMd

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

* Re: Semantic error while accessing a function parameter with linux 2.6.29   ppc64
  2009-03-26 22:58 Semantic error while accessing a function parameter with linux 2.6.29 ppc64 Sridhar Samudrala
@ 2009-03-27  9:22 ` Frank Ch. Eigler
  2009-03-30  4:58   ` Sridhar Samudrala
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Ch. Eigler @ 2009-03-27  9:22 UTC (permalink / raw)
  To: Sridhar Samudrala; +Cc: systemtap


Sridhar Samudrala <samudrala.sridhar@gmail.com> writes:

> The following simple one line script is failing with a semantic error
> on linux 2.6.29 ppc64 .
> The same script works fine on linux 2.6.28.
> Is there any new config option that needs to be enabled with 2.6.29?
>
> stap -e 'probe kernel.function("tcp_transmit_skb") { printf("skb:%p \n",$sk=
> b) }'
>
> semantic error: not accessible at this address: identifier '$skb' [...]

http://sources.redhat.com/systemtap/wiki/TipContextVariables has
some advice about this general problem.


- FChE

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

* Re: Semantic error while accessing a function parameter with linux   2.6.29 ppc64
  2009-03-27  9:22 ` Frank Ch. Eigler
@ 2009-03-30  4:58   ` Sridhar Samudrala
  0 siblings, 0 replies; 3+ messages in thread
From: Sridhar Samudrala @ 2009-03-30  4:58 UTC (permalink / raw)
  To: Frank Ch. Eigler; +Cc: systemtap

On Thu, Mar 26, 2009 at 5:06 PM, Frank Ch. Eigler <fche@redhat.com> wrote:
>
> Sridhar Samudrala <samudrala.sridhar@gmail.com> writes:
>
>> The following simple one line script is failing with a semantic error
>> on linux 2.6.29 ppc64 .
>> The same script works fine on linux 2.6.28.
>> Is there any new config option that needs to be enabled with 2.6.29?
>>
>> stap -e 'probe kernel.function("tcp_transmit_skb") { printf("skb:%p \n",$sk=
>> b) }'
>>
>> semantic error: not accessible at this address: identifier '$skb' [...]
>
> http://sources.redhat.com/systemtap/wiki/TipContextVariables has
> some advice about this general problem.

That link seems to be referring to bugs that are seen when probing
inline functions.
I am seeing this problem even with non-inline functions and only when
i moved to linux 2.6.29.
The same scripts run fine with linux 2.6.28 with the same level of gcc
$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)

Thanks
Sridhar

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

end of thread, other threads:[~2009-03-27 23:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-26 22:58 Semantic error while accessing a function parameter with linux 2.6.29 ppc64 Sridhar Samudrala
2009-03-27  9:22 ` Frank Ch. Eigler
2009-03-30  4:58   ` Sridhar Samudrala

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