From: "lina.zhao" <lina.zhao@windriver.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] about hugetlbfs
Date: Tue, 30 Mar 2010 17:58:25 +0800 [thread overview]
Message-ID: <4BB1CB41.40805@windriver.com> (raw)
Hi all,
I have some problem about hugetlbfs test.
In hugeshmat01.c
the attach address for shmat is 0x90000eee .
But for mips32_Linux system ,the user pthread space is
0x00000000~0x7fffffff,
so 0x90000eee exceed the space ,the test will always failed on mips_32.
In hugemmap02.c
#define LOW_ADDR2 (void *)(0x90000000)
#define LOW_ADDR (void *)(0x80000000)
addr = mmap(LOW_ADDR, PAGE_SIZE, PROT_READ,
MAP_SHARED | MAP_FIXED, nfildes, 0);
addr2 = mmap(LOW_ADDR2, MAP_SIZE, PROT_READ | PROT_WRITE,
MAP_SHARED, fildes, 0);
/* 32-bit process */
if (addr2 > 0){
tst_resm(TCONF, "huge mmap() failed to test the
scenario");
continue;
} else if (addr == 0) {
tst_resm(TPASS, "huge mmap() succeeded for 32-bit");
} else {
tst_resm(TFAIL, "huge mmap() unexpectedly failed
%s for 32-bit, errno=%d : %s",
TEMPFILE, errno, strerror(errno));
}
the 0x90000000 and 0x80000000 also exceed mips32 user pthread space ,
so I changed them .
but add2 always return 717225984, no matter what I allocate to LOW_ADDR2.
at last ,I changed LOW_ADDR2 to NULL, it also returned 717225984.
in the function ,why addr2> 0 then error happens?
why addr should be 0? it is what exactly the LOW_ADDR assigns.
Thanks and Best Regards,
Lina
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
reply other threads:[~2010-03-30 9:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4BB1CB41.40805@windriver.com \
--to=lina.zhao@windriver.com \
--cc=ltp-list@lists.sourceforge.net \
/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