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]

[Bug testsuite/10231] Systemtap variable references fail on custom kernels built on RHEL 5.3 on ppc64


------- Additional Comments From ananth at in dot ibm dot com  2009-06-06 12:17 -------
Created an attachment (id=3985)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3985&action=view)
.config of the powerpc kernel

.config attached. This is a streamlined config for the machine in question and
will probably need to be tweaked for other machines. Also, this problem has
only been seen on RHEL5.x powerpc boxes -- Fedora powerpc works fine.

Further, I am now fairly convinced this isn't a debuginfo mismatch issue. I
built a new kernel from scratch and new SystemTap with REHL5.3 elfutils:

[ananth@... linux-2.6.30-rc8]$ stap -vvve 'probe kernel.function("do_fork") {
printf("%s\n", $clone_flags) exit() }'
SystemTap translator/driver (version 0.9.7/0.137 non-git sources)
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.30-rc8
Created temporary directory "/tmp/stapkxanHQ"
Searched '/usr/local/share/systemtap/tapset/ppc64/*.stp', found 3
Searched '/usr/local/share/systemtap/tapset/*.stp', found 52
Pass 1: parsed user script and 55 library script(s) in 640usr/10sys/724real ms.

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

parsed 'do_fork' -> func 'do_fork'
focused on module 'kernel = [0xc000000000000000-0xc00000000093cfb0, bias 0x0]
file /boot/vmlinux-2.6.30-rc8 ELF machine |ppc64 (code 21)
focused on module 'kernel'
selected function do_fork
probe do_fork@kernel/fork.c:1347 kernel reloc=.dynamic section=.text
pc=0xc000000000082ad0
finding location for local 'clone_flags' near address 0xc000000000082ad0,
module bias 0x0
Eliding unused function error
Eliding unused function log
Eliding unused function stp_print_binary
Eliding unused function warn
Resolution problem with probe probe_1839
{
printf("%s\\n", $clone_flags)
exit()
}
semantic error: not accessible at this address: identifier '$clone_flags' at
<input>:1:51
	source: probe kernel.function("do_fork") { printf("%s\n", $clone_flags)
exit() }
								  ^
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in
550usr/990sys/1794real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.
Running rm -rf /tmp/stapkxanHQ

[ananth@... linux-2.6.30-rc8]$ grep do_fork /proc/kallsyms 
c000000000082ad0 T .do_fork

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10231

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


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