[stdlog] 2025-08-03 15:08:27,988 avocado.test INFO | INIT 1-./pcache.py:PcacheTest.test [stdlog] 2025-08-03 15:08:27,993 avocado.test DEBUG| PARAMS (key=timeout, path=*, default=None) => None [stdlog] 2025-08-03 15:08:27,993 avocado.test DEBUG| Test metadata: [stdlog] 2025-08-03 15:08:27,994 avocado.test DEBUG| filename: /workspace/dtg-tests/pcache.py [stdlog] 2025-08-03 15:08:27,994 avocado.test DEBUG| teststmpdir: /var/tmp/avocado_g1ec7hjc [stdlog] 2025-08-03 15:08:27,996 avocado.test INFO | START 1-./pcache.py:PcacheTest.test [stdlog] 2025-08-03 15:08:27,996 avocado.test DEBUG| PARAMS (key=striped, path=*, default=false) => False [stdlog] 2025-08-03 15:08:27,997 avocado.test DEBUG| PARAMS (key=gcov, path=*, default=false) => True [stdlog] 2025-08-03 15:08:27,997 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': '80', 'data_crc': 'false', 'test_script': './pcache.py.data/pcache_misc.sh'} [stdlog] 2025-08-03 15:08:27,998 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: 3a3d2b90-c7da-4524-aafd-341989887f45 [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=2254903, 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=2254903: Sun Aug 3 15:08:52 2025 [stdout] write: IOPS=71.5k, BW=279MiB/s (293MB/s)(513MiB/1837msec); 0 zone resets [stdout] slat (usec): min=5, max=2329, avg=10.00, stdev= 8.71 [stdout] clat (nsec): min=1135, max=90155, avg=1912.22, stdev=1551.56 [stdout] lat (usec): min=6, max=2333, avg=11.91, stdev= 9.45 [stdout] clat percentiles (nsec): [stdout] | 1.00th=[ 1160], 5.00th=[ 1176], 10.00th=[ 1192], 20.00th=[ 1208], [stdout] | 30.00th=[ 1208], 40.00th=[ 1224], 50.00th=[ 1240], 60.00th=[ 1256], [stdout] | 70.00th=[ 1464], 80.00th=[ 3472], 90.00th=[ 3568], 95.00th=[ 3632], [stdout] | 99.00th=[ 4384], 99.50th=[ 5152], 99.90th=[23424], 99.95th=[28032], [stdout] | 99.99th=[45824] [stdout] bw ( KiB/s): min=268520, max=306320, per=100.00%, avg=288514.67, stdev=18994.86, samples=3 [stdout] iops : min=67132, max=76580, avg=72129.33, stdev=4747.66, samples=3 [stdout] lat (usec) : 2=72.84%, 4=25.68%, 10=1.29%, 20=0.06%, 50=0.12% [stdout] lat (usec) : 100=0.01% [stdout] cpu : usr=26.09%, sys=67.43%, ctx=24, majf=0, minf=21 [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,131291,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=279MiB/s (293MB/s), 279MiB/s-279MiB/s (293MB/s-293MB/s), io=513MiB (538MB), run=1837-1837msec [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: f14ac5ac-b1b3-484f-a8d2-8786fd38e02e [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: 4d9adaaa-3091-466e-bc9d-21ad11d91b86 [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=2255793: Sun Aug 3 15:09:32 2025 [stdout] write: IOPS=25.5k, BW=99.5MiB/s (104MB/s)(1991MiB/20001msec); 0 zone resets [stdout] slat (usec): min=4, max=2375, avg=12.82, stdev= 6.96 [stdout] clat (usec): min=3, max=4343.2k, avg=614.03, stdev=39078.25 [stdout] lat (usec): min=13, max=4343.2k, avg=626.85, stdev=39078.21 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 192], 5.00th=[ 196], 10.00th=[ 198], 20.00th=[ 200], [stdout] | 30.00th=[ 202], 40.00th=[ 206], 50.00th=[ 210], 60.00th=[ 215], [stdout] | 70.00th=[ 221], 80.00th=[ 229], 90.00th=[ 253], 95.00th=[ 515], [stdout] | 99.00th=[ 570], 99.50th=[ 603], 99.90th=[ 1221], 99.95th=[ 1369], [stdout] | 99.99th=[ 1614] [stdout] bw ( KiB/s): min=31568, max=295296, per=52.56%, avg=212006.22, stdev=94122.60, samples=18 [stdout] iops : min= 7892, max=73824, avg=53001.56, stdev=23530.65, samples=18 [stdout] lat (usec) : 4=0.01%, 20=0.01%, 50=0.01%, 100=0.01%, 250=89.47% [stdout] lat (usec) : 500=5.00%, 750=5.29%, 1000=0.07% [stdout] lat (msec) : 2=0.16%, >=2000=0.01% [stdout] cpu : usr=6.57%, sys=33.11%, ctx=68, 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,509590,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=2255794: Sun Aug 3 15:09:32 2025 [stdout] write: IOPS=25.8k, BW=101MiB/s (106MB/s)(2013MiB/20001msec); 0 zone resets [stdout] slat (usec): min=4, max=1304, avg=12.75, stdev= 6.53 [stdout] clat (usec): min=3, max=4346.2k, avg=606.97, stdev=38723.73 [stdout] lat (usec): min=13, max=4346.2k, avg=619.72, stdev=38723.68 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 194], 5.00th=[ 198], 10.00th=[ 200], 20.00th=[ 204], [stdout] | 30.00th=[ 206], 40.00th=[ 210], 50.00th=[ 212], 60.00th=[ 219], [stdout] | 70.00th=[ 223], 80.00th=[ 231], 90.00th=[ 249], 95.00th=[ 371], [stdout] | 99.00th=[ 578], 99.50th=[ 611], 99.90th=[ 1205], 99.95th=[ 1369], [stdout] | 99.99th=[ 1614] [stdout] bw ( KiB/s): min=40119, max=285496, per=52.99%, avg=213740.11, stdev=87060.04, samples=18 [stdout] iops : min=10029, max=71374, avg=53434.94, stdev=21765.08, samples=18 [stdout] lat (usec) : 4=0.01%, 20=0.01%, 50=0.01%, 100=0.01%, 250=90.19% [stdout] lat (usec) : 500=5.79%, 750=3.76%, 1000=0.11% [stdout] lat (msec) : 2=0.14%, >=2000=0.01% [stdout] cpu : usr=7.37%, sys=32.48%, ctx=99, 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,515448,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=2255795: Sun Aug 3 15:09:32 2025 [stdout] write: IOPS=24.7k, BW=96.4MiB/s (101MB/s)(1929MiB/20001msec); 0 zone resets [stdout] slat (usec): min=5, max=2389, avg=13.23, stdev= 6.84 [stdout] clat (usec): min=3, max=4396.4k, avg=633.70, stdev=39754.27 [stdout] lat (usec): min=15, max=4396.4k, avg=646.94, stdev=39754.22 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 194], 5.00th=[ 198], 10.00th=[ 202], 20.00th=[ 206], [stdout] | 30.00th=[ 210], 40.00th=[ 215], 50.00th=[ 219], 60.00th=[ 223], [stdout] | 70.00th=[ 229], 80.00th=[ 239], 90.00th=[ 265], 95.00th=[ 515], [stdout] | 99.00th=[ 586], 99.50th=[ 611], 99.90th=[ 1221], 99.95th=[ 1336], [stdout] | 99.99th=[ 1729] [stdout] bw ( KiB/s): min=31409, max=286136, per=50.82%, avg=204970.33, stdev=87047.53, samples=18 [stdout] iops : min= 7852, max=71534, avg=51242.56, stdev=21761.91, samples=18 [stdout] lat (usec) : 4=0.01%, 20=0.01%, 50=0.01%, 100=0.01%, 250=86.83% [stdout] lat (usec) : 500=7.78%, 750=5.17%, 1000=0.06% [stdout] lat (msec) : 2=0.14%, >=2000=0.01% [stdout] cpu : usr=7.45%, sys=32.17%, ctx=38, 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,493745,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=2255796: Sun Aug 3 15:09:32 2025 [stdout] write: IOPS=24.9k, BW=97.3MiB/s (102MB/s)(1946MiB/20001msec); 0 zone resets [stdout] slat (usec): min=5, max=897, avg=13.15, stdev= 6.04 [stdout] clat (usec): min=3, max=4381.5k, avg=628.29, stdev=39561.12 [stdout] lat (usec): min=15, max=4381.5k, avg=641.44, stdev=39561.07 [stdout] clat percentiles (usec): [stdout] | 1.00th=[ 194], 5.00th=[ 198], 10.00th=[ 200], 20.00th=[ 204], [stdout] | 30.00th=[ 208], 40.00th=[ 212], 50.00th=[ 217], 60.00th=[ 221], [stdout] | 70.00th=[ 227], 80.00th=[ 237], 90.00th=[ 262], 95.00th=[ 515], [stdout] | 99.00th=[ 586], 99.50th=[ 611], 99.90th=[ 1221], 99.95th=[ 1336], [stdout] | 99.99th=[ 1729] [stdout] bw ( KiB/s): min=31584, max=289528, per=51.29%, avg=206861.72, stdev=88554.83, samples=18 [stdout] iops : min= 7896, max=72382, avg=51715.39, stdev=22138.72, samples=18 [stdout] lat (usec) : 4=0.01%, 20=0.01%, 50=0.01%, 100=0.01%, 250=87.59% [stdout] lat (usec) : 500=7.07%, 750=5.13%, 1000=0.07% [stdout] lat (msec) : 2=0.14%, >=2000=0.01% [stdout] cpu : usr=6.89%, sys=32.77%, ctx=28, majf=0, minf=12 [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,498048,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=394MiB/s (413MB/s), 96.4MiB/s-101MiB/s (101MB/s-106MB/s), io=7878MiB (8261MB), run=20001-20001msec [stdout] [stdout] Disk stats (read/write): [stdout] dm-0: ios=6/1978522, sectors=48/16154528, merge=0/0, ticks=0/783104, in_queue=783104, util=89.07%, 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] + : 80 [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=1754233708 [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 1754233708 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233708 ';' [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.00214897 s, 488 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=1754233709 [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 1754233709 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233709 ';' [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.0023311 s, 450 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.00219724 s, 477 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=1754233710 [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 1754233710 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233710 ';' [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=1754233711 [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 1754233711 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233711 ';' [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.00206334 s, 508 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.00219207 s, 478 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=1754233712 [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 1754233712 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233712 ';' [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=1754233712 [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 1754233712 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233712 ';' [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.00213146 s, 492 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.00220443 s, 476 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=1754233713 [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 1754233713 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233713 ';' [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=1754233714 [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 1754233714 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233714 ';' [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.00226336 s, 463 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.00225322 s, 465 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=1754233715 [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 1754233715 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233715 ';' [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=1754233716 [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 1754233716 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233716 ';' [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.00220336 s, 476 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.00223142 s, 470 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=1754233717 [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 1754233717 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233717 ';' [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=1754233718 [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 1754233718 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233718 ';' [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.00213981 s, 490 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.00245442 s, 427 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=1754233719 [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 1754233719 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233719 ';' [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=1754233720 [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 1754233720 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233720 ';' [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.00211435 s, 496 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.00208049 s, 504 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=1754233721 [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 1754233721 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233721 ';' [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=1754233722 [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 1754233722 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233722 ';' [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.00202117 s, 519 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.00219727 s, 477 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=1754233723 [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 1754233723 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233723 ';' [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=1754233724 [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 1754233724 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233724 ';' [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.00226308 s, 463 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.00204449 s, 513 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 80 ]] [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 80 [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=1754233725 [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 1754233725 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233725 ';' [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=1754233726 [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 1754233726 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233726 ';' [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.00217116 s, 483 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.00210723 s, 498 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.0844574 s, 124 MB/s [stdout] ++ md5sum /mnt/pcache/testfile [stdout] ++ awk '{print $1}' [stdout] + orig_md5=f28f5b75ad437fa337d00e8493f3f800 [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=f28f5b75ad437fa337d00e8493f3f800 [stdout] + [[ f28f5b75ad437fa337d00e8493f3f800 != \f\2\8\f\5\b\7\5\a\d\4\3\7\f\a\3\3\7\d\0\0\e\8\4\9\3\f\3\f\8\0\0 ]] [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=1754233728 [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 1754233728 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233728 ';' [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=1754233729 [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 1754233729 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233729 ';' [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.00226636 s, 463 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.00230928 s, 454 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=2254895 [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=3197825024, buflen=4096 [stdout] + wait 2254895 [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=1754233733 [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 1754233733 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233733 ';' [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=1754233733 [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 1754233733 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233733 ';' [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.00216808 s, 484 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.00226651 s, 463 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=1754233735 [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 1754233735 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233735 ';' [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=1754233735 [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 1754233735 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233735 ';' [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.00226725 s, 462 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.00229603 s, 457 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.0528449 s, 99.2 MB/s [stdout] ++ md5sum /mnt/pcache/persistfile [stdout] ++ awk '{print $1}' [stdout] + orig_md5=a844ab731c49376233bca2d97f1f1250 [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=a844ab731c49376233bca2d97f1f1250 [stdout] + [[ a844ab731c49376233bca2d97f1f1250 != \a\8\4\4\a\b\7\3\1\c\4\9\3\7\6\2\3\3\b\c\a\2\d\9\7\f\1\f\1\2\5\0 ]] [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.00239653 s, 438 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=a844ab731c49376233bca2d97f1f1250 [stdout] + [[ a844ab731c49376233bca2d97f1f1250 != \a\8\4\4\a\b\7\3\1\c\4\9\3\7\6\2\3\3\b\c\a\2\d\9\7\f\1\f\1\2\5\0 ]] [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=1754233749 [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 1754233749 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233749 ';' [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=1754233750 [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 1754233750 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233750 ';' [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.0021402 s, 490 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.00224955 s, 466 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.240002 s, 218 MB/s [stdout] ++ md5sum /mnt/pcache/heavyfile [stdout] ++ awk '{print $1}' [stdout] + orig_md5=2401a707fd1c7321fd22251f023c3756 [stdout] + [[ -n 80 ]] [stdout] + sudo dmsetup message pcache_ram0p1 0 gc_percent 80 [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.258143 s, 203 MB/s [stdout] ++ md5sum /mnt/pcache/loadfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=2401a707fd1c7321fd22251f023c3756 [stdout] + [[ 2401a707fd1c7321fd22251f023c3756 != \2\4\0\1\a\7\0\7\f\d\1\c\7\3\2\1\f\d\2\2\2\5\1\f\0\2\3\c\3\7\5\6 ]] [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=2401a707fd1c7321fd22251f023c3756 [stdout] + [[ 2401a707fd1c7321fd22251f023c3756 != \2\4\0\1\a\7\0\7\f\d\1\c\7\3\2\1\f\d\2\2\2\5\1\f\0\2\3\c\3\7\5\6 ]] [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] ++ md5sum /mnt/pcache/heavyfile [stdout] ++ awk '{print $1}' [stdout] + new_md5=2401a707fd1c7321fd22251f023c3756 [stdout] + [[ 2401a707fd1c7321fd22251f023c3756 != \2\4\0\1\a\7\0\7\f\d\1\c\7\3\2\1\f\d\2\2\2\5\1\f\0\2\3\c\3\7\5\6 ]] [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=1754233774 [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 1754233774 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233774 ';' [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=1754233775 [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 1754233775 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233775 ';' [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.00209708 s, 500 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.00228094 s, 460 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=1754233776 [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 1754233776 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233776 ';' [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=1754233777 [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 1754233777 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233777 ';' [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.00204531 s, 513 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=1754233778 [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 1754233778 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233778 ';' [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.002329 s, 450 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=1754233778 [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 1754233778 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233778 ';' [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.0023401 s, 448 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=1754233779 [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 1754233779 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233779 ';' [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.0021859 s, 480 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.00229793 s, 456 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=1754233781 [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 1754233781 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233781 ';' [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=1754233782 [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 1754233782 ';' [stdout] + sudo find /sys/kernel/debug/gcov -path '*dm-pcache*gcno' -exec sh -c 'cp "$1" "$2/$3_$(basename "$1")"' _ '{}' /workspace/datatravelguide/covdir 1754233782 ';' [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 15:09:42,481 avocado.test INFO | pcache script completed successfully [stdlog] 2025-08-03 15:09:42,482 avocado.test INFO | pcache test finished. [stdlog] 2025-08-03 15:09:42,482 avocado.test INFO | PASS 1-./pcache.py:PcacheTest.test [stdlog] 2025-08-03 15:09:42,483 avocado.test INFO |