procfs: Fix pread/pwrite to procfs fail when specified size is bigger than 4MB
Fujitsu: POSTK_DEBUG_TEMP_FIX_43 Refs: #1018 Change-Id: I736ac69885695ef8eeababc3fcfe69a6258b4e16
This commit is contained in:
committed by
Masamichi Takagi
parent
ab284b0531
commit
dd58d366c3
62
test/issues/1018/result.log
Normal file
62
test/issues/1018/result.log
Normal file
@@ -0,0 +1,62 @@
|
||||
*** CT_001 start *******************************
|
||||
[OK] mmap device file
|
||||
anonymous map to 0x2aaaab200000, size:8.00 MB
|
||||
[OK] 2MB pread
|
||||
[OK] check read data :0x1111
|
||||
[OK] 4MB pread
|
||||
[OK] check read data :0x2222
|
||||
[OK] 8MB pread
|
||||
[OK] check read data :0x3333
|
||||
*** CT_001 PASSED
|
||||
|
||||
*** CT_002 start *******************************
|
||||
[OK] anonymous map
|
||||
anonymous map to 0x2aaaab200000, size:8.00 MB
|
||||
[OK] 2MB pwrite
|
||||
[OK] 4MB pwrite
|
||||
[OK] 8MB pwrite
|
||||
*** CT_002 PASSED
|
||||
|
||||
*** RT_001 start *******************************
|
||||
TEST_SUITE: procfs
|
||||
TEST_NUMBER: 0
|
||||
ARGS:
|
||||
dump /proc/5267/auxv:
|
||||
0x00000000000021 0x002aaaaac24000 (AT_SYSINFO_EHDR)
|
||||
0x00000000000019 0x00547fffffffe0 (AT_RANDOM)
|
||||
0x00000000000011 0x00000000000064 (AT_CLKTCK)
|
||||
0x00000000000006 0x00000000001000 (AT_PAGESZ)
|
||||
0x00000000000003 0x00000000400040 (AT_PHDR)
|
||||
0x00000000000004 0x00000000000038 (AT_PHENT)
|
||||
0x00000000000005 0x0000000000000a (AT_PHNUM)
|
||||
0x00000000000009 0x00000000403430 (AT_ENTRY)
|
||||
0000000000000000 0000000000000000 (AT_NULL)
|
||||
RESULT: you need check AUXV value
|
||||
*** RT_001: PASSED
|
||||
|
||||
*** RT_002 start *******************************
|
||||
TEST_SUITE: procfs
|
||||
TEST_NUMBER: 1
|
||||
ARGS:
|
||||
allocated: 0x00000000800010
|
||||
dump /proc/5301/mem(offset:0x00000000800010):
|
||||
0x00000000800010: 0000000000000000 0000000000000001 0000000000000002 0000000000000003
|
||||
0x00000000800030: 0000000000000004 0000000000000005 0000000000000006 0000000000000007
|
||||
0x00000000800050: 0000000000000008 0000000000000009 000000000000000a 000000000000000b
|
||||
0x00000000800070: 000000000000000c 000000000000000d 000000000000000e 000000000000000f
|
||||
0x00000000800090: 0000000000000010 0000000000000011 0000000000000012 0000000000000013
|
||||
0x000000008000b0: 0000000000000014 0000000000000015 0000000000000016 0000000000000017
|
||||
0x000000008000d0: 0000000000000018 0000000000000019 000000000000001a 000000000000001b
|
||||
0x000000008000f0: 000000000000001c 000000000000001d 000000000000001e 000000000000001f
|
||||
RESULT: you need check MEM value
|
||||
*** RT_002: PASSED
|
||||
|
||||
*** RT_003 start *******************************
|
||||
TEST_SUITE: procfs
|
||||
TEST_NUMBER: 3
|
||||
ARGS:
|
||||
output /proc/5335/task/5366/stat
|
||||
0 (exe) R 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
|
||||
|
||||
RESULT: you need check STAT value
|
||||
*** RT_003: PASSED
|
||||
Reference in New Issue
Block a user