From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16666 invoked by alias); 15 Jan 2009 07:40:07 -0000 Received: (qmail 16548 invoked by uid 48); 15 Jan 2009 07:39:53 -0000 Date: Thu, 15 Jan 2009 10:12:00 -0000 Message-ID: <20090115073953.16547.qmail@sourceware.org> From: "mahesh at linux dot vnet dot ibm dot com" To: systemtap@sources.redhat.com In-Reply-To: <20090113103055.9738.mahesh@linux.vnet.ibm.com> References: <20090113103055.9738.mahesh@linux.vnet.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/9738] Running a stap script throws up compilation error X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00149.txt.bz2 ------- 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 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.