[stdlog] 2025-08-03 14:23:02,813 avocado.test INFO | INIT 1-./pcache.py:PcacheTest.test [stdlog] 2025-08-03 14:23:02,817 avocado.test DEBUG| PARAMS (key=timeout, path=*, default=None) => None [stdlog] 2025-08-03 14:23:02,818 avocado.test DEBUG| Test metadata: [stdlog] 2025-08-03 14:23:02,818 avocado.test DEBUG| filename: /workspace/dtg-tests/pcache.py [stdlog] 2025-08-03 14:23:02,819 avocado.test DEBUG| teststmpdir: /var/tmp/avocado_g1ec7hjc [stdlog] 2025-08-03 14:23:02,821 avocado.test INFO | START 1-./pcache.py:PcacheTest.test [stdlog] 2025-08-03 14:23:02,821 avocado.test DEBUG| PARAMS (key=striped, path=*, default=false) => False [stdlog] 2025-08-03 14:23:02,822 avocado.test DEBUG| PARAMS (key=gcov, path=*, default=false) => True [stdlog] 2025-08-03 14:23:02,822 avocado.test INFO | env_dict: {'linux_path': '/workspace/linux_compile', 'covdir': '/workspace/datatravelguide/covdir', 'gcov': 'true', 'cache_dev0': '/dev/pmem0', 'cache_dev1': '/dev/pmem1', 'cache_dev2': '/dev/pmem2', 'cache_dev3': '/dev/pmem3', 'striped': 'false', 'data_dev0': '/dev/ram0p1', 'data_dev1': '/dev/ram0p2', 'cache_mode': 'writeback', 'gc_percent': '0', 'data_crc': 'false', 'test_script': './pcache.py.data/pcache_misc.sh'} [stdlog] 2025-08-03 14:23:02,822 avocado.test DEBUG| PARAMS (key=test_script, path=*, default=None) => './pcache.py.data/pcache_misc.sh' [stdout] /workspace/dtg-tests [stdout] ===== Running case01_invalid_cache_mode.sh ===== [stdout] DEBUG: case 1 - invalid cache mode should fail [stdout] ===== Finished case01_invalid_cache_mode.sh ===== [stdout] ===== Running case02_invalid_data_crc.sh ===== [stdout] DEBUG: case 2 - invalid data_crc should fail [stdout] ===== Finished case02_invalid_data_crc.sh ===== [stdout] ===== Running case03_empty_cache_mode.sh ===== [stdout] DEBUG: case 3 - empty cache_mode should fail [stdout] ===== Finished case03_empty_cache_mode.sh ===== [stdout] ===== Running case04_empty_data_crc.sh ===== [stdout] DEBUG: case 4 - empty data_crc should fail [stdout] ===== Finished case04_empty_data_crc.sh ===== [stdout] ===== Running case05_create_no_optional_args.sh ===== [stdout] DEBUG: case 5 - create without optional arguments [stdout] ===== Finished case05_create_no_optional_args.sh ===== [stdout] ===== Running case06_cache_mode_only.sh ===== [stdout] DEBUG: case 6 - cache_mode only [stdout] ===== Finished case06_cache_mode_only.sh ===== [stdout] ===== Running case07_data_crc_only.sh ===== [stdout] DEBUG: case 7 - data_crc only [stdout] ===== Finished case07_data_crc_only.sh ===== [stdout] ===== Running case08_invalid_optional_args.sh ===== [stdout] DEBUG: case 8 - invalid number_of_optional_arguments should fail [stdout] ===== Finished case08_invalid_optional_args.sh ===== [stdout] ===== Running case09_gc_percent_checks.sh ===== [stdout] DEBUG: case 9 - basic create and gc_percent message checks [stdout] ===== Finished case09_gc_percent_checks.sh ===== [stdout] ===== Running case10_persistence_after_recreate.sh ===== [stdout] DEBUG: case 10 - data persistence after remove and recreate [stdout] Creating filesystem with 2621440 4k blocks and 655360 inodes [stdout] Filesystem UUID: 87578b20-0846-4cda-bc73-46a04eb6f0c5 [stdout] Superblock backups stored on blocks: [stdout] 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 [stdout] [stdout] Allocating group tables: 0/80 done [stdout] Writing inode tables: 0/80 done [stdout] Creating journal (16384 blocks): done [stdout] Writing superblocks and filesystem accounting information: 0/80 done [stdout] [stdout] ===== Finished case10_persistence_after_recreate.sh ===== [stdout] ===== Running case11_remove_while_fio.sh ===== [stdout] DEBUG: case 11 - remove pcache while fio running [stdout] pcachetest: (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=1 [stdout] fio-3.36 [stdout] Starting 1 process [stdout] fio: pid=1266234, err=5/file:io_u.c:1896, func=io_u error, error=Input/output error [stdout] [stdout] pcachetest: (groupid=0, jobs=1): err= 5 (file:io_u.c:1896, func=io_u error, error=Input/output error): pid=1266234: Sun Aug 3 14:23:27 2025 [stdout] write: IOPS=102k, BW=400MiB/s (419MB/s)(757MiB/1895msec); 0 zone resets [stdout] slat (usec): min=5, max=202, avg= 6.63, stdev= 2.21 [stdout] clat (nsec): min=1242, max=188863, avg=1477.00, stdev=905.95 [stdout] lat (usec): min=6, max=204, avg= 8.11, stdev= 2.58 [stdout] clat percentiles (nsec): [stdout] | 1.00th=[ 1288], 5.00th=[ 1304], 10.00th=[ 1304], 20.00th=[ 1320], [stdout] | 30.00th=[ 1336], 40.00th=[ 1352], 50.00th=[ 1368], 60.00th=[ 1416], [stdout] | 70.00th=[ 1480], 80.00th=[ 1512], 90.00th=[ 1560], 95.00th=[ 1656], [stdout] | 99.00th=[ 3760], 99.50th=[ 3920], 99.90th=[10560], 99.95th=[13760], [stdout] | 99.99th=[22400] [stdout] bw ( KiB/s): min=433944, max=457712, per=100.00%, avg=442274.67, stdev=13383.12, samples=3 [stdout] iops : min=108486, max=114428, avg=110568.67, stdev=3345.78, samples=3 [stdout] lat (usec) : 2=97.31%, 4=2.34%, 10=0.22%, 20=0.12%, 50=0.01% [stdout] lat (usec) : 100=0.01%, 250=0.01% [stdout] cpu : usr=21.49%, sys=70.54%, ctx=26, majf=0, minf=20 [stdout] IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.1%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,193895,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=1 [stdout] [stdout] Run status group 0 (all jobs): [stdout] WRITE: bw=400MiB/s (419MB/s), 400MiB/s-400MiB/s (419MB/s-419MB/s), io=757MiB (794MB), run=1895-1895msec [stdout] ===== Finished case11_remove_while_fio.sh ===== [stdout] ===== Running case12_fail_after_crc_change.sh ===== [stdout] DEBUG: case 12 - dmsetup create should fail after data_crc change [stdout] ===== Finished case12_fail_after_crc_change.sh ===== [stdout] ===== Running case13_flush_cache_persistence.sh ===== [stdout] DEBUG: case 13 - flush cached data and verify persistence [stdout] Creating filesystem with 2621440 4k blocks and 655360 inodes [stdout] Filesystem UUID: 2b2ea1ff-2875-41c1-a499-c52f2ee0e369 [stdout] Superblock backups stored on blocks: [stdout] 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 [stdout] [stdout] Allocating group tables: 0/80 done [stdout] Writing inode tables: 0/80 done [stdout] Creating journal (16384 blocks): done [stdout] Writing superblocks and filesystem accounting information: 0/80 done [stdout] [stdout] ===== Finished case13_flush_cache_persistence.sh ===== [stdout] ===== Running case14_heavy_io_consistency.sh ===== [stdout] DEBUG: case 14 - verify data consistency under heavy IO [stdout] Creating filesystem with 2621440 4k blocks and 655360 inodes [stdout] Filesystem UUID: 2b5d4de9-ddaa-4c0e-ad10-6ebfe3879874 [stdout] Superblock backups stored on blocks: [stdout] 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 [stdout] [stdout] Allocating group tables: 0/80 done [stdout] Writing inode tables: 0/80 done [stdout] Creating journal (16384 blocks): done [stdout] Writing superblocks and filesystem accounting information: 0/80 done [stdout] [stdout] pcacheheavy: (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=libaio, iodepth=16 [stdout] ... [stdout] fio-3.36 [stdout] Starting 4 processes [stdout] pcacheheavy: Laying out IO file (1 file / 100MiB) [stdout] [stdout] pcacheheavy: (groupid=0, jobs=1): err= 0: pid=1267126: Sun Aug 3 14:24:07 2025 [stdout] write: IOPS=45.3k, BW=177MiB/s (186MB/s)(3539MiB/20001msec); 0 zone resets [stdout] slat (usec): min=5, max=20666, avg=14.46, stdev=22.88 [stdout] clat (usec): min=3, max=3580.5k, avg=337.58, stdev=15367.84 [stdout] lat (usec): min=13, max=3580.5k, avg=352.04, stdev=15367.84 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 212], 5.00th=[ 221], 10.00th=[ 227], 20.00th=[ 233], [stdout] | 30.00th=[ 237], 40.00th=[ 241], 50.00th=[ 245], 60.00th=[ 249], [stdout] | 70.00th=[ 253], 80.00th=[ 260], 90.00th=[ 273], 95.00th=[ 293], [stdout] | 99.00th=[ 758], 99.50th=[ 914], 99.90th=[ 1123], 99.95th=[ 1270], [stdout] | 99.99th=[ 1663] [stdout] bw ( KiB/s): min=30728, max=254160, per=28.20%, avg=213750.06, stdev=64311.69, samples=33 [stdout] iops : min= 7682, max=63540, avg=53437.52, stdev=16077.92, samples=33 [stdout] lat (usec) : 4=0.01%, 20=0.01%, 50=0.01%, 100=0.01%, 250=63.83% [stdout] lat (usec) : 500=33.42%, 750=1.74%, 1000=0.72% [stdout] lat (msec) : 2=0.28%, 4=0.01%, 50=0.01%, 100=0.01%, 750=0.01% [stdout] lat (msec) : >=2000=0.01% [stdout] cpu : usr=13.56%, sys=64.25%, ctx=100, majf=0, minf=15 [stdout] IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.1%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,905889,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=16 [stdout] pcacheheavy: (groupid=0, jobs=1): err= 0: pid=1267127: Sun Aug 3 14:24:07 2025 [stdout] write: IOPS=49.2k, BW=192MiB/s (201MB/s)(3841MiB/20001msec); 0 zone resets [stdout] slat (usec): min=5, max=3166, avg=12.97, stdev= 7.02 [stdout] clat (usec): min=3, max=3584.2k, avg=311.20, stdev=14760.25 [stdout] lat (usec): min=14, max=3584.2k, avg=324.17, stdev=14760.25 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 200], 5.00th=[ 206], 10.00th=[ 210], 20.00th=[ 215], [stdout] | 30.00th=[ 219], 40.00th=[ 221], 50.00th=[ 225], 60.00th=[ 229], [stdout] | 70.00th=[ 233], 80.00th=[ 241], 90.00th=[ 251], 95.00th=[ 265], [stdout] | 99.00th=[ 668], 99.50th=[ 832], 99.90th=[ 1057], 99.95th=[ 1237], [stdout] | 99.99th=[ 1631] [stdout] bw ( KiB/s): min=44136, max=277128, per=30.61%, avg=232031.76, stdev=69642.23, samples=33 [stdout] iops : min=11034, max=69282, avg=58007.94, stdev=17410.56, samples=33 [stdout] lat (usec) : 4=0.01%, 20=0.01%, 50=0.01%, 100=0.01%, 250=89.80% [stdout] lat (usec) : 500=7.59%, 750=1.85%, 1000=0.60% [stdout] lat (msec) : 2=0.15%, 4=0.01%, 250=0.01%, 750=0.01%, >=2000=0.01% [stdout] cpu : usr=16.25%, sys=61.50%, ctx=71, majf=0, minf=14 [stdout] IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.1%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,983392,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=16 [stdout] pcacheheavy: (groupid=0, jobs=1): err= 0: pid=1267128: Sun Aug 3 14:24:07 2025 [stdout] write: IOPS=46.3k, BW=181MiB/s (190MB/s)(3615MiB/20001msec); 0 zone resets [stdout] slat (usec): min=6, max=4186, avg=13.92, stdev= 7.73 [stdout] clat (usec): min=3, max=3611.1k, avg=330.73, stdev=15358.88 [stdout] lat (usec): min=17, max=3611.1k, avg=344.65, stdev=15358.87 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 198], 5.00th=[ 206], 10.00th=[ 212], 20.00th=[ 223], [stdout] | 30.00th=[ 231], 40.00th=[ 235], 50.00th=[ 241], 60.00th=[ 245], [stdout] | 70.00th=[ 251], 80.00th=[ 258], 90.00th=[ 269], 95.00th=[ 289], [stdout] | 99.00th=[ 717], 99.50th=[ 873], 99.90th=[ 1106], 99.95th=[ 1254], [stdout] | 99.99th=[ 1631] [stdout] bw ( KiB/s): min=40704, max=280304, per=28.83%, avg=218514.18, stdev=69087.13, samples=33 [stdout] iops : min=10176, max=70076, avg=54628.55, stdev=17271.78, samples=33 [stdout] lat (usec) : 4=0.01%, 20=0.01%, 50=0.01%, 100=0.01%, 250=70.16% [stdout] lat (usec) : 500=27.10%, 750=1.84%, 1000=0.67% [stdout] lat (msec) : 2=0.23%, 4=0.01%, 10=0.01%, 250=0.01%, 1000=0.01% [stdout] lat (msec) : >=2000=0.01% [stdout] cpu : usr=12.96%, sys=64.50%, ctx=56, majf=0, minf=13 [stdout] IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.1%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,925450,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=16 [stdout] pcacheheavy: (groupid=0, jobs=1): err= 0: pid=1267129: Sun Aug 3 14:24:07 2025 [stdout] write: IOPS=48.8k, BW=191MiB/s (200MB/s)(3811MiB/20001msec); 0 zone resets [stdout] slat (usec): min=5, max=3142, avg=13.12, stdev= 6.75 [stdout] clat (usec): min=3, max=3588.5k, avg=313.71, stdev=14857.94 [stdout] lat (usec): min=17, max=3588.6k, avg=326.83, stdev=14857.93 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 202], 5.00th=[ 206], 10.00th=[ 210], 20.00th=[ 215], [stdout] | 30.00th=[ 219], 40.00th=[ 223], 50.00th=[ 227], 60.00th=[ 231], [stdout] | 70.00th=[ 235], 80.00th=[ 241], 90.00th=[ 253], 95.00th=[ 269], [stdout] | 99.00th=[ 676], 99.50th=[ 840], 99.90th=[ 1074], 99.95th=[ 1221], [stdout] | 99.99th=[ 1582] [stdout] bw ( KiB/s): min=43760, max=274560, per=30.36%, avg=230111.76, stdev=70241.22, samples=33 [stdout] iops : min=10940, max=68640, avg=57528.00, stdev=17560.33, samples=33 [stdout] lat (usec) : 4=0.01%, 20=0.01%, 50=0.01%, 100=0.01%, 250=88.49% [stdout] lat (usec) : 500=8.88%, 750=1.86%, 1000=0.60% [stdout] lat (msec) : 2=0.17%, 250=0.01%, 1000=0.01%, >=2000=0.01% [stdout] cpu : usr=14.99%, sys=62.70%, ctx=73, majf=0, minf=15 [stdout] IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=100.0%, 32=0.0%, >=64=0.0% [stdout] submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.1%, 32=0.0%, 64=0.0%, >=64=0.0% [stdout] issued rwts: total=0,975552,0,0 short=0,0,0,0 dropped=0,0,0,0 [stdout] latency : target=0, window=0, percentile=100.00%, depth=16 [stdout] [stdout] Run status group 0 (all jobs): [stdout] WRITE: bw=740MiB/s (776MB/s), 177MiB/s-192MiB/s (186MB/s-201MB/s), io=14.5GiB (15.5GB), run=20001-20001msec [stdout] [stdout] Disk stats (read/write): [stdout] dm-0: ios=0/3745128, sectors=0/29960992, merge=0/0, ticks=0/307248, in_queue=307248, util=80.12%, aggrios=0/0, aggsectors=0/0, aggrmerge=0/0, aggrticks=0/0, aggrin_queue=0, aggrutil=0.00% [stdout] pmem0: ios=0/0, sectors=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00% [stdout] ram0: ios=0/0, sectors=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00% [stdout] ===== Finished case14_heavy_io_consistency.sh ===== [stdout] ===== Running case15_fail_after_cache_mode_change.sh ===== [stdout] DEBUG: case 15 - dmsetup create should fail after cache_mode change [stdout] ===== Finished case15_fail_after_cache_mode_change.sh ===== [stdout] ===== Running case16_writethrough_persistence.sh ===== [stdout] cache_mode is writeback, skipping writethrough test [stdout] ===== Finished case16_writethrough_persistence.sh ===== [stdout] ===== Running case17_writearound_behavior.sh ===== [stdout] cache_mode is writeback, skipping writearound test [stdout] ===== Finished case17_writearound_behavior.sh ===== [stdout] ===== Running case18_writeonly_behavior.sh ===== [stdout] cache_mode is writeback, skipping writeonly test [stdout] ===== Finished case18_writeonly_behavior.sh ===== [stdout] ===== Running case19_dmsetup_table_output.sh ===== [stdout] DEBUG: case 19 - verify dmsetup table output matches create parameters [stdout] ===== Finished case19_dmsetup_table_output.sh ===== [stdout] [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + : /workspace/linux_compile [stdout] + : false [stdout] + : /dev/pmem0 [stdout] + : /dev/pmem1 [stdout] + : false [stdout] + : 0 [stdout] + : /dev/ram0p1 [stdout] + : /dev/ram0p2 [stdout] + : writeback [stdout] ++ basename /dev/ram0p1 [stdout] + dm_name0=pcache_ram0p1 [stdout] ++ basename /dev/ram0p2 [stdout] + dm_name1=pcache_ram0p2 [stdout] + pmem_a=/dev/pmem0 [stdout] + pmem_b=/dev/pmem1 [stdout] + export pmem_a pmem_b [stdout] + [[ false == \t\r\u\e ]] [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230982 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230982 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230982 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00205892 s, 509 MB/s [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + export linux_path cache_dev0 data_crc gc_percent data_dev0 data_dev1 cache_mode dm_name0 dm_name1 [stdout] + export -f reset_pmem [stdout] ++ dirname ./pcache.py.data/pcache_misc.sh [stdout] + test_dir=./pcache.py.data/pcache_misc_tests [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case01_invalid_cache_mode.sh [stdout] + echo '===== Running case01_invalid_cache_mode.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case01_invalid_cache_mode.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230983 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230983 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230983 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00228037 s, 460 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00240793 s, 435 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 1 - invalid cache mode should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode invalid data_crc false' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230985 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230985 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230985 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case01_invalid_cache_mode.sh [stdout] + echo '===== Finished case01_invalid_cache_mode.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case02_invalid_data_crc.sh [stdout] + echo '===== Running case02_invalid_data_crc.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case02_invalid_data_crc.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230985 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230985 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230985 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00212213 s, 494 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00226123 s, 464 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 2 - invalid data_crc should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc invalid' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230986 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230986 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230986 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case02_invalid_data_crc.sh [stdout] + echo '===== Finished case02_invalid_data_crc.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case03_empty_cache_mode.sh [stdout] + echo '===== Running case03_empty_cache_mode.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case03_empty_cache_mode.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230987 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230987 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230987 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00201138 s, 521 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00229896 s, 456 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 3 - empty cache_mode should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 data_crc false' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230988 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230988 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230988 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case03_empty_cache_mode.sh [stdout] + echo '===== Finished case03_empty_cache_mode.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case04_empty_data_crc.sh [stdout] + echo '===== Running case04_empty_data_crc.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case04_empty_data_crc.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230989 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230989 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230989 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00225238 s, 466 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00222434 s, 471 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 4 - empty data_crc should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230990 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230990 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230990 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case04_empty_data_crc.sh [stdout] + echo '===== Finished case04_empty_data_crc.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case05_create_no_optional_args.sh [stdout] + echo '===== Running case05_create_no_optional_args.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case05_create_no_optional_args.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230991 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230991 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230991 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0021556 s, 486 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00200305 s, 523 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 5 - create without optional arguments' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230992 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230992 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230992 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case05_create_no_optional_args.sh [stdout] + echo '===== Finished case05_create_no_optional_args.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case06_cache_mode_only.sh [stdout] + echo '===== Running case06_cache_mode_only.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case06_cache_mode_only.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230993 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230993 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230993 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00212351 s, 494 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00213875 s, 490 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 6 - cache_mode only' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 2 cache_mode writeback' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230994 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230994 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230994 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case06_cache_mode_only.sh [stdout] + echo '===== Finished case06_cache_mode_only.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case07_data_crc_only.sh [stdout] + echo '===== Running case07_data_crc_only.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case07_data_crc_only.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230995 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230995 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230995 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0022547 s, 465 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00216267 s, 485 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 7 - data_crc only' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 2 data_crc true' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230996 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230996 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230996 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case07_data_crc_only.sh [stdout] + echo '===== Finished case07_data_crc_only.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case08_invalid_optional_args.sh [stdout] + echo '===== Running case08_invalid_optional_args.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case08_invalid_optional_args.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230997 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230997 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230997 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00193451 s, 542 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00221946 s, 472 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 8 - invalid number_of_optional_arguments should fail' [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 INVAL cache_mode writeback data_crc false' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup create pcache_invalid --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 100 cache_mode writeback data_crc false' [stdout] device-mapper: reload ioctl on pcache_invalid (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230998 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230998 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230998 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case08_invalid_optional_args.sh [stdout] + echo '===== Finished case08_invalid_optional_args.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case09_gc_percent_checks.sh [stdout] + echo '===== Running case09_gc_percent_checks.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case09_gc_percent_checks.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754230999 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230999 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754230999 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00230522 s, 455 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00221368 s, 474 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 9 - basic create and gc_percent message checks' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 91 [stdout] device-mapper: message ioctl on pcache_ram0p1 failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent -1 [stdout] dmsetup: invalid option -- '1' [stdout] Couldn't process command line. [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent '' [stdout] device-mapper: message ioctl on pcache_ram0p1 failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent bad [stdout] device-mapper: message ioctl on pcache_ram0p1 failed: Invalid argument [stdout] Command failed. [stdout] + [[ -n 0 ]] [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 0 [stdout] + sudo dmsetup message pcache_ram0p1 0 invalid_cmd 1 [stdout] device-mapper: message ioctl on pcache_ram0p1 failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231000 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231000 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231000 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case09_gc_percent_checks.sh [stdout] + echo '===== Finished case09_gc_percent_checks.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case10_persistence_after_recreate.sh [stdout] + echo '===== Running case10_persistence_after_recreate.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case10_persistence_after_recreate.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231001 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231001 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231001 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00205994 s, 509 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00221054 s, 474 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + echo 'DEBUG: case 10 - data persistence after remove and recreate' [stdout] + sudo mkfs.ext4 -F /dev/mapper/pcache_ram0p1 [stdout] mke2fs 1.47.0 (5-Feb-2023) [stdout] + sudo mkdir -p /mnt/pcache [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] + dd if=/dev/urandom of=/mnt/pcache/testfile bs=1M count=10 [stdout] 10+0 records in [stdout] 10+0 records out [stdout] 10485760 bytes (10 MB, 10 MiB) copied, 0.0830666 s, 126 MB/s [stdout] ++ md5sum /mnt/pcache/testfile [stdout] ++ awk '{print $1}' [stdout] + orig_md5=89ee884ef13e8353db086760a3a2a27a [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] ++ md5sum /mnt/pcache/testfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=89ee884ef13e8353db086760a3a2a27a [stdout] + [[ 89ee884ef13e8353db086760a3a2a27a != \8\9\e\e\8\8\4\e\f\1\3\e\8\3\5\3\d\b\0\8\6\7\6\0\a\3\a\2\a\2\7\a ]] [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231003 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231003 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231003 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case10_persistence_after_recreate.sh [stdout] + echo '===== Finished case10_persistence_after_recreate.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case11_remove_while_fio.sh [stdout] + echo '===== Running case11_remove_while_fio.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case11_remove_while_fio.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231004 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231004 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231004 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00218933 s, 479 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00229235 s, 457 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 11 - remove pcache while fio running' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + fio_pid=1266226 [stdout] + sleep 2 [stdout] + fio --name=pcachetest --filename=/dev/mapper/pcache_ram0p1 --rw=randwrite --bs=4k --runtime=10 --time_based=1 --ioengine=libaio --direct=1 [stdout] + sudo dmsetup remove --force pcache_ram0p1 [stdout] fio: io_u error on file /dev/mapper/pcache_ram0p1: Input/output error: write offset=6217142272, buflen=4096 [stdout] + wait 1266226 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231007 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231007 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231007 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case11_remove_while_fio.sh [stdout] + echo '===== Finished case11_remove_while_fio.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case12_fail_after_crc_change.sh [stdout] + echo '===== Running case12_fail_after_crc_change.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case12_fail_after_crc_change.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231008 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231008 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231008 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00229491 s, 457 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00231559 s, 453 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 12 - dmsetup create should fail after data_crc change' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + [[ false == \t\r\u\e ]] [stdout] + new_crc=true [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc true' [stdout] device-mapper: reload ioctl on pcache_ram0p1 (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231009 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231009 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231009 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case12_fail_after_crc_change.sh [stdout] + echo '===== Finished case12_fail_after_crc_change.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case13_flush_cache_persistence.sh [stdout] + echo '===== Running case13_flush_cache_persistence.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case13_flush_cache_persistence.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231010 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231010 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231010 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00214733 s, 488 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00218921 s, 479 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 13 - flush cached data and verify persistence' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo mkfs.ext4 -F /dev/mapper/pcache_ram0p1 [stdout] mke2fs 1.47.0 (5-Feb-2023) [stdout] + sudo mkdir -p /mnt/pcache [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] + dd if=/dev/urandom of=/mnt/pcache/persistfile bs=1M count=5 [stdout] 5+0 records in [stdout] 5+0 records out [stdout] 5242880 bytes (5.2 MB, 5.0 MiB) copied, 0.0532848 s, 98.4 MB/s [stdout] ++ md5sum /mnt/pcache/persistfile [stdout] ++ awk '{print $1}' [stdout] + orig_md5=f288af8cd1e9ca32389ee3eb0ddb055c [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 0 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:0 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:0 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 10 0 2 0:49600 0:49600 0:0' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:0 [stdout] + [[ 0:49600 == \0\:\0 ]] [stdout] + sleep 1 [stdout] + true [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status='0 20971520 pcache 0 319 319 6 0 2 0:49600 0:49600 0:49600' [stdout] + read -ra fields [stdout] + len=12 [stdout] + key_head=0:49600 [stdout] + dirty_tail=0:49600 [stdout] + key_tail=0:49600 [stdout] + [[ 0:49600 == \0\:\4\9\6\0\0 ]] [stdout] + break [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status_before_remove='0 20971520 pcache 0 319 319 6 0 2 0:49600 0:49600 0:49600' [stdout] + read -ra status_fields [stdout] + status_before_len=12 [stdout] + before_key_head=0:49600 [stdout] + before_dirty_tail=0:49600 [stdout] + before_key_tail=0:49600 [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup suspend pcache_ram0p1 [stdout] + sudo dmsetup reload pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] device-mapper: reload ioctl on pcache_ram0p1 failed: Operation not supported [stdout] Command failed. [stdout] + sudo dmsetup resume pcache_ram0p1 [stdout] ++ sudo dmsetup status pcache_ram0p1 [stdout] + status_after_create='0 20971520 pcache 0 319 319 2 70 1182 0:49600 0:49600 0:49600' [stdout] + read -ra status_fields [stdout] + status_after_len=12 [stdout] + after_key_head=0:49600 [stdout] + after_dirty_tail=0:49600 [stdout] + after_key_tail=0:49600 [stdout] + [[ 0:49600 != \0\:\4\9\6\0\0 ]] [stdout] + [[ 0:49600 != \0\:\4\9\6\0\0 ]] [stdout] + [[ 0:49600 != \0\:\4\9\6\0\0 ]] [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo mount /dev/ram0p1 /mnt/pcache [stdout] ++ md5sum /mnt/pcache/persistfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=f288af8cd1e9ca32389ee3eb0ddb055c [stdout] + [[ f288af8cd1e9ca32389ee3eb0ddb055c != \f\2\8\8\a\f\8\c\d\1\e\9\c\a\3\2\3\8\9\e\e\3\e\b\0\d\d\b\0\5\5\c ]] [stdout] + sudo umount /mnt/pcache [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00213164 s, 492 MB/s [stdout] + sync [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] ++ md5sum /mnt/pcache/persistfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=f288af8cd1e9ca32389ee3eb0ddb055c [stdout] + [[ f288af8cd1e9ca32389ee3eb0ddb055c != \f\2\8\8\a\f\8\c\d\1\e\9\c\a\3\2\3\8\9\e\e\3\e\b\0\d\d\b\0\5\5\c ]] [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231023 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231023 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231023 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case13_flush_cache_persistence.sh [stdout] + echo '===== Finished case13_flush_cache_persistence.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case14_heavy_io_consistency.sh [stdout] + echo '===== Running case14_heavy_io_consistency.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case14_heavy_io_consistency.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231024 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231024 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231024 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00225658 s, 465 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 14 - verify data consistency under heavy IO' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00213359 s, 491 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo mkfs.ext4 -F /dev/mapper/pcache_ram0p1 [stdout] mke2fs 1.47.0 (5-Feb-2023) [stdout] + sudo mkdir -p /mnt/pcache [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] + dd if=/dev/urandom of=/mnt/pcache/heavyfile bs=1M count=50 [stdout] 50+0 records in [stdout] 50+0 records out [stdout] 52428800 bytes (52 MB, 50 MiB) copied, 0.237284 s, 221 MB/s [stdout] ++ md5sum /mnt/pcache/heavyfile [stdout] ++ awk '{print $1}' [stdout] + orig_md5=4c672fbc5a81e692d73b393424f15bd1 [stdout] + [[ -n 0 ]] [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 0 [stdout] + dd if=/mnt/pcache/heavyfile of=/mnt/pcache/loadfile bs=4k oflag=direct iflag=fullblock [stdout] 12800+0 records in [stdout] 12800+0 records out [stdout] 52428800 bytes (52 MB, 50 MiB) copied, 0.257222 s, 204 MB/s [stdout] ++ md5sum /mnt/pcache/loadfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=4c672fbc5a81e692d73b393424f15bd1 [stdout] + [[ 4c672fbc5a81e692d73b393424f15bd1 != \4\c\6\7\2\f\b\c\5\a\8\1\e\6\9\2\d\7\3\b\3\9\3\4\2\4\f\1\5\b\d\1 ]] [stdout] + fio --name=pcacheheavy --ioengine=libaio --filename=/mnt/pcache/stressfile --rw=randwrite --size=100m --runtime=20 --time_based=1 --bs=4k --direct=1 --numjobs=4 --iodepth=16 [stdout] ++ md5sum /mnt/pcache/loadfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=4c672fbc5a81e692d73b393424f15bd1 [stdout] + [[ 4c672fbc5a81e692d73b393424f15bd1 != \4\c\6\7\2\f\b\c\5\a\8\1\e\6\9\2\d\7\3\b\3\9\3\4\2\4\f\1\5\b\d\1 ]] [stdout] + sync [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo mount /dev/mapper/pcache_ram0p1 /mnt/pcache [stdout] ++ awk '{print $1}' [stdout] ++ md5sum /mnt/pcache/heavyfile [stdout] + new_md5=4c672fbc5a81e692d73b393424f15bd1 [stdout] + [[ 4c672fbc5a81e692d73b393424f15bd1 != \4\c\6\7\2\f\b\c\5\a\8\1\e\6\9\2\d\7\3\b\3\9\3\4\2\4\f\1\5\b\d\1 ]] [stdout] + sudo umount /mnt/pcache [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231049 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231049 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231049 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case14_heavy_io_consistency.sh [stdout] + echo '===== Finished case14_heavy_io_consistency.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case15_fail_after_cache_mode_change.sh [stdout] + echo '===== Running case15_fail_after_cache_mode_change.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case15_fail_after_cache_mode_change.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231049 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231049 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231049 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00208155 s, 504 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 15 - dmsetup create should fail after cache_mode change' [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0022266 s, 471 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + [[ writeback == \w\r\i\t\e\b\a\c\k ]] [stdout] + new_mode=writethrough [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writethrough data_crc false' [stdout] device-mapper: reload ioctl on pcache_ram0p1 (252:0) failed: Invalid argument [stdout] Command failed. [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231051 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231051 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231051 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case15_fail_after_cache_mode_change.sh [stdout] + echo '===== Finished case15_fail_after_cache_mode_change.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case16_writethrough_persistence.sh [stdout] + echo '===== Running case16_writethrough_persistence.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case16_writethrough_persistence.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231051 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231051 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231051 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00207663 s, 505 MB/s [stdout] + sync [stdout] + [[ writeback != \w\r\i\t\e\t\h\r\o\u\g\h ]] [stdout] + echo 'cache_mode is writeback, skipping writethrough test' [stdout] + exit 0 [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case16_writethrough_persistence.sh [stdout] + echo '===== Finished case16_writethrough_persistence.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case17_writearound_behavior.sh [stdout] + echo '===== Running case17_writearound_behavior.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case17_writearound_behavior.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231052 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231052 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231052 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00235341 s, 446 MB/s [stdout] + sync [stdout] + [[ writeback != \w\r\i\t\e\a\r\o\u\n\d ]] [stdout] + echo 'cache_mode is writeback, skipping writearound test' [stdout] + exit 0 [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case17_writearound_behavior.sh [stdout] + echo '===== Finished case17_writearound_behavior.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case18_writeonly_behavior.sh [stdout] + echo '===== Running case18_writeonly_behavior.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case18_writeonly_behavior.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231053 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231053 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231053 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00219075 s, 479 MB/s [stdout] + sync [stdout] + [[ writeback != \w\r\i\t\e\o\n\l\y ]] [stdout] + echo 'cache_mode is writeback, skipping writeonly test' [stdout] + exit 0 [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case18_writeonly_behavior.sh [stdout] + echo '===== Finished case18_writeonly_behavior.sh =====' [stdout] + for tc in "$test_dir"/*.sh [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case19_dmsetup_table_output.sh [stdout] + echo '===== Running case19_dmsetup_table_output.sh =====' [stdout] + bash ./pcache.py.data/pcache_misc_tests/case19_dmsetup_table_output.sh [stdout] + : /workspace/datatravelguide/covdir [stdout] + : true [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231054 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231054 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231054 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + pcache_insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo insmod /workspace/linux_compile/drivers/md/dm-pcache/dm-pcache.ko [stdout] + : writeback [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00218796 s, 479 MB/s [stdout] + sync [stdout] ++ sudo blockdev --getsz /dev/ram0p1 [stdout] + SEC_NR=20971520 [stdout] + sudo dmsetup create pcache_ram0p1_probe --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] + sudo dmsetup remove pcache_ram0p1_probe [stdout] + reset_pmem [stdout] + [[ false == \t\r\u\e ]] [stdout] + dd if=/dev/zero of=/dev/pmem0 bs=1M count=1 oflag=direct [stdout] 1+0 records in [stdout] 1+0 records out [stdout] 1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00227235 s, 461 MB/s [stdout] + sync [stdout] + echo 'DEBUG: case 19 - verify dmsetup table output matches create parameters' [stdout] + sudo dmsetup create pcache_ram0p1 --table '0 20971520 pcache /dev/pmem0 /dev/ram0p1 4 cache_mode writeback data_crc false' [stdout] ++ lsblk -d -no MAJ:MIN /dev/pmem0 [stdout] ++ tr -d ' ' [stdout] + cache_mm=259:0 [stdout] ++ lsblk -d -no MAJ:MIN /dev/ram0p1 [stdout] ++ tr -d ' ' [stdout] + data_mm=259:3 [stdout] + expected='0 20971520 pcache 259:0 259:3 4 cache_mode writeback crc false' [stdout] ++ sudo dmsetup table pcache_ram0p1 [stdout] + actual='0 20971520 pcache 259:0 259:3 4 cache_mode writeback crc false' [stdout] + [[ 0 20971520 pcache 259:0 259:3 4 cache_mode writeback crc false != \0\ \2\0\9\7\1\5\2\0\ \p\c\a\c\h\e\ \2\5\9\:\0\ \2\5\9\:\3\ \4\ \c\a\c\h\e\_\m\o\d\e\ \w\r\i\t\e\b\a\c\k\ \c\r\c\ \f\a\l\s\e ]] [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231055 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231055 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231055 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + sudo tee /dev/kmsg [stdout] ++ basename ./pcache.py.data/pcache_misc_tests/case19_dmsetup_table_output.sh [stdout] + echo '===== Finished case19_dmsetup_table_output.sh =====' [stdout] + sudo dmsetup remove pcache_ram0p1 [stdout] + true [stdout] + sudo dmsetup remove pcache_ram0p2 [stdout] + true [stdout] + pcache_rmmod [stdout] + dump_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] ++ date +%s [stdout] + ts=1754231056 [stdout] + mkdir -p /workspace/datatravelguide/covdir [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcda' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231056 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754231056 ';' [stdout] + reset_gcov [stdout] + [[ true != \t\r\u\e ]] [stdout] + echo 1 [stdout] + sudo tee /sys/kernel/debug/gcov/reset [stdout] + sudo rmmod dm-pcache [stdout] + true [stdout] [stdlog] 2025-08-03 14:24:16,806 avocado.test INFO | pcache script completed successfully [stdlog] 2025-08-03 14:24:16,806 avocado.test INFO | pcache test finished. [stdlog] 2025-08-03 14:24:16,807 avocado.test INFO | PASS 1-./pcache.py:PcacheTest.test [stdlog] 2025-08-03 14:24:16,808 avocado.test INFO |