public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Too larger number in badkprobe test on 32 bits machine.
@ 2009-01-06  8:49 Wenji Huang
  2009-01-06 16:04 ` Frank Ch. Eigler
  0 siblings, 1 reply; 3+ messages in thread
From: Wenji Huang @ 2009-01-06  8:49 UTC (permalink / raw)
  To: systemTAP

Hi,

The test systemtap.base/badkprobe.exp will fail on 32 bits machine.
[wjhuang@EL4U6-32bits testsuite]$ uname -mr
2.6.28 i686
[wjhuang@EL4U6-32bits testsuite]$ sudo runtest 
systemtap.base/badkprobe.exp --tool_opts install
...
Running ./systemtap.base/badkprobe.exp ...
FAIL: bad kprobe registration (eof)

                 ===  Summary ===

# of unexpected failures        1

In fact, executing the stap script in the test case.
[wjhuang@EL4U6-32bits testsuite]$ sudo stap -g -w -vve 'probe 
kernel.statement(-1).absolute {} probe timer.s(1) { exit() }'
SystemTap translator/driver (version 0.8/0.131 git branch master, commit 
be21f2db + changes)
Copyright (C) 2005-2008 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.28
Created temporary directory "/tmp/staplt6ZIz"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 45
Pass 1: parsed user script and 47 library script(s) in 
630usr/50sys/680real ms.
Pass 2: analyzed script: 2 probe(s), 1 function(s), 0 embed(s), 0 
global(s) in 20usr/20sys/37real ms.
probe_1384 locks nothing
probe_1385 locks nothing
dump_unwindsyms kernel index=0 base=0xc0100000
Found build-id in kernel, length 20, end at 0xc0363400
Pass 3: translated to C into 
"/tmp/staplt6ZIz/stap_84012a21d1a75884e8298817a3e8ad51_390.c" in 
880usr/920sys/1793real ms.
Running make -C "/lib/modules/2.6.28/build" M="/tmp/staplt6ZIz" modules 
 >/dev/null
cc1: warnings being treated as errors
/tmp/staplt6ZIz/stap_84012a21d1a75884e8298817a3e8ad51_390.c:235: 
warning: integer constant is too large for 'unsigned long' type
/tmp/staplt6ZIz/stap_84012a21d1a75884e8298817a3e8ad51_390.c:235: 
warning: large integer implicitly truncated to unsigned type
make[1]: *** 
[/tmp/staplt6ZIz/stap_84012a21d1a75884e8298817a3e8ad51_390.o] Error 1
make: *** [_module_/tmp/staplt6ZIz] Error 2
Pass 4: compiled C into "stap_84012a21d1a75884e8298817a3e8ad51_390.ko" 
in 3640usr/3040sys/6647real ms.
Pass 4: compilation failed.  Try again with another '--vp 0001' option.
Running rm -rf /tmp/staplt6ZIz

Seems "-1" is interpreted as 64-bit number and not appropriate for 32 
bits machine. Change to other number or update translate.cxx to perform 
explicitly truncation ?

Regards,
Wenji

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

end of thread, other threads:[~2009-01-09  2:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-06  8:49 Too larger number in badkprobe test on 32 bits machine Wenji Huang
2009-01-06 16:04 ` Frank Ch. Eigler
2009-01-09  2:32   ` Wenji Huang

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