From: Wenji Huang <wenji.huang@oracle.com>
To: systemTAP <systemtap@sources.redhat.com>
Subject: Too larger number in badkprobe test on 32 bits machine.
Date: Tue, 06 Jan 2009 08:49:00 -0000 [thread overview]
Message-ID: <49631A6E.20305@oracle.com> (raw)
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
next reply other threads:[~2009-01-06 8:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 8:49 Wenji Huang [this message]
2009-01-06 16:04 ` Frank Ch. Eigler
2009-01-09 2:32 ` Wenji Huang
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=49631A6E.20305@oracle.com \
--to=wenji.huang@oracle.com \
--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).