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 translator/9738] Running a stap script throws up compilation error


------- Additional Comments From mahesh at linux dot vnet dot ibm dot com  2009-01-15 07:39 -------
(In reply to comment #4)
> It's strange that this address should become associated with $xtime.
> Could you run with "--vp 02" and/or check the symbol table for the
> actual address of xtime?  We may have some uninitialized memory, or
> a weird sign extension bug somewhere.
> 

Applied commit dc38c256fac058289cdebd0fde881b4faf24b9d1 but problem still exist


[salgaonkarm@mars systemtap]$ ./stap -V
SystemTap translator/driver (version 0.8/0.138 git branch (no branch), commit
dc38c256)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
[salgaonkarm@mars systemtap]$ git-log | head -n 5
commit dc38c256fac058289cdebd0fde881b4faf24b9d1
Author: Wenji Huang <wenji.huang@oracle.com>
Date:   Sun Jan 11 18:39:55 2009 -0500

    Fix compilation warning of too large number on 32-bits machines.
[salgaonkarm@mars systemtap]$ sudo ./stap -k --vp 02 -e 'probe
kernel.function("do_settimeofday"){printf("%u\n",$xtime->tv_sec)}'
probe do_settimeofday@kernel/time/timekeeping.c:131 kernel reloc=.dynamic
section=.text pc=0xc0443208
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in
300usr/270sys/565real ms.
Pass 4: compilation failed.  Try again with another '--vp 0001' option.
Keeping temporary directory "/tmp/stapGQ3Y7B"
[salgaonkarm@mars systemtap]$ sudo ./stap -k --vp 02 --vp 0001 -e 'probe
kernel.function("do_settimeofday"){printf("%u\n",$xtime->tv_sec)}'
probe do_settimeofday@kernel/time/timekeeping.c:131 kernel reloc=.dynamic
section=.text pc=0xc0443208
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in
300usr/270sys/563real ms.
Pass 4: compiled C into "stap_8597.ko" in 1750usr/390sys/2287real ms.
Pass 4: compilation failed.  Try again with another '--vp 0001' option.
Keeping temporary directory "/tmp/stapyrwBpN"
[salgaonkarm@mars systemtap]$ cat /proc/kallsyms | grep xtimecat /proc/kallsyms
| grep xtimecat /proc/kallsyms | grep xtime
[salgaonkarm@mars systemtap]$ cat /proc/kallsyms | grep xtime
c04426ec T update_xtime_cache
c0803c00 D xtime_lock
c080f17c D inet_peer_gc_maxtime
c08f7700 B xtime
c08f7720 b xtime_cache
[salgaonkarm@mars systemtap]$ cat /proc/kallsyms | grep do_settimeofday
c0443208 T do_settimeofday
c07b66c0 r __ksymtab_do_settimeofday
c07c039c r __kstrtab_do_settimeofday
[salgaonkarm@mars systemtap]$


-- 


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

------- 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]