public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "mahesh at linux dot vnet dot ibm dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug translator/9738] Running a stap script throws up compilation error
Date: Thu, 15 Jan 2009 10:12:00 -0000	[thread overview]
Message-ID: <20090115073953.16547.qmail@sourceware.org> (raw)
In-Reply-To: <20090113103055.9738.mahesh@linux.vnet.ibm.com>


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

  parent reply	other threads:[~2009-01-15  7:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13 10:31 [Bug translator/9738] New: " mahesh at linux dot vnet dot ibm dot com
2009-01-13 11:49 ` [Bug translator/9738] " wenji dot huang at oracle dot com
2009-01-13 12:24 ` mahesh at linux dot vnet dot ibm dot com
2009-01-13 12:35 ` wenji dot huang at oracle dot com
2009-01-13 18:16 ` fche at redhat dot com
2009-01-14  5:14 ` wenji dot huang at oracle dot com
2009-01-15 10:12 ` mahesh at linux dot vnet dot ibm dot com [this message]
2009-01-15 16:57 ` mahesh at linux dot vnet dot ibm dot com
2009-01-16  8:24 ` mahesh at linux dot vnet dot ibm dot com
2009-01-16  9:49 ` wenji dot huang at oracle dot com
2009-01-16 16:25 ` mjw at redhat dot com
2009-11-06 12:09 ` mjw at redhat dot com
2010-02-26  2:18 ` fche at redhat dot com
2010-03-09 19:03 ` fche at redhat dot com

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=20090115073953.16547.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sources.redhat.com \
    /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).